script.Parent.Touched:Connect(function(part) local hum = part.Parent:FindFirstChild("HumanoidRootPart") hum.Position = game.Workspace:WaitForChild("Teleport2") wait(5) end)
There are two problems with the script above. First,you teleport you teleport to where your meant to be but your body is halfway in the baseplate. I know why it's happening but I don't now how to fix it(it changes the hum position, which is the humanoid root part) to the ground. Secondly, the wait(5) dosen't work. All help would be appreciated!
It will glitch when you change the position, so use the CFrame instead. Also use debounce when delaying something.
Script:
local debounce = false script.Parent.Touched:Connect(function(part) if not debounce then debounce = true if part.Parent:FindFirstChild("Humanoid") then local humRoot = part.Parent.HumanoidRootPart humRoot.CFrame = game.Workspace:WaitForChild("Teleport2").CFrame + Vector3.new(0,2,0) end end wait(5) debounce = false end)