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

torso.Position not working correctly?

Asked by 5 years ago

I'm trying to make a tool that teleports the player to a Y coordinate that they provide, so far everything has been working up until the actual teleport code itself. I have the teleport code inside of a server side script and I'm not sure whats wrong with it.

Here's the entire code: Teleport Script

I don't get any error output when running the code and I know that the char and player aren't nil, also I've tested to see if the code itself even runs and it does.

1 answer

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

change char.Torso.Position = Vector3.new(0,script.Parent.YValue.Value,0) to char.Torso.CFrame = CFrame.new(0,script.Parent.YValue.Value,0)

try that

0
That worked, Thank you! IBlackViper 2 — 5y
0
@IBlackViper accept the answer dude, ;-; ben0h555 417 — 5y
0
The button isn't there for some reason... IBlackViper 2 — 5y
0
hm it should be there alex_ander 163 — 5y
0
Oh I switched pc's and it showed up IBlackViper 2 — 5y
Ad

Answer this question