Advertisement
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 shotty = false
- local prefix = "."
- plr.Chatted:connect(function(cmd)
- cmd=cmd:lower()
- if cmd == prefix.."shotty" then
- shotty = not shotty
- end
- end)
- m.Button1Down:connect(function()
- h:wait()
- if shotty == true then
- if plr.Character:FindFirstChild('xxx') then plr.Character.xxx.Fire:FireServer(m.Hit) end
- if plr.Character:FindFirstChild('Shotty') then plr.Character.Shotty.Fire:FireServer(m.Hit) end
- if plr.Character:FindFirstChild('xxx') then plr.Character.xxx.Fire:FireServer(m.Hit) end
- if plr.Character:FindFirstChild('xxx') then plr.Character["xxx"].Fire:FireServer(m.Hit) end
- end
- end)
- function start()
- while true do
- h:wait()
- if shotty == true then
- if plr.Backpack:FindFirstChild('xxx') then
- plr.Backpack.xxx.Parent = plr.Character
- h:wait()
- elseif plr.Backpack:FindFirstChild('Shotty') then
- plr.Backpack.Shotty.Parent = plr.Character
- h:wait()
- elseif plr.Backpack:FindFirstChild("xxx") then
- plr.Backpack.xxx.Parent = plr.Character
- h:wait()
- elseif plr.Backpack:FindFirstChild("xxx") then
- plr.Backpack["xxx"].Parent = plr.Character
- h:wait()
- end
- end
- end
- end
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement