Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a brick teleport?

Asked by 10 years ago

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!

0
Do you mean making a person teleport when they touch it or make the part itself move? Sublimus 992 — 10y

5 answers

Log in to vote
0
Answered by 10 years ago
brick=Workspace.Part --change that to your brick
brick.CFrame=CFrame.new(0,100,0) --change that to your position
Ad
Log in to vote
0
Answered by 10 years ago

Depends..if to another game then no. but to another place then yes. (http://)www.youtube.com/watch?v=aqwZ9B-I4MI

Log in to vote
0
Answered by 10 years ago
game.Workspace.Part.CFrame = game.Workspace.Part2.CFrame
Log in to vote
0
Answered by 10 years ago
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.

Log in to vote
0
Answered by 10 years ago
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)

Answer this question