Advertisement
LucidScripts

Goomba

Jun 1st, 2021
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. local a=Instance.new("ScreenGui")local b=Instance.new("TextLabel")local c=Instance.new("TextLabel")a.Parent=game.CoreGui;b.Name="ClipsTxt"b.Parent=a;b.BackgroundColor3=Color3.fromRGB(255,255,255)b.BackgroundTransparency=1.000;b.Position=UDim2.new(0.31775701,0,0.719123483,0)b.Size=UDim2.new(0,200,0,50)b.Font=Enum.Font.SourceSansBold;b.Text="Clips:"b.TextColor3=Color3.fromRGB(255,153,170)b.TextSize=20.000;b.Visible=false;c.Name="BulletsTxt"c.Parent=a;c.BackgroundColor3=Color3.fromRGB(255,255,255)c.BackgroundTransparency=1.000;c.Position=UDim2.new(0.449766338,0,0.719123483,0)c.Size=UDim2.new(0,200,0,50)c.Font=Enum.Font.SourceSansBold;c.Text="Bullets:"c.TextColor3=Color3.fromRGB(255,153,170)c.TextSize=20.000;c.Visible=false;game.Players.LocalPlayer.PlayerGui.HUD:FindFirstChild("Ammo"):Destroy()function CustomAmmoUI()local d=false;for e,f in pairs(game.Players.LocalPlayer.Backpack:GetChildren())do if f:IsA("Tool")then if f~=nil then f.Equipped:Connect(function()if f:FindFirstChild("Clips")and f:FindFirstChild("Ammo")then wait(.1)b.Text="Clips:"c.Text="Bullets:"d=true;c.Visible=true;b.Visible=true;repeat c.Text="Bullets: "..f:FindFirstChild("Ammo").Value..""b.Text="Clips: "..f:FindFirstChild("Clips").Value..""game:GetService("RunService").Heartbeat:Wait()until d==false else return nil end end)f.Unequipped:Connect(function()b.Text="Clips:"c.Text="Bullets:"d=false;c.Visible=false;b.Visible=false end)end end end end;CustomAmmoUI()game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()game.Players.LocalPlayer.Character.Humanoid:UnequipTools()end)game.Players.LocalPlayer.CharacterAdded:Connect(function()local g=game.Players.LocalPlayer.PlayerGui:WaitForChild("HUD")g.Ammo:Destroy()wait(1)CustomAmmoUI()end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement