I want to make players get teleported to a certain spot after clicking a button, my code below, don't know what I'm doing wrong.
place = CFrame.new(123.5,3608.89,446)
script.Parent.ClickDetector.MouseClick:Connect(function(p)
local humanoid = p.Parent:findFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Torso.CFrame = place
end
end)

1 comment
There was a problem stopping me from clicking it, this worked, and AProgrammR's probably would've too, sorry!