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

Gui And Teleporting Help?

Asked by
Scootakip 299 Moderation Voter
8 years ago
function oc()
    game.Players.LocalPlayer.Character.CFrame = CFrame.new(-4.2, 36.1, 10.4)
    game.Players.LocalPlayer.Character.Position = Vector3.new(-4.2, 36.1, 10.4)
end

script.Parent.ClickDetector.MouseClick:connect(oc)

This is supposed to teleport the player when the click on a block, but it does nothing. Some help? And by the way, yes, it's in a localscript.

Answer this question