Advertisement
SxScripting

Life Giver Script

Feb 26th, 2021
1,869
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. script.Parent.MouseClick:Connect(function(Player)
  2.  
  3. local PlayerGui = Player:WaitForChild("PlayerGui")
  4. local LivesFrame = PlayerGui.LivesMain.MainFrame
  5.  
  6. LivesFrame.Visible = not LivesFrame.Visible
  7.  
  8. LivesFrame.No.MouseButton1Down:Connect(function()
  9. LivesFrame.Visible = false
  10. Player:WaitForChild("SystemFolder"):WaitForChild("Lives").Value = 0
  11. end)
  12.  
  13. LivesFrame.Yes.MouseButton1Down:Connect(function()
  14. LivesFrame.Visible = false
  15. Player:WaitForChild("SystemFolder"):WaitForChild("Lives").Value = 3
  16. Player.Character.HumanoidRootPart.Position = Vector3.new(math.random(1,20),0,math.random(1,30))
  17. end)
  18.  
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement