Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local LeaveGuiEvent = ReplicatedStorage:WaitForChild("LeaveGuiEvent")
- local player = game.Players.LocalPlayer
- script.Parent.ExitButton.MouseButton1Click:Connect(function()
- LeaveGuiEvent:FireServer(player)
- script.Parent.ExitButton.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement