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 11 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 — 11y

5 answers

Log in to vote
0
Answered by 11 years ago
1brick=Workspace.Part --change that to your brick
2brick.CFrame=CFrame.new(0,100,0) --change that to your position
Ad
Log in to vote
0
Answered by 11 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 11 years ago
1game.Workspace.Part.CFrame = game.Workspace.Part2.CFrame
Log in to vote
0
Answered by 11 years ago
1brick=Workspace["Part"] --change part to your brick's name.
2brick.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 11 years ago
1Ting = 0
2script.Parent.Touched:connect(function(p)
3if p.Parent:findFirstChild("Torso") and Ting == 0 then
4Ting = 1
5p.Parent.Torso.CFrame = script.Parent.Parent["Name of Brick1"].CFrame + Vector3.new(0,5,0)
6wait(Seconds You Want For It To Not Funtion)
7Ting = 0
8end
9end)

Then for brick 2:

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

Answer this question