Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Tool = game.Workspace.firemomo45["Za Wardo"]
- script.Parent = Tool
- local Time
- freez = true
- local player = game.Players.LocalPlayer
- local vPlayer
- local Gui
- local Alt
- local Coords
- local Ammo
- local ready = false
- function setUpGui()
- if vPlayer == nil or vPlayer:findFirstChild("PlayerGui") == nil then
- return
- end
- if vPlayer.PlayerGui:findFirstChild("ScreenGui1") == nil then
- Gui = script.ScreenGui:Clone()
- Gui.Name = "ScreenGui1"
- Gui.Parent = vPlayer.PlayerGui
- Gui.Enabled = true
- Gui.ImageLabel.Visible = true
- Gui.TextLabel.Visible = true
- else
- vPlayer.PlayerGui.ScreenGui1.Enabled = true
- end
- end
- function onEquippedLocal(mouse)
- vPlayer = game.Players.LocalPlayer
- Time = script.Parent.Humanoid.Health
- setUpGui()
- ready = true
- end
- function onUnequippedLocal(mouse)
- --if Gui then
- --Gui.Enabled = false
- --end
- --Gui = nil
- --Alt = nil
- --Coords = nil
- --Ammo = nil
- --vPlayer = nil
- end
- Tool.Activated:Connect(function()
- wait(2)
- Gui.TextLabel.Text = 8
- wait(1)
- Gui.TextLabel.Text = 7
- wait(1)
- Gui.TextLabel.Text = 6
- wait(1)
- Gui.TextLabel.Text = 5
- wait(1)
- Gui.TextLabel.Text = 4
- wait(1)
- Gui.TextLabel.Text = 3
- wait(1)
- Gui.TextLabel.Text = 2
- wait(1)
- Gui.TextLabel.Text = 1
- wait(1)
- Gui.TextLabel.Text = 0
- end)
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement