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

How would i make a teleport script in a local script?

Asked by 3 years ago

I understand how to do it in a regualr script but it doesent seem to work in a local script

game.Players.PlayerAdded:Connect(function()
local plr = game.Players.LocalPlayer
local char = plr.HumanoidRootPart
print("Joined")
char.HumanoidRootPart.Position = Vector3.new(-7327.932, -1406.678, 130.382)
end)

I have that in "Starter Player Scripts" But it wont do anything

Can i have some help please!

0
Be aware that then only the player would teleport and only the player would see it, If you are teleporting them it might be better just to either teleport them in a normal script or change the users camera position. wolftamer894 50 — 3y
0
i understand that wolf TeaWithMee 76 — 3y
0
To my knowledge, you can't teleport users with a local script. To do this you'd need an actual script. I recommend using a remote event/function to teleport the player. CocoDysphoria 67 — 3y
0
Coco, Im trying to use fire client but it isnt working TeaWithMee 76 — 3y
0
Nvm its working coco! TeaWithMee 76 — 3y

Answer this question