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.
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