01 | disabled = false |
02 |
03 | script.Parent.MouseButton 1 Click:Connect( function () |
04 | if disabled = = false then |
05 | disabled = true |
06 | script.Parent.BackgroundColor 3 = Color 3. new( 217 , 0 , 0 ) |
07 | game.Workspace.Teleport.RemoteFunction:invokeServer() |
08 | wait( 3 ) |
09 | script.Parent.BackgroundColor 3 = Color 3. new( 0 , 154 , 0 ) |
10 | disabled = false |
11 | end |
12 | end ) |
01 | local part = game.Workspace.Bridges.Bridge 1. Base |
02 |
03 | script.RemoteFunction.OnServerInvoke = function (player) |
04 | local humanoid = player.Character.Humanoid |
05 | if humanoid.Parent:FindFirstChild( "Torso" ) then |
06 | humanoid.Parent.Torso.Cframe = CFrame.new(part.Position + Vector 3. new( 0 , 3 , 0 )) |
07 | elseif humanoid.Parent:FindFirstChild( "UpperTorso" ) then |
08 | humanoid.Parent.UpperTorso.Cframe = CFrame.new(part.Position + Vector 3. new( 0 , 3 , 0 )) |
09 | else print ( "notroso" ) |
10 | end |
11 | end |