Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function reload()
- pcall(function()
- if game.Players.LocalPlayer.PlayerGui:FindFirstChild("WeaponDisplay") then
- if string.match(game.Players.LocalPlayer.PlayerGui.WeaponDisplay.Frame.Ammo.text, "%d") == "0" then
- keypress(0x52)
- keyrelease(0x52)
- end
- end
- end)
- end
- function equipgun()
- pcall(function()
- for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if v and v:FindFirstChild("LocalScript") then
- game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):EquipTool(v)
- end
- end
- end)
- end
- function checkGun()
- if not game.Players.LocalPlayer.PlayerGui.WeaponDisplay:FindFirstChild("Frame")
- then game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
- wait()
- equipgun()
- end
- end
- spawn(function()
- pcall(function()
- local loc = game.Players.LocalPlayer
- local cam = workspace.Camera
- while wait() do
- loc.CameraMode = Enum.CameraMode.LockFirstPerson
- if loc.Team.Name == "Survivor" then
- equipgun()
- for i,v in pairs(workspace.Sharks:GetChildren()) do
- if workspace.Sharks:FindFirstChild(tostring(v.Name)) then
- game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
- equipgun()
- --checkgun()
- cam.CoordinateFrame = CFrame.new(cam.CoordinateFrame.p, v.Body.CFrame.p)
- mouse1press()
- wait()
- mouse1release()
- reload()
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement