I made a set of teleporting blocks, and I tested them out, but the teleporter kept going and wouldn't let me move off of the other. Here's ones' code.
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 [ "2" ] .CFrame + Vector 3. new( 0 , 5 , 0 ) |
6 | Ting = 0 |
7 | end |
8 | end ) |
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 [ "2" ] .CFrame + Vector 3. new( 0 , 5 , 0 ) |
6 | wait( 5 ) |
7 | Ting = 0 |
8 | end |
9 | end ) |