Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why is my teleport script stretching the model??

so, I have this script and for some reason, when I execute it. it only brings the humanoid root part. should I put it in a server script with a remote event??

script.Parent.MouseButton1Click:Connect(function()
	local player = game.Players.LocalPlayer
	player.Character.Position = Vector3.new(3043.361, 2699.429, -3100.891)
end)

2 answers

✓ Accepted answer

First thing, don't teleport players locally, as it won't be registered in server. Try adding remote Event and teleport the player in server side.

Second, In line 3, you should not use :

player.Character.Position

Instead, use:

player.Character.PrimaryPart.Position

And if will be using Remote Event, then put it in server side.

Lemme know if it helps!

2 comments

0

Hey! Thanks for the answer :D as showed under here i think i already Figured that out, But hey! I know your answer works :D

0

Glad to hear that!

I solved it in the question, put it in a RemoteEvent and made it server sided and it worked

This discussion is preserved as it was. New answers, comments, and votes are closed.