I wrote my own script for teleporting. It doesn't work. What's wrong with it?
--Ok, so I am trying to make a teleport script.
function h(part)
local h = part.Parent.findFirstChild("Humanoid")
if (h ~= no) then
h.Parent.MoveTo(Workspace.SpawnLocation.Position + Vector 3. new (0,4,0)
end
end
-- I don't know where I went wrong. A little help?

1 comment
I edited a little bit, refresh the page