Could you help me make a script for teleporting to a model, tool or part
on press gui button
I’m just creating a cheat for the game and I really need this feature
exaple:
model:PivotTo(cframe)
part.Position = Vector3.new(x, y, z)
1 Like
Move the model’s Pivot
to the CFrame you want it to be.
Example:
local Model — model you want to move
local CFrame = CFrame.new(0,1,0) — new Pivot(CFrame) for the model
task.wait(5)
Model:PivotTo(CFrame) — Changes Model Pivot to the CFrame inside the parenthesis.
1 Like
Also, if you want to move the player(Teleport the player), you should change the HumanoidRootPart’s CFrame to the CFrame you want it to be.
Example code:
local plr -- player
local CFrame = workspace:FindFirstChild("Part").CFrame -- the CFrame from a part you want the player to be
task.wait(5)
plr.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame -- new player's position
Note: Changing the HumanoidRootPart’s Position or CFrame will also change the Player’s character position in the workspace.