Setting the user camera to a locator kills the server

Describe the bug:

If you accidentally set the user camera to a locator, then preview, the server will die.

How do you cause this bug?

Create a brand new game, add this script to the user template, and set the property to the “startLocation” locator.


local CrashScript = {}

-- Script properties are defined here
CrashScript.Properties = {
	-- Example property
	{ name = "camera", type = "entity" }
}

--This function is called on the server when this entity is created
function CrashScript:Init()
	self:GetEntity():SetCamera(self.properties.camera)
end

return CrashScript

Which platform: PC / Stadia

Which input: Controller / keyboard + mouse

Your Crayta username: Cereal

Game seen in (including “Hub” or “Editor for XYZ”): Editor

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): Every time

Time + date seen: October 13 2021

Version number (found in Help tab in Settings): 0.d5.9.111485

Hey there Cereal,

Nice find! Thank you for bringing this issue to our attention.
I have submitted a ticket to our internal team. :grinning: :+1:t2: