Hey guys,
I'm trying to make a white frame to cover your screen, and then, the script will teleport you to a part.
Teleporting works, but it only teleports one part of your body (HumanoidRootPart, Head, Left leg, etc.) and it glitches out. So, is there any way I can teleport the entire body without having to write many lines of code?
By the way, here is the teleporting code that glitches you out:
game.Players.LocalPlayer.Character.HumanoidRootPart.Position = game.Workspace.randomparts.teleportpart.Position
Thanks!
I'm gonna explain this clearly. Use CFrame because it will teleport all of the parts instead of one specific part. Using Position uses Vector3 values, which will obviously kill your character if you try to move it. So using CFrame should do the trick.
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.randomparts.teleportpart.CFrame
Use CFrame
Example:
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(X,Y,Z)