Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Click detector not leting me tp?

Asked by 3 years ago

So I'm made a part with a click detector in it and it should tp you to a room, in the click detector I put this local script in it:

script.Parent.MouseClick:Connect(function()
    game.Players.LocalPlayer.Character.HumanoidRootPart.Cframe = CFrame.new(5483.5, 73.33, -17121.66)
end)

its not working did I do something wrong?

1 answer

Log in to vote
0
Answered by 3 years ago

Use a normal Script and not a LocalScript. LocalScripts won’t fire in the Workspace.

Ad

Answer this question