Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make a brick teleport?

I'm working on a game and I need to know how to make a brick teleport? if you could help me that would be great. Thanks!

1 comment

0

Do you mean making a person teleport when they touch it or make the part itself move?

5 answers

brick=Workspace.Part --change that to your brick
brick.CFrame=CFrame.new(0,100,0) --change that to your position
game.Workspace.Part.CFrame = game.Workspace.Part2.CFrame
brick=Workspace["Part"] --change part to your brick's name.
brick.CFrame=CFrame.new(brick.Position)

I used SamuelKing's script and made it easier for the user. If you are asking for a teleport to teleport brick, you need something different.

Ting = 0
script.Parent.Touched:connect(function(p)
if p.Parent:findFirstChild("Torso") and Ting == 0 then
Ting = 1
p.Parent.Torso.CFrame = script.Parent.Parent["Name of Brick1"].CFrame + Vector3.new(0,5,0)
wait(Seconds You Want For It To Not Funtion)
Ting = 0
end
end)

Then for brick 2:

Ting = 0
script.Parent.Touched:connect(function(p)
if p.Parent:findFirstChild("Torso") and Ting == 0 then
Ting = 1
p.Parent.Torso.CFrame = script.Parent.Parent["Name of Brick2"].CFrame + Vector3.new(0,5,0)
wait(Seconds You Want For It To Not Function)
Ting = 0
end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.