Advertisement
moathon

localscriptPart3

Apr 29th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. local Tool = game.Workspace.firemomo45["Za Wardo"]
  2. script.Parent = Tool
  3. local Time
  4. freez = true
  5. local player = game.Players.LocalPlayer
  6. local vPlayer
  7. local Gui
  8. local Alt
  9. local Coords
  10. local Ammo
  11. local ready = false
  12.  
  13.  
  14. function setUpGui()
  15. if vPlayer == nil or vPlayer:findFirstChild("PlayerGui") == nil then
  16. return
  17. end
  18. if vPlayer.PlayerGui:findFirstChild("ScreenGui1") == nil then
  19. Gui = script.ScreenGui:Clone()
  20. Gui.Name = "ScreenGui1"
  21. Gui.Parent = vPlayer.PlayerGui
  22. Gui.Enabled = true
  23. Gui.ImageLabel.Visible = true
  24. Gui.TextLabel.Visible = true
  25. else
  26. vPlayer.PlayerGui.ScreenGui1.Enabled = true
  27. end
  28. end
  29.  
  30. function onEquippedLocal(mouse)
  31. vPlayer = game.Players.LocalPlayer
  32. Time = script.Parent.Humanoid.Health
  33. setUpGui()
  34. ready = true
  35. end
  36.  
  37. function onUnequippedLocal(mouse)
  38. --if Gui then
  39. --Gui.Enabled = false
  40. --end
  41.  
  42. --Gui = nil
  43. --Alt = nil
  44. --Coords = nil
  45. --Ammo = nil
  46. --vPlayer = nil
  47. end
  48.  
  49. Tool.Activated:Connect(function()
  50. wait(2)
  51. Gui.TextLabel.Text = 8
  52. wait(1)
  53. Gui.TextLabel.Text = 7
  54. wait(1)
  55. Gui.TextLabel.Text = 6
  56. wait(1)
  57. Gui.TextLabel.Text = 5
  58. wait(1)
  59. Gui.TextLabel.Text = 4
  60. wait(1)
  61. Gui.TextLabel.Text = 3
  62. wait(1)
  63. Gui.TextLabel.Text = 2
  64. wait(1)
  65. Gui.TextLabel.Text = 1
  66. wait(1)
  67. Gui.TextLabel.Text = 0
  68. end)
  69. Tool.Equipped:connect(onEquippedLocal)
  70. Tool.Unequipped:connect(onUnequippedLocal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement