Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local leaveGuiEvent = game.ReplicatedStorage.LeaveGuiEvent
- local player = game.Players.LocalPlayer
- player.CameraMaxZoomDistance = 50
- leaveGuiEvent.OnClientEvent:Connect(function()
- player.PlayerGui.MainGui.leaveButton.Visible = true
- end)
- player.PlayerGui.MainGui.leaveButton.MouseButton1Down:connect(function()
- leaveGuiEvent:FireServer()
- player.PlayerGui.MainGui.leaveButton.Visible = false
- end)
Add Comment
Please, Sign In to add comment