Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local h = game:GetService('RunService').Heartbeat
- local m = plr:GetMouse()
- local bfg = false
- local prefix = "."
- plr.Chatted:connect(function(cmd)
- cmd=cmd:lower()
- if cmd == prefix.."bfg" then
- bfg = not bfg
- end
- end)
- m.Button1Down:connect(function()
- h:wait()
- if bfg == true then
- if plr.Character:FindFirstChild('Uzi') then plr.Character.Uzi.Fire:FireServer(m.Hit) end
- if plr.Character:FindFirstChild('Shotty') then plr.Character.Shotty.Fire:FireServer(m.Hit) end
- if plr.Character:FindFirstChild('Glock') then plr.Character.Glock.Fire:FireServer(m.Hit) end
- if plr.Character:FindFirstChild('Sawed Off') then plr.Character["Sawed Off"].Fire:FireServer(m.Hit) end
- end
- end)
- function start()
- while true do
- h:wait()
- if bfg == true then
- if plr.Backpack:FindFirstChild('Uzi') then
- plr.Backpack.Uzi.Parent = plr.Character
- h:wait()
- elseif plr.Backpack:FindFirstChild('Shotty') then
- plr.Backpack.Shotty.Parent = plr.Character
- h:wait()
- elseif plr.Backpack:FindFirstChild("Glock") then
- plr.Backpack.Glock.Parent = plr.Character
- h:wait()
- elseif plr.Backpack:FindFirstChild("Sawed Off") then
- plr.Backpack["Sawed Off"].Parent = plr.Character
- h:wait()
- end
- end
- end
- end
- start()
Add Comment
Please, Sign In to add comment