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

torso.Position not working correctly?

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

✓ Accepted answer

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

5 comments

0

That worked, Thank you!

0

@IBlackViper accept the answer dude, ;-;

0

The button isn't there for some reason...

0

hm it should be there

0

Oh I switched pc's and it showed up

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