Anyone know why this might not be working? Currently set to the 2nd world I have ready.
local GoToWorld = {}
– Script properties are defined here
GoToWorld.Properties = {
{name = “world”, type = “worldasset”},
}
–This function is called on the server when this entity is created
function GoToWorld:Init()
end
function GoToWorld:OnTriggerEnter(person)
if(person) then
person:GetUser():GoToWorld(self.properties.world)
Print(“World Changing”)
end
end
return GoToWorld