disabled = false script.Parent.MouseButton1Click:Connect(function() if disabled == false then disabled = true script.Parent.BackgroundColor3 = Color3.new(217, 0, 0) game.Workspace.Teleport.RemoteFunction:invokeServer() wait(3) script.Parent.BackgroundColor3 = Color3.new(0, 154, 0) disabled = false end end)
local part = game.Workspace.Bridges.Bridge1.Base script.RemoteFunction.OnServerInvoke = function(player) local humanoid = player.Character.Humanoid if humanoid.Parent:FindFirstChild("Torso") then humanoid.Parent.Torso.Cframe = CFrame.new(part.Position + Vector3.new(0,3,0)) elseif humanoid.Parent:FindFirstChild("UpperTorso") then humanoid.Parent.UpperTorso.Cframe = CFrame.new(part.Position + Vector3.new(0,3,0)) else print("notroso") end end