Press Shift to Sprint Script You can use this shift to sprint script to make players run in your games with a really easy accessible key of “Shift”. In this case you can change how the script works, change the key they press to sprint or to change how much FOV changes when running. Or even if you don’t want the script to change the players. How it works This script works being in the.
Mar 26th, 2020
Top Paid Roblox Scripts
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
Roblox Studio Free Scripts
- mouse = player:GetMouse()
- ammo = maxAmmo
- firing=false
- reload =2
- script.Parent.Activated:Connect(function()
- firing =true
- repeatlocal bullet= Instance.new('Part', workspace)
- bullet.Shape ='Ball'
- bullet.BrickColor = BrickColor.new('Bright red')
- local Axis = CFrame.new(script.Parent.Handle.Position, mouse.Hit.p)
- local Theta =math.random()*math.pi*2
- local x =math.cos(Theta)*math.sin(Phi)
- local z =math.cos(Phi)
- local Coordinate = Axis * CFrame.fromEulerAnglesXYZ(x,y,z)
- local vel = Instance.new('BodyVelocity')
- game.Debris:AddItem(bullet,15)
- if hit.Parent ~= player.Character and hit.Parent:FindFirstChild('Humanoid')then
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage
- end
- wait(rate)
- end
- script.Parent.Deactivated:Connect(function()
- firing =false
- end)
- ifstring.lower(k)'r'and ammo < maxAmmo and firing falsethen
- wait(reload)
- canFire =true
- end)