Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.MouseClick:Connect(function(Player)
- local PlayerGui = Player:WaitForChild("PlayerGui")
- local LivesFrame = PlayerGui.LivesMain.MainFrame
- LivesFrame.Visible = not LivesFrame.Visible
- LivesFrame.No.MouseButton1Down:Connect(function()
- LivesFrame.Visible = false
- Player:WaitForChild("SystemFolder"):WaitForChild("Lives").Value = 0
- end)
- LivesFrame.Yes.MouseButton1Down:Connect(function()
- LivesFrame.Visible = false
- Player:WaitForChild("SystemFolder"):WaitForChild("Lives").Value = 3
- Player.Character.HumanoidRootPart.Position = Vector3.new(math.random(1,20),0,math.random(1,30))
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement