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

My Teleport Button not working!?Can someone help me with my local script?

Asked by
Tizzel40 243 Moderation Voter
6 years ago

here it is

`local plr = game.Players.LocalPlayer local tor = plr.Character:WaitForChild('Torso')

script.Parent.MouseButton1Click:connect(function() tor.CFrame = CFrame.new(391.562, -84.842, 341.319) end)`

0
So basically just put the code into a normal script and it should work. protectiverobos -50 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Because it's a local script, it won't work inside of a part, the only places a local script will work is in ReplicatedFirst, A players backpack, gui, playerscripts or inside their character.

This type of script would have to be done with a server script (aka, a regular script)

Ad

Answer this question