Character teleporting not working?
01 | local TeleportService = game:GetService( "TeleportService" ) |
03 | local elevatorpos = script.Parent.Elevator.Union.Attachment.Position |
11 | local function tp(otherpart) |
12 | if not otherpart.Parent:FindFirstChild( "Humanoid" ) then return end |
13 | otherpart.Parent.HumanoidRootPart.CFrame = CFrame.new(elevatorpos) |
14 | print (elevatorpos, "attachment" ) |
15 | print (otherpart.Parent.HumanoidRootPart.Position) |
18 | script.Parent.Hitbox.Union.Touched:Connect(tp) |
For some reason the player keeps getting teleported to what seems to be the origin (0,0,0)
Even though when I print the position it should be correct. This is all from a serverscript inside a model inside workspace