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 | brick = Workspace.Part --change that to your brick |
2 | brick.CFrame = CFrame.new( 0 , 100 , 0 ) --change that to your position |
Depends..if to another game then no. but to another place then yes. (http://)www.youtube.com/watch?v=aqwZ9B-I4MI
1 | brick = Workspace [ "Part" ] --change part to your brick's name. |
2 | 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.
1 | Ting = 0 |
2 | script.Parent.Touched:connect( function (p) |
3 | if p.Parent:findFirstChild( "Torso" ) and Ting = = 0 then |
4 | Ting = 1 |
5 | p.Parent.Torso.CFrame = script.Parent.Parent [ "Name of Brick1" ] .CFrame + Vector 3. new( 0 , 5 , 0 ) |
6 | wait(Seconds You Want For It To Not Funtion) |
7 | Ting = 0 |
8 | end |
9 | end ) |
Then for brick 2:
1 | Ting = 0 |
2 | script.Parent.Touched:connect( function (p) |
3 | if p.Parent:findFirstChild( "Torso" ) and Ting = = 0 then |
4 | Ting = 1 |
5 | p.Parent.Torso.CFrame = script.Parent.Parent [ "Name of Brick2" ] .CFrame + Vector 3. new( 0 , 5 , 0 ) |
6 | wait(Seconds You Want For It To Not Function) |
7 | Ting = 0 |
8 | end |
9 | end ) |