--//====================================================\\--
--|| BASIS
--\\====================================================//--
--Converted with ttyyuu12345's model to script plugin v4
function sandbox(var,func)
local env = getfenv(func)
local newenv = setmetatable({},{
__index = function(self,k)
if k=="script" then
return var
else
return env[k]
end
end,
})
setfenv(func,newenv)
return func
end
cors = {}
mas = Instance.new("Model",game:GetService("Lighting"))
Folder0 = Instance.new("Folder")
Fire1 = Instance.new("Fire")
ParticleEmitter2 = Instance.new("ParticleEmitter")
ParticleEmitter3 = Instance.new("ParticleEmitter")
UnionOperation4 = Instance.new("UnionOperation")
Part5 = Instance.new("Part")
SpecialMesh6 = Instance.new("SpecialMesh")
Part7 = Instance.new("Part")
SpecialMesh8 = Instance.new("SpecialMesh")
Part9 = Instance.new("Part")
SpecialMesh10 = Instance.new("SpecialMesh")
Part11 = Instance.new("Part")
SpecialMesh12 = Instance.new("SpecialMesh")
ParticleEmitter13 = Instance.new("ParticleEmitter")
ParticleEmitter14 = Instance.new("ParticleEmitter")
Trail15 = Instance.new("Trail")
Part16 = Instance.new("Part")
SpecialMesh17 = Instance.new("SpecialMesh")
ParticleEmitter18 = Instance.new("ParticleEmitter")
Trail19 = Instance.new("Trail")
Part20 = Instance.new("Part")
SpecialMesh21 = Instance.new("SpecialMesh")
ParticleEmitter22 = Instance.new("ParticleEmitter")
ParticleEmitter23 = Instance.new("ParticleEmitter")
ParticleEmitter24 = Instance.new("ParticleEmitter")
ParticleEmitter25 = Instance.new("ParticleEmitter")
ParticleEmitter26 = Instance.new("ParticleEmitter")
ParticleEmitter27 = Instance.new("ParticleEmitter")
ParticleEmitter28 = Instance.new("ParticleEmitter")
Part29 = Instance.new("Part")
SpecialMesh30 = Instance.new("SpecialMesh")
ParticleEmitter31 = Instance.new("ParticleEmitter")
Folder0.Name = "CycleParts"
Folder0.Parent = mas
Fire1.Name = "AoEFire"
Fire1.Parent = mas
Fire1.Color = Color3.new(0.666667, 0.384314, 0.196078)
Fire1.Enabled = false
Fire1.Size = 30
Fire1.Heat = 15
Fire1.SecondaryColor = Color3.new(0, 0, 0)
Fire1.size = 30
ParticleEmitter2.Name = "Blood"
ParticleEmitter2.Parent = mas
ParticleEmitter2.Speed = NumberRange.new(10, 35)
ParticleEmitter2.Rotation = NumberRange.new(0, 360)
ParticleEmitter2.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0.490196, 0.0156863, 0.0156863))
ParticleEmitter2.Enabled = false
ParticleEmitter2.LightEmission = 0.5
ParticleEmitter2.Texture = "rbxassetid://387288028"
ParticleEmitter2.Transparency = NumberSequence.new(0.4375,0.7472527027130127,0.8626373410224915,0.9450549483299255,1)
ParticleEmitter2.Size = NumberSequence.new(0,1.187499761581421,1.3124996423721313,1.4375001192092896,2.249999523162842,3.125,4.625)
ParticleEmitter2.Acceleration = Vector3.new(0, -35, 0)
ParticleEmitter2.Drag = 5
ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
ParticleEmitter2.Lifetime = NumberRange.new(1, 2)
ParticleEmitter2.Rate = 999
ParticleEmitter2.RotSpeed = NumberRange.new(-5, 5)
ParticleEmitter2.SpreadAngle = Vector2.new(35, 35)
ParticleEmitter2.VelocitySpread = 35
ParticleEmitter3.Name = "Fire"
ParticleEmitter3.Parent = mas
ParticleEmitter3.Speed = NumberRange.new(1.5, 1.5)
ParticleEmitter3.Rotation = NumberRange.new(-180, 180)
ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.901961, 0.6, 0.258824),Color3.new(1, 0.733333, 0.360784),Color3.new(0.901961, 0.6, 0.258824))
ParticleEmitter3.Enabled = false
ParticleEmitter3.LightEmission = 0.8999999761581421
ParticleEmitter3.Texture = "rbxasset://textures/particles/fire_main.dds"
ParticleEmitter3.ZOffset = 1
ParticleEmitter3.Size = NumberSequence.new(0,0.9375,0.5000001192092896,0.9999996423721313,0.18750011920928955,0)
ParticleEmitter3.Acceleration = Vector3.new(0, 50, 0)
ParticleEmitter3.Lifetime = NumberRange.new(0.30000001192092896, 0.30000001192092896)
ParticleEmitter3.Rate = 500
ParticleEmitter3.RotSpeed = NumberRange.new(-180, 180)
ParticleEmitter3.SpreadAngle = Vector2.new(999, 999)
ParticleEmitter3.VelocitySpread = 999
UnionOperation4.Name = "Bullet"
UnionOperation4.Parent = mas
UnionOperation4.CFrame = CFrame.new(-18.0738449, 0.320293993, -14.6553841, -2.04368439e-06, -7.03492406e-05, 1.00000012, 1, -2.57390911e-06, 2.04332173e-06, 2.57589272e-06, 0.99999994, 7.03484038e-05)
UnionOperation4.Orientation = Vector3.new(0, 89.99600219726562, 90)
UnionOperation4.Position = Vector3.new(-18.07384490966797, 0.32029399275779724, -14.655384063720703)
UnionOperation4.Rotation = Vector3.new(90, 90, 0)
UnionOperation4.Color = Color3.new(0.996078, 0.952941, 0.733333)
UnionOperation4.Size = Vector3.new(0.10000000149011612, 0.4000000059604645, 0.10000000149011612)
UnionOperation4.Anchored = true
UnionOperation4.BrickColor = BrickColor.new("Buttermilk")
UnionOperation4.Material = Enum.Material.Metal
UnionOperation4.brickColor = BrickColor.new("Buttermilk")
Part5.Name = "BackWheel"
Part5.Parent = mas
Part5.CFrame = CFrame.new(-16.7892303, 5.25105715, -6.79811478, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Part5.Position = Vector3.new(-16.789230346679688, 5.251057147979736, -6.798114776611328)
Part5.Size = Vector3.new(0.47099998593330383, 2.299999952316284, 2.299999952316284)
Part5.Anchored = true
Part5.CanCollide = false
SpecialMesh6.Parent = Part5
SpecialMesh6.MeshId = "rbxassetid://122202439"
SpecialMesh6.Scale = Vector3.new(2.4095520973205566, 2.1642374992370605, 2.1642374992370605)
SpecialMesh6.TextureId = "rbxassetid://122185866"
SpecialMesh6.MeshType = Enum.MeshType.FileMesh
Part7.Name = "Bazooka"
Part7.Parent = mas
Part7.CFrame = CFrame.new(-37.0120697, 4.44133377, 15.3796415, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Part7.Position = Vector3.new(-37.01206970214844, 4.441333770751953, 15.37964153289795)
Part7.Size = Vector3.new(1.0766197443008423, 1.4739437103271484, 4.5500006675720215)
Part7.Anchored = true
Part7.BottomSurface = Enum.SurfaceType.Smooth
Part7.CanCollide = false
Part7.Locked = true
Part7.TopSurface = Enum.SurfaceType.Smooth
Part7.FormFactor = Enum.FormFactor.Custom
Part7.formFactor = Enum.FormFactor.Custom
SpecialMesh8.Parent = Part7
SpecialMesh8.MeshId = "http://www.roblox.com/asset/?id=94690054"
SpecialMesh8.Scale = Vector3.new(1.281690239906311, 1.281690239906311, 1.281690239906311)
SpecialMesh8.TextureId = "http://www.roblox.com/asset/?id=94689966"
SpecialMesh8.MeshType = Enum.MeshType.FileMesh
Part9.Name = "FrontWheel"
Part9.Parent = mas
Part9.CFrame = CFrame.new(-16.7892303, 5.25035477, -12.4236784, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Part9.Position = Vector3.new(-16.789230346679688, 5.250354766845703, -12.423678398132324)
Part9.Size = Vector3.new(0.47099998593330383, 2.3499999046325684, 2.3499999046325684)
Part9.Anchored = true
Part9.CanCollide = false
SpecialMesh10.Parent = Part9
SpecialMesh10.MeshId = "rbxassetid://122202439"
SpecialMesh10.Scale = Vector3.new(2.4095520973205566, 2.2112860679626465, 2.2112860679626465)
SpecialMesh10.TextureId = "rbxassetid://122185866"
SpecialMesh10.MeshType = Enum.MeshType.FileMesh
Part11.Name = "Missile"
Part11.Parent = mas
Part11.CFrame = CFrame.new(7.37005615, 4.28450584, -5.47811508, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Part11.Position = Vector3.new(7.37005615234375, 4.284505844116211, -5.478115081787109)
Part11.Color = Color3.new(0.156863, 0.498039, 0.278431)
Part11.Size = Vector3.new(0.3606469929218292, 0.3600960075855255, 1.376829981803894)
Part11.Anchored = true
Part11.BrickColor = BrickColor.new("Dark green")
Part11.CanCollide = false
Part11.Material = Enum.Material.Metal
Part11.brickColor = BrickColor.new("Dark green")
SpecialMesh12.Parent = Part11
SpecialMesh12.MeshId = "rbxassetid://103970395"
SpecialMesh12.TextureId = "rbxassetid://103967643"
SpecialMesh12.MeshType = Enum.MeshType.FileMesh
ParticleEmitter13.Name = "Jet"
ParticleEmitter13.Parent = mas
ParticleEmitter13.Speed = NumberRange.new(2, 2)
ParticleEmitter13.Rotation = NumberRange.new(0, 359)
ParticleEmitter13.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
ParticleEmitter13.LightEmission = 1
ParticleEmitter13.Transparency = NumberSequence.new(1,0.5,0,0.20000000298023224,1)
ParticleEmitter13.Size = NumberSequence.new(0.800000011920929,0)
ParticleEmitter13.Drag = -2
ParticleEmitter13.EmissionDirection = Enum.NormalId.Back
ParticleEmitter13.Lifetime = NumberRange.new(0.5, 1)
ParticleEmitter13.LockedToPart = true
ParticleEmitter13.Rate = 999
ParticleEmitter14.Name = "JetIn"
ParticleEmitter14.Parent = mas
ParticleEmitter14.Speed = NumberRange.new(2, 2)
ParticleEmitter14.Rotation = NumberRange.new(0, 359)
ParticleEmitter14.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 1, 0.498039))
ParticleEmitter14.LightEmission = 1
ParticleEmitter14.Transparency = NumberSequence.new(1,0.5,0,0.20000000298023224,1)
ParticleEmitter14.Size = NumberSequence.new(0.5,0)
ParticleEmitter14.Drag = -2
ParticleEmitter14.EmissionDirection = Enum.NormalId.Back
ParticleEmitter14.Lifetime = NumberRange.new(0.5, 1)
ParticleEmitter14.LockedToPart = true
ParticleEmitter14.Rate = 999
Trail15.Parent = Part11
Trail15.Attachment0 = nil
Trail15.Attachment1 = nil
Trail15.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 1, 0.498039))
Trail15.FaceCamera = true
Trail15.LightEmission = 1
Trail15.Texture = "rbxassetid://1251856844"
Trail15.Transparency = NumberSequence.new(0.5,1)
Trail15.Lifetime = 0.20000000298023224
Part16.Name = "Molotov"
Part16.Parent = mas
Part16.CFrame = CFrame.new(-12.3729696, 4.50401783, -15.4545317, 1.00000155, 8.05106247e-05, 0.000249306991, -7.84574513e-05, 1.00000143, -7.72849235e-05, -0.00024850812, 7.71902487e-05, 1.00000274)
Part16.Orientation = Vector3.new(0.004000000189989805, 0.014000000432133675, -0.004000000189989805)
Part16.Position = Vector3.new(-12.372969627380371, 4.5040178298950195, -15.4545316696167)
Part16.Rotation = Vector3.new(0.004000000189989805, 0.014000000432133675, -0.004999999888241291)
Part16.Color = Color3.new(0.768627, 0.156863, 0.109804)
Part16.Size = Vector3.new(0.3999999165534973, 1.6000001430511475, 0.3999999165534973)
Part16.Anchored = true
Part16.BottomSurface = Enum.SurfaceType.Smooth
Part16.BrickColor = BrickColor.new("Bright red")
Part16.TopSurface = Enum.SurfaceType.Smooth
Part16.brickColor = BrickColor.new("Bright red")
Part16.FormFactor = Enum.FormFactor.Symmetric
Part16.formFactor = Enum.FormFactor.Symmetric
SpecialMesh17.Parent = Part16
SpecialMesh17.MeshId = "http://www.roblox.com/asset/?id=29690481"
SpecialMesh17.MeshType = Enum.MeshType.FileMesh
ParticleEmitter18.Name = "Fire"
ParticleEmitter18.Parent = mas
ParticleEmitter18.Speed = NumberRange.new(0, 1)
ParticleEmitter18.Rotation = NumberRange.new(-180, 180)
ParticleEmitter18.Color = ColorSequence.new(Color3.new(0.901961, 0.6, 0.258824),Color3.new(1, 0.733333, 0.360784),Color3.new(0.901961, 0.6, 0.258824))
ParticleEmitter18.LightEmission = 0.8999999761581421
ParticleEmitter18.Texture = "rbxasset://textures/particles/fire_main.dds"
ParticleEmitter18.ZOffset = 1
ParticleEmitter18.Size = NumberSequence.new(0,0.2499997615814209,0.5000001192092896,0.18750011920928955,0)
ParticleEmitter18.Acceleration = Vector3.new(0, 50, 0)
ParticleEmitter18.Lifetime = NumberRange.new(0.30000001192092896, 0.30000001192092896)
ParticleEmitter18.LockedToPart = true
ParticleEmitter18.Rate = 500
ParticleEmitter18.RotSpeed = NumberRange.new(-180, 180)
ParticleEmitter18.SpreadAngle = Vector2.new(999, 999)
ParticleEmitter18.VelocitySpread = 999
Trail19.Name = "GrenadeTrail"
Trail19.Parent = Part16
Trail19.Attachment0 = nil
Trail19.Attachment1 = nil
Trail19.FaceCamera = true
Trail19.LightInfluence = 1
Trail19.Texture = "rbxassetid://1251856844"
Trail19.Transparency = NumberSequence.new(0.5,1)
Trail19.Lifetime = 0.20000000298023224
Part20.Name = "Motor"
Part20.Parent = mas
Part20.CFrame = CFrame.new(-16.7891006, 5.9464941, -9.61109447, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Part20.Position = Vector3.new(-16.789100646972656, 5.946494102478027, -9.61109447479248)
Part20.Size = Vector3.new(3.805000066757202, 3.7039999961853027, 7.936999797821045)
Part20.Anchored = true
Part20.CanCollide = false
SpecialMesh21.Parent = Part20
SpecialMesh21.MeshId = "rbxassetid://122309814"
SpecialMesh21.Scale = Vector3.new(2.173441171646118, 2.173377275466919, 2.173633098602295)
SpecialMesh21.TextureId = "rbxassetid://122185866"
SpecialMesh21.MeshType = Enum.MeshType.FileMesh
ParticleEmitter22.Name = "Dust"
ParticleEmitter22.Parent = mas
ParticleEmitter22.Rotation = NumberRange.new(0, 359)
ParticleEmitter22.Enabled = false
ParticleEmitter22.LightInfluence = 1
ParticleEmitter22.Texture = "rbxasset://textures/particles/smoke_main.dds"
ParticleEmitter22.Transparency = NumberSequence.new(0.75,1)
ParticleEmitter22.ZOffset = 1
ParticleEmitter22.Size = NumberSequence.new(0.5,4)
ParticleEmitter22.Drag = 5
ParticleEmitter22.EmissionDirection = Enum.NormalId.Back
ParticleEmitter22.Lifetime = NumberRange.new(0.5, 0.5)
ParticleEmitter22.Rate = 200
ParticleEmitter22.SpreadAngle = Vector2.new(5, 5)
ParticleEmitter22.VelocitySpread = 5
ParticleEmitter23.Name = "Fire"
ParticleEmitter23.Parent = mas
ParticleEmitter23.Speed = NumberRange.new(1.5, 15)
ParticleEmitter23.Rotation = NumberRange.new(-180, 180)
ParticleEmitter23.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(0.356863, 0.235294, 0))
ParticleEmitter23.Enabled = false
ParticleEmitter23.LightEmission = 0.8999999761581421
ParticleEmitter23.Texture = "http://www.roblox.com/asset/?id=248625108"
ParticleEmitter23.Transparency = NumberSequence.new(0.03125,0.625,0.831250011920929,0.699999988079071,0.668749988079071,0.5187499523162842,0)
ParticleEmitter23.ZOffset = 0.25
ParticleEmitter23.Size = NumberSequence.new(0,0.9375,0.5000001192092896,0.6499999761581421,0)
ParticleEmitter23.Drag = 5
ParticleEmitter23.EmissionDirection = Enum.NormalId.Back
ParticleEmitter23.Lifetime = NumberRange.new(0.20000000298023224, 0.5)
ParticleEmitter23.LockedToPart = true
ParticleEmitter23.Rate = 999
ParticleEmitter23.RotSpeed = NumberRange.new(-180, 180)
ParticleEmitter23.SpreadAngle = Vector2.new(5, 5)
ParticleEmitter23.VelocitySpread = 5
ParticleEmitter24.Name = "Fire"
ParticleEmitter24.Parent = mas
ParticleEmitter24.Speed = NumberRange.new(1.5, 15)
ParticleEmitter24.Rotation = NumberRange.new(-180, 180)
ParticleEmitter24.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(0.356863, 0.235294, 0))
ParticleEmitter24.Enabled = false
ParticleEmitter24.LightEmission = 0.8999999761581421
ParticleEmitter24.Texture = "http://www.roblox.com/asset/?id=248625108"
ParticleEmitter24.Transparency = NumberSequence.new(0.03125,0.625,0.831250011920929,0.699999988079071,0.668749988079071,0.5187499523162842,0)
ParticleEmitter24.ZOffset = 0.25
ParticleEmitter24.Size = NumberSequence.new(0,0.9375,0.5000001192092896,0.6499999761581421,0)
ParticleEmitter24.Drag = 5
ParticleEmitter24.EmissionDirection = Enum.NormalId.Back
ParticleEmitter24.Lifetime = NumberRange.new(0.20000000298023224, 0.5)
ParticleEmitter24.LockedToPart = true
ParticleEmitter24.Rate = 999
ParticleEmitter24.RotSpeed = NumberRange.new(-180, 180)
ParticleEmitter24.SpreadAngle = Vector2.new(5, 5)
ParticleEmitter24.VelocitySpread = 5
ParticleEmitter25.Name = "Black"
ParticleEmitter25.Parent = mas
ParticleEmitter25.Speed = NumberRange.new(75, 100)
ParticleEmitter25.Rotation = NumberRange.new(-400, 400)
ParticleEmitter25.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
ParticleEmitter25.Enabled = false
ParticleEmitter25.LightInfluence = 1
ParticleEmitter25.Texture = "rbxasset://textures/particles/explosion01_core_main.dds"
ParticleEmitter25.Transparency = NumberSequence.new(0.615384578704834,0.7142857313156128,1)
ParticleEmitter25.ZOffset = 6
ParticleEmitter25.Size = NumberSequence.new(1.3124996423721313,3.062499761581421)
ParticleEmitter25.Drag = 10
ParticleEmitter25.Lifetime = NumberRange.new(0, 0.6000000238418579)
ParticleEmitter25.Rate = 999
ParticleEmitter25.RotSpeed = NumberRange.new(-90, 90)
ParticleEmitter25.SpreadAngle = Vector2.new(180, 180)
ParticleEmitter25.VelocitySpread = 180
ParticleEmitter26.Name = "Core"
ParticleEmitter26.Parent = mas
ParticleEmitter26.Speed = NumberRange.new(35, 100)
ParticleEmitter26.Rotation = NumberRange.new(-400, 400)
ParticleEmitter26.Color = ColorSequence.new(Color3.new(1, 1, 0.803922),Color3.new(0.870588, 0.619608, 0.160784),Color3.new(0.635294, 0.333333, 0.129412),Color3.new(0, 0, 0))
ParticleEmitter26.Enabled = false
ParticleEmitter26.LightEmission = 1
ParticleEmitter26.LightInfluence = 1
ParticleEmitter26.Texture = "rbxasset://textures/particles/explosion01_core_main.dds"
ParticleEmitter26.Transparency = NumberSequence.new(0,0.25,1)
ParticleEmitter26.ZOffset = 5
ParticleEmitter26.Size = NumberSequence.new(5,10)
ParticleEmitter26.Drag = 3
ParticleEmitter26.Lifetime = NumberRange.new(0.5, 5)
ParticleEmitter26.Rate = 999
ParticleEmitter26.RotSpeed = NumberRange.new(-90, 90)
ParticleEmitter26.SpreadAngle = Vector2.new(180, 180)
ParticleEmitter26.VelocitySpread = 180
ParticleEmitter27.Name = "Dust"
ParticleEmitter27.Parent = mas
ParticleEmitter27.Speed = NumberRange.new(200, 200)
ParticleEmitter27.Rotation = NumberRange.new(0, 359)
ParticleEmitter27.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
ParticleEmitter27.Enabled = false
ParticleEmitter27.LightInfluence = 1
ParticleEmitter27.Texture = "rbxasset://textures/particles/smoke_main.dds"
ParticleEmitter27.Transparency = NumberSequence.new(0.75,1)
ParticleEmitter27.ZOffset = 3
ParticleEmitter27.Size = NumberSequence.new(0,0,1,4.124999523162842,7.5,10)
ParticleEmitter27.Drag = 7.5
ParticleEmitter27.EmissionDirection = Enum.NormalId.Front
ParticleEmitter27.Lifetime = NumberRange.new(0.20000000298023224, 2)
ParticleEmitter27.Rate = 9999
ParticleEmitter27.SpreadAngle = Vector2.new(0, 180)
ParticleEmitter28.Name = "Light"
ParticleEmitter28.Parent = mas
ParticleEmitter28.Speed = NumberRange.new(0, 0)
ParticleEmitter28.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
ParticleEmitter28.Enabled = false
ParticleEmitter28.LightEmission = 1
ParticleEmitter28.LightInfluence = 1
ParticleEmitter28.Texture = "rbxassetid://232918622"
ParticleEmitter28.Transparency = NumberSequence.new(1,0.25,0,0.25,1)
ParticleEmitter28.ZOffset = 0.30000001192092896
ParticleEmitter28.Size = NumberSequence.new(0.10000000149011612,0.10000000149011612)
ParticleEmitter28.Lifetime = NumberRange.new(0.20000000298023224, 0.20000000298023224)
ParticleEmitter28.LockedToPart = true
ParticleEmitter28.Rate = 5
Part29.Name = "Uzi"
Part29.Parent = mas
Part29.CFrame = CFrame.new(-16.6737576, 5.20439816, -10.1453505, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Part29.Position = Vector3.new(-16.673757553100586, 5.204398155212402, -10.145350456237793)
Part29.Size = Vector3.new(0.2927202880382538, 1.1737173795700073, 2.0712890625)
Part29.Anchored = true
Part29.CanCollide = false
SpecialMesh30.Parent = Part29
SpecialMesh30.MeshId = "rbxassetid://453175434"
SpecialMesh30.Scale = Vector3.new(0.013341685757040977, 0.013341683894395828, 0.013341683894395828)
SpecialMesh30.TextureId = "rbxassetid://453175461"
SpecialMesh30.MeshType = Enum.MeshType.FileMesh
ParticleEmitter31.Name = "Flash"
ParticleEmitter31.Parent = mas
ParticleEmitter31.Rotation = NumberRange.new(0, 359)
ParticleEmitter31.Color = ColorSequence.new(Color3.new(0.956863, 1, 0.12549),Color3.new(0.956863, 1, 0.12549))
ParticleEmitter31.Enabled = false
ParticleEmitter31.LightEmission = 1
ParticleEmitter31.LightInfluence = 1
ParticleEmitter31.Size = NumberSequence.new(0.25,0)
ParticleEmitter31.EmissionDirection = Enum.NormalId.Back
ParticleEmitter31.Lifetime = NumberRange.new(0.15000000596046448, 0.15000000596046448)
ParticleEmitter31.LockedToPart = true
ParticleEmitter31.Rate = 999
ScreenGui0 = Instance.new("ScreenGui")
TextButton1 = Instance.new("TextButton")
Frame2 = Instance.new("Frame")
TextLabel3 = Instance.new("TextLabel")
TextLabel4 = Instance.new("TextLabel")
TextLabel5 = Instance.new("TextLabel")
TextLabel6 = Instance.new("TextLabel")
TextLabel7 = Instance.new("TextLabel")
TextLabel8 = Instance.new("TextLabel")
TextLabel9 = Instance.new("TextLabel")
TextLabel10 = Instance.new("TextLabel")
TextLabel11 = Instance.new("TextLabel")
TextLabel12 = Instance.new("TextLabel")
ScreenGui0.Name = "ControlsGUI"
ScreenGui0.Parent = mas
ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
TextButton1.Name = "ToggleButton"
TextButton1.Parent = ScreenGui0
TextButton1.Position = UDim2.new(0.699999988, 0, 0.949999988, 0)
TextButton1.Size = UDim2.new(0.100000001, 0, 0.0500000007, 0)
TextButton1.BackgroundColor = BrickColor.new("Black")
TextButton1.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
TextButton1.BackgroundTransparency = 0.5
TextButton1.BorderColor3 = Color3.new(0.137255, 0.137255, 0.137255)
TextButton1.BorderSizePixel = 5
TextButton1.Font = Enum.Font.Gotham
TextButton1.FontSize = Enum.FontSize.Size14
TextButton1.Text = "Controls"
TextButton1.TextColor = BrickColor.new("Institutional white")
TextButton1.TextColor3 = Color3.new(1, 1, 1)
TextButton1.TextScaled = true
TextButton1.TextSize = 14
TextButton1.TextWrap = true
TextButton1.TextWrapped = true
Frame2.Name = "Controls"
Frame2.Parent = TextButton1
Frame2.Position = UDim2.new(-1.5, 0, -5.3499999, 0)
Frame2.Visible = false
Frame2.Size = UDim2.new(4, 0, 5, 0)
Frame2.BackgroundColor = BrickColor.new("Black")
Frame2.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
Frame2.BackgroundTransparency = 0.5
Frame2.BorderColor3 = Color3.new(0.137255, 0.137255, 0.137255)
Frame2.BorderSizePixel = 5
TextLabel3.Name = "ScriptCredits"
TextLabel3.Parent = Frame2
TextLabel3.Size = UDim2.new(1, 0, 0.100000001, 0)
TextLabel3.BackgroundColor = BrickColor.new("Really black")
TextLabel3.BackgroundColor3 = Color3.new(0, 0, 0)
TextLabel3.BackgroundTransparency = 0.75
TextLabel3.BorderColor = BrickColor.new("Really black")
TextLabel3.BorderColor3 = Color3.new(0, 0, 0)
TextLabel3.BorderSizePixel = 5
TextLabel3.Font = Enum.Font.Gotham
TextLabel3.FontSize = Enum.FontSize.Size14
TextLabel3.Text = "ROADROGUE by PityPolygon"
TextLabel3.TextColor = BrickColor.new("Institutional white")
TextLabel3.TextColor3 = Color3.new(1, 1, 1)
TextLabel3.TextScaled = true
TextLabel3.TextSize = 14
TextLabel3.TextWrap = true
TextLabel3.TextWrapped = true
TextLabel4.Name = "Text"
TextLabel4.Parent = Frame2
TextLabel4.Position = UDim2.new(0, 0, 0.150000006, 0)
TextLabel4.Size = UDim2.new(1, 0, 0.100000001, 0)
TextLabel4.BackgroundColor = BrickColor.new("Institutional white")
TextLabel4.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel4.BackgroundTransparency = 1
TextLabel4.Font = Enum.Font.Gotham
TextLabel4.FontSize = Enum.FontSize.Size14
TextLabel4.Text = "Mouse - Use your Uzi"
TextLabel4.TextColor = BrickColor.new("Institutional white")
TextLabel4.TextColor3 = Color3.new(1, 1, 1)
TextLabel4.TextScaled = true
TextLabel4.TextSize = 14
TextLabel4.TextWrap = true
TextLabel4.TextWrapped = true
TextLabel5.Name = "Text"
TextLabel5.Parent = Frame2
TextLabel5.Position = UDim2.new(0, 0, 0.25, 0)
TextLabel5.Size = UDim2.new(1, 0, 0.100000001, 0)
TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel5.BackgroundTransparency = 1
TextLabel5.Font = Enum.Font.Gotham
TextLabel5.FontSize = Enum.FontSize.Size14
TextLabel5.Text = "Z - Temporary boost your Motorcycle's speed by double"
TextLabel5.TextColor = BrickColor.new("Institutional white")
TextLabel5.TextColor3 = Color3.new(1, 1, 1)
TextLabel5.TextScaled = true
TextLabel5.TextSize = 14
TextLabel5.TextWrap = true
TextLabel5.TextWrapped = true
TextLabel6.Name = "Text"
TextLabel6.Parent = Frame2
TextLabel6.Position = UDim2.new(0, 0, 0.349999994, 0)
TextLabel6.Size = UDim2.new(1, 0, 0.100000001, 0)
TextLabel6.BackgroundColor = BrickColor.new("Institutional white")
TextLabel6.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel6.BackgroundTransparency = 1
TextLabel6.Font = Enum.Font.Gotham
TextLabel6.FontSize = Enum.FontSize.Size14
TextLabel6.Text = "X - Toss a Molotov"
TextLabel6.TextColor = BrickColor.new("Institutional white")
TextLabel6.TextColor3 = Color3.new(1, 1, 1)
TextLabel6.TextScaled = true
TextLabel6.TextSize = 14
TextLabel6.TextWrap = true
TextLabel6.TextWrapped = true
TextLabel7.Name = "Text"
TextLabel7.Parent = Frame2
TextLabel7.Position = UDim2.new(0, 0, 0.449999988, 0)
TextLabel7.Size = UDim2.new(1, 0, 0.150000006, 0)
TextLabel7.BackgroundColor = BrickColor.new("Institutional white")
TextLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel7.BackgroundTransparency = 1
TextLabel7.Font = Enum.Font.Gotham
TextLabel7.FontSize = Enum.FontSize.Size14
TextLabel7.Text = "C - Rev up and let your Motorcycle loose to run towards your mouse and explode on impact"
TextLabel7.TextColor = BrickColor.new("Institutional white")
TextLabel7.TextColor3 = Color3.new(1, 1, 1)
TextLabel7.TextScaled = true
TextLabel7.TextSize = 14
TextLabel7.TextWrap = true
TextLabel7.TextWrapped = true
TextLabel8.Name = "Text"
TextLabel8.Parent = Frame2
TextLabel8.Position = UDim2.new(0, 0, 0.600000024, 0)
TextLabel8.Size = UDim2.new(1, 0, 0.100000001, 0)
TextLabel8.BackgroundColor = BrickColor.new("Institutional white")
TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel8.BackgroundTransparency = 1
TextLabel8.Font = Enum.Font.Gotham
TextLabel8.FontSize = Enum.FontSize.Size14
TextLabel8.Text = "V - Equip your Bazooka, click to fire, V to unequip"
TextLabel8.TextColor = BrickColor.new("Institutional white")
TextLabel8.TextColor3 = Color3.new(1, 1, 1)
TextLabel8.TextScaled = true
TextLabel8.TextSize = 14
TextLabel8.TextWrap = true
TextLabel8.TextWrapped = true
TextLabel9.Name = "Text"
TextLabel9.Parent = Frame2
TextLabel9.Position = UDim2.new(0, 0, 0.699999988, 0)
TextLabel9.Size = UDim2.new(1, 0, 0.100000001, 0)
TextLabel9.BackgroundColor = BrickColor.new("Institutional white")
TextLabel9.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel9.BackgroundTransparency = 1
TextLabel9.Font = Enum.Font.Gotham
TextLabel9.FontSize = Enum.FontSize.Size14
TextLabel9.Text = "Running people over at high speed Roadkills them"
TextLabel9.TextColor = BrickColor.new("Institutional white")
TextLabel9.TextColor3 = Color3.new(1, 1, 1)
TextLabel9.TextScaled = true
TextLabel9.TextSize = 14
TextLabel9.TextWrap = true
TextLabel9.TextWrapped = true
TextLabel10.Name = "Text"
TextLabel10.Parent = Frame2
TextLabel10.Position = UDim2.new(0, 0, 0.800000012, 0)
TextLabel10.Size = UDim2.new(1, 0, 0.150000006, 0)
TextLabel10.BackgroundColor = BrickColor.new("Institutional white")
TextLabel10.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel10.BackgroundTransparency = 1
TextLabel10.Font = Enum.Font.Gotham
TextLabel10.FontSize = Enum.FontSize.Size14
TextLabel10.Text = "N - Toggle Safelock, max speed becomes to low to roadkill, disables boost"
TextLabel10.TextColor = BrickColor.new("Institutional white")
TextLabel10.TextColor3 = Color3.new(1, 1, 1)
TextLabel10.TextScaled = true
TextLabel10.TextSize = 14
TextLabel10.TextWrap = true
TextLabel10.TextWrapped = true
TextLabel11.Name = "Text"
TextLabel11.Parent = Frame2
TextLabel11.Position = UDim2.new(0.5, 0, 0.949999988, 0)
TextLabel11.Size = UDim2.new(0.5, 0, 0.0500000007, 0)
TextLabel11.BackgroundColor = BrickColor.new("Institutional white")
TextLabel11.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel11.BackgroundTransparency = 1
TextLabel11.Font = Enum.Font.Gotham
TextLabel11.FontSize = Enum.FontSize.Size14
TextLabel11.Text = "T/Y/U/G - Speak"
TextLabel11.TextColor = BrickColor.new("Institutional white")
TextLabel11.TextColor3 = Color3.new(1, 1, 1)
TextLabel11.TextScaled = true
TextLabel11.TextSize = 14
TextLabel11.TextWrap = true
TextLabel11.TextWrapped = true
TextLabel12.Name = "Text"
TextLabel12.Parent = Frame2
TextLabel12.Position = UDim2.new(0, 0, 0.949999988, 0)
TextLabel12.Size = UDim2.new(0.5, 0, 0.0500000007, 0)
TextLabel12.BackgroundColor = BrickColor.new("Institutional white")
TextLabel12.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel12.BackgroundTransparency = 1
TextLabel12.Font = Enum.Font.Gotham
TextLabel12.FontSize = Enum.FontSize.Size14
TextLabel12.Text = "M - Toggle Music Track"
TextLabel12.TextColor = BrickColor.new("Institutional white")
TextLabel12.TextColor3 = Color3.new(1, 1, 1)
TextLabel12.TextScaled = true
TextLabel12.TextSize = 14
TextLabel12.TextWrap = true
TextLabel12.TextWrapped = true
for i,v in pairs(mas:GetChildren()) do
v.Parent = script
pcall(function() v:MakeJoints() end)
end
mas:Destroy()
for i,v in pairs(cors) do
spawn(function()
pcall(v)
end)
end
script.Parent = owner.Character
local MODULE = script
local PLAYER = owner
local CHARACTER = PLAYER.Character
local HUM = CHARACTER.Humanoid
local REMOTE = Instance.new("RemoteEvent",script)
REMOTE.Name = "Event"
local ROOT = HUM.Torso
local HEAD = CHARACTER.Head
local TORSO = CHARACTER.Torso
local RIGHTARM = CHARACTER["Right Arm"]
local LEFTARM = CHARACTER["Left Arm"]
local RIGHTLEG = CHARACTER["Right Leg"]
local LEFTLEG = CHARACTER["Left Leg"]
local ROOTJOINT = ROOT["RootJoint"]
local NECK = TORSO["Neck"]
local MOTOR = MODULE.Motor
MOTOR.Parent = CHARACTER
local SMG = MODULE.Uzi
SMG.Parent = CHARACTER
local RIGHTSHOULDER = TORSO["Right Shoulder"]
local LEFTSHOULDER = TORSO["Left Shoulder"]
local RIGHTHIP = TORSO["Right Hip"]
local LEFTHIP = TORSO["Left Hip"]
local MOUSEPOS = ROOT.Position
local MOUSEHIT = nil
IT = Instance.new
CF = CFrame.new
VT = Vector3.new
RAD = math.rad
C3 = Color3.new
UD2 = UDim2.new
BRICKC = BrickColor.new
ANGLES = CFrame.Angles
EULER = CFrame.fromEulerAnglesXYZ
COS = math.cos
ACOS = math.acos
SIN = math.sin
ASIN = math.asin
ABS = math.abs
MRANDOM = math.random
FLOOR = math.floor
--//====================================================\\--
--|| FE CODE
--\\====================================================//--
--nyoom
--//====================================================\\--
--|| BACKGROUND VALUES
--\\====================================================//--
local ANIM_SPEED = 3
local MOUSE = PLAYER:GetMouse()
local FRAME_SPEED = 1 / 60 -- (1 / 30) OR (1 / 60)
local CHANGE = 2 / ANIM_SPEED
local DAMAGEMULTIPLIER = 1
local ANIM = "Idle"
local KEYHOLD = false
local MOUSEHOLD = false
local SINE = 0
local ATTACKING = false
local Debris = game:GetService("Debris")
local Effects = IT("Folder",CHARACTER)
Effects.Name = "FXFolder"
ROOTJOINT.C1 = CF(0,0,0)
NECK.C1 = CF(0,0,0)
RIGHTSHOULDER.C1 = CF(0,0,0)
LEFTSHOULDER.C1 = CF(0,0,0)
RIGHTHIP.C1 = CF(0,0,0)
LEFTHIP.C1 = CF(0,0,0)
local USEDEFAULTANIMATIONS = true
--//====================================================\\--
--|| HEARTBEAT
--\\====================================================//--
ArtificialHB = Instance.new("BindableEvent", script)
ArtificialHB.Name = "ArtificialHB"
script:WaitForChild("ArtificialHB")
frame = FRAME_SPEED
tf = 0
allowframeloss = false
tossremainder = false
lastframe = tick()
script.ArtificialHB:Fire()
game:GetService("RunService").Heartbeat:connect(function(s, p)
tf = tf + s
if tf >= frame then
if allowframeloss then
ArtificialHB:Fire()
lastframe = tick()
else
for i = 1, math.floor(tf / frame) do
ArtificialHB:Fire()
end
lastframe = tick()
end
if tossremainder then
tf = 0
else
tf = tf - frame * math.floor(tf / frame)
end
end
end)
function PositiveAngle(NUMBER)
if NUMBER >= 0 then
NUMBER = 0
end
return NUMBER
end
function NegativeAngle(NUMBER)
if NUMBER <= 0 then
NUMBER = 0
end
return NUMBER
end
function Swait(NUMBER)
if NUMBER == 0 or NUMBER == nil then
ArtificialHB.Event:wait()
else
for i = 1, NUMBER do
ArtificialHB.Event:wait()
end
end
end
NLS([[
local PLR = game:GetService("Players").LocalPlayer
local CHAR = PLR.Character
local HUM = CHAR:FindFirstChildOfClass("Humanoid")
--script.Parent.Animate:Remove()
for _,v in next, HUM:GetPlayingAnimationTracks() do
v:Stop();
end
local MOUSE = PLR:GetMouse()
local EVENT = script.Parent.Event
game:service'RunService'.RenderStepped:connect(function()
EVENT:FireServer("MousePositionUpdate",MOUSE.Hit.p)
end)
MOUSE.KeyDown:Connect(function(KEY)
EVENT:FireServer("KeyDown",KEY)
end)
MOUSE.KeyUp:Connect(function(KEY)
EVENT:FireServer("KeyUp",KEY)
end)
MOUSE.Button1Down:Connect(function()
EVENT:FireServer("MouseDown")
end)
MOUSE.Button1Up:Connect(function()
EVENT:FireServer("MouseUp")
end)
]],script)
--//====================================================\\--
--|| CLERP
--\\====================================================//--
function QuaternionFromCFrame(cf)
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
local trace = m00 + m11 + m22
if trace > 0 then
local s = math.sqrt(1 + trace)
local recip = 0.5 / s
return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
else
local i = 0
if m11 > m00 then
i = 1
end
if m22 > (i == 0 and m00 or m11) then
i = 2
end
if i == 0 then
local s = math.sqrt(m00 - m11 - m22 + 1)
local recip = 0.5 / s
return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
elseif i == 1 then
local s = math.sqrt(m11 - m22 - m00 + 1)
local recip = 0.5 / s
return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
elseif i == 2 then
local s = math.sqrt(m22 - m00 - m11 + 1)
local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
end
end
end
function QuaternionToCFrame(px, py, pz, x, y, z, w)
local xs, ys, zs = x + x, y + y, z + z
local wx, wy, wz = w * xs, w * ys, w * zs
local xx = x * xs
local xy = x * ys
local xz = x * zs
local yy = y * ys
local yz = y * zs
local zz = z * zs
return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
end
function QuaternionSlerp(a, b, t)
local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
local startInterp, finishInterp;
if cosTheta >= 0.0001 then
if (1 - cosTheta) > 0.0001 then
local theta = ACOS(cosTheta)
local invSinTheta = 1 / SIN(theta)
startInterp = SIN((1 - t) * theta) * invSinTheta
finishInterp = SIN(t * theta) * invSinTheta
else
startInterp = 1 - t
finishInterp = t
end
else
if (1 + cosTheta) > 0.0001 then
local theta = ACOS(-cosTheta)
local invSinTheta = 1 / SIN(theta)
startInterp = SIN((t - 1) * theta) * invSinTheta
finishInterp = SIN(t * theta) * invSinTheta
else
startInterp = t - 1
finishInterp = t
end
end
return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
end
function Clerp(a, b, t)
local qa = {QuaternionFromCFrame(a)}
local qb = {QuaternionFromCFrame(b)}
local ax, ay, az = a.x, a.y, a.z
local bx, by, bz = b.x, b.y, b.z
local _t = 1 - t
return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
end
--//====================================================\\--
--|| FUNCTIONS
--\\====================================================//--
function WeldParts(A,B)
local WLD = IT("ManualWeld")
WLD.Part0 = A
WLD.Part1 = B
WLD.C1 = B.CFrame:inverse() * A.CFrame
WLD.Parent = A
return WLD
end
--NewSound({ID = 0,PARENT = ROOT,VOLUME = 0.5,PITCH = 1,LOOP = false,MAXDISTANCE = 1000,EMITTERSIZE = 10,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
function NewSound(TABLE)
local ID = "rbxassetid://"..(TABLE.ID or 0)
local PARENT = (TABLE.PARENT or ROOT)
local VOLUME = (TABLE.VOLUME or 0.5)
local PITCH = (TABLE.PITCH or 1)
local LOOP = (TABLE.LOOP or false)
local MAXDISTANCE = (TABLE.MAXDISTANCE or 100)
local EMITTERSIZE = (TABLE.EMITTERSIZE or 10)
local PLAYING = (TABLE.PLAYING or true)
local PLAYONREMOVE = (TABLE.PLAYONREMOVE or false)
local DOESDEBRIS = (TABLE.DOESDEBRIS or true)
if ID ~= "rbxassetid://0" then
local SOUND = IT("Sound",PARENT)
SOUND.SoundId = ID
SOUND.Volume = VOLUME
SOUND.Pitch = PITCH
SOUND.Looped = LOOP
SOUND.MaxDistance = MAXDISTANCE
SOUND.EmitterSize = EMITTERSIZE
SOUND.PlayOnRemove = PLAYONREMOVE
if DOESDEBRIS == true and PLAYING == true and LOOP == false then
Debris:AddItem(SOUND,SOUND.TimeLength+5)
end
if PLAYING == true then
SOUND:Play()
end
return SOUND
end
end
function OofOuchBlood(LOCATION,TO,AMOUNT)
local P = CreatePart(3, Effects, "Granite", 0, 1, BRICKC("Pearl"), "Blood", VT(0,0,0), true)
P.CFrame = CF(LOCATION,TO)
local BLOOD = MODULE.Blood:Clone()
BLOOD.Parent = P
BLOOD:Emit(AMOUNT)
Debris:AddItem(P,2)
end
function AttachmentCFrame(A)
return A.Parent.CFrame*CF(A.Position)
end
function CastProperRay(StartPos, EndPos, Distance, Ignore)
local DIRECTION = CF(StartPos,EndPos).lookVector
return Raycast(StartPos, DIRECTION, Distance, Ignore)
end
function r15ragdoll(character)
Instance.new("ObjectValue",character).Name = "R15Ragdoll"
function recurse(root,callback,i)
i= i or 0
for _,v in pairs(root:GetChildren()) do
i = i + 1
callback(i,v)
if #v:GetChildren() > 0 then
i = recurse(v,callback,i)
end
end
return i
end
function ragdollJoint(part0, part1, attachmentName, className, properties)
attachmentName = attachmentName.."RigAttachment"
local constraint = Instance.new(className.."Constraint")
constraint.Attachment0 = part0:FindFirstChild(attachmentName)
constraint.Attachment1 = part1:FindFirstChild(attachmentName)
constraint.Name = "RagdollConstraint"..part1.Name
for _,propertyData in next,properties or {} do
constraint[propertyData[1]] = propertyData[2]
end
constraint.Parent = character
end
function getAttachment0(attachmentName)
for _,child in next,character:GetChildren() do
local attachment = child:FindFirstChild(attachmentName)
if attachment then
return attachment
end
end
end
recurse(character, function(_,v)
if v:IsA("Attachment") then
v.Axis = Vector3.new(0, 1, 0)
v.SecondaryAxis = Vector3.new(0, 0, 1)
v.Rotation = Vector3.new(0, 0, 0)
end
end)
for _,child in next,character:GetChildren() do
if child:IsA("Accoutrement") then
for _,part in next,child:GetChildren() do
if part:IsA("BasePart") then
local attachment1 = part:FindFirstChildOfClass("Attachment")
local attachment0 = getAttachment0(attachment1.Name)
if attachment0 and attachment1 then
local constraint = Instance.new("HingeConstraint")
constraint.Attachment0 = attachment0
constraint.Attachment1 = attachment1
constraint.LimitsEnabled = true
constraint.UpperAngle = 0
constraint.LowerAngle = 0
constraint.Parent = character
end
end
end
end
end
ragdollJoint(character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
{"LimitsEnabled",true};
{"UpperAngle",5};
})
ragdollJoint(character.UpperTorso, character.Head, "Neck", "BallSocket", {
{"LimitsEnabled",true};
{"UpperAngle",15};
})
local handProperties = {
{"LimitsEnabled", true};
{"UpperAngle",0};
{"LowerAngle",0};
}
ragdollJoint(character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
ragdollJoint(character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
local shinProperties = {
{"LimitsEnabled", true};
{"UpperAngle", 0};
{"LowerAngle", -75};
}
ragdollJoint(character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
ragdollJoint(character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
local footProperties = {
{"LimitsEnabled", true};
{"UpperAngle", 15};
{"LowerAngle", -45};
}
ragdollJoint(character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
ragdollJoint(character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
ragdollJoint(character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
ragdollJoint(character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
ragdollJoint(character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
ragdollJoint(character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
ragdollJoint(character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
ragdollJoint(character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
end
function r6ragdoll(character)
Instance.new("ObjectValue",character).Name = "R6Ragdoll"
local head = character["Head"]
local leftarm = character["Left Arm"]
local leftleg = character["Left Leg"]
local rightleg = character["Right Leg"]
local rightarm = character["Right Arm"]
local torso = character.Torso
local root = character:FindFirstChild("HumanoidRootPart")
function getAttachment0(attachmentName)
for _,child in next,character:GetChildren() do
local attachment = child:FindFirstChild(attachmentName)
if attachment then
return attachment
end
end
end
local HeadA = Instance.new("Attachment")
HeadA.Name = "HeadA"
HeadA.Parent = head
HeadA.Position = Vector3.new(0, -0.5, 0)
HeadA.Rotation = Vector3.new(0, 0, -0)
HeadA.Axis = Vector3.new(1, -0, -0)
HeadA.SecondaryAxis = Vector3.new(0, 1, 0)
for _,child in next,character:GetChildren() do
if child:IsA("Accoutrement") then
--Loop through all parts instead of only checking for one to be forwards-compatible in the event
--ROBLOX implements multi-part accessories
for _,part in next,child:GetChildren() do
if part:IsA("BasePart") then
local attachment1 = part:FindFirstChildOfClass("Attachment")
local attachment0 = getAttachment0(attachment1.Name)
if attachment0 and attachment1 then
--Shouldn't use constraints for this, but have to because of a ROBLOX idiosyncrasy where
--joints connecting a character are perpetually deleted while the character is dead
local constraint = Instance.new("HingeConstraint")
constraint.Attachment0 = attachment0
constraint.Attachment1 = attachment1
constraint.LimitsEnabled = true
constraint.UpperAngle = 0 --Simulate weld by making it difficult for constraint to move
constraint.LowerAngle = 0
constraint.Parent = character
end
end
end
end
end
local LeftArmA = Instance.new("Attachment")
LeftArmA.Name = "LeftArmA"
LeftArmA.Parent = leftarm
LeftArmA.Position = Vector3.new(0.55, 0.8, 0)
LeftArmA.Rotation = Vector3.new(-180, 0, 90)
LeftArmA.Axis = Vector3.new(0, -1, -0)
LeftArmA.SecondaryAxis = Vector3.new(-1, 0, 0)
local LeftLegA = Instance.new("Attachment")
LeftLegA.Name = "LeftLegA"
LeftLegA.Parent = leftleg
LeftLegA.Position = Vector3.new(0, 1.1, 0)
LeftLegA.Rotation = Vector3.new(90, -90, 0)
LeftLegA.Axis = Vector3.new(0, -1, -0)
LeftLegA.SecondaryAxis = Vector3.new(0, -0, 1)
local RightArmA = Instance.new("Attachment")
RightArmA.Name = "RightArmA"
RightArmA.Parent = rightarm
RightArmA.Position = Vector3.new(-0.55, 0.8, 0)
RightArmA.Rotation = Vector3.new(90, -90, 0)
RightArmA.Axis = Vector3.new(0, -1, -0)
RightArmA.SecondaryAxis = Vector3.new(0, -0, 1)
local RightLegA = Instance.new("Attachment")
RightLegA.Name = "RightLegA"
RightLegA.Parent = rightleg
RightLegA.Position = Vector3.new(0, 1.1, 0)
RightLegA.Rotation = Vector3.new(-180, 0, 90)
RightLegA.Axis = Vector3.new(0, -1, -0)
RightLegA.SecondaryAxis = Vector3.new(0, 1, 0)
local TorsoA = Instance.new("Attachment")
TorsoA.Name = "TorsoA"
TorsoA.Parent = torso
TorsoA.Position = Vector3.new(0.5, -1.1, 0)
TorsoA.Rotation = Vector3.new(90, -90, 0)
TorsoA.Axis = Vector3.new(0, -1, -0)
TorsoA.SecondaryAxis = Vector3.new(0, -0, 1)
local TorsoA1 = Instance.new("Attachment")
TorsoA1.Name = "TorsoA1"
TorsoA1.Parent = torso
TorsoA1.Position = Vector3.new(-0.5, -1.1, 0)
TorsoA1.Rotation = Vector3.new(90, -90, 0)
TorsoA1.Axis = Vector3.new(0, -1, -0)
TorsoA1.SecondaryAxis = Vector3.new(0, -0, 1)
local TorsoA2 = Instance.new("Attachment")
TorsoA2.Name = "TorsoA2"
TorsoA2.Parent = torso
TorsoA2.Position = Vector3.new(-1, 0.8, 0)
TorsoA2.Rotation = Vector3.new(0, 0, -180)
TorsoA2.Axis = Vector3.new(-1, -0, 0)
TorsoA2.SecondaryAxis = Vector3.new(0, -1, 0)
local TorsoA3 = Instance.new("Attachment")
TorsoA3.Name = "TorsoA3"
TorsoA3.Parent = torso
TorsoA3.Position = Vector3.new(1, 0.8, 0)
TorsoA3.Rotation = Vector3.new(-180, 0, 0)
TorsoA3.Axis = Vector3.new(1, -0, 0)
TorsoA3.SecondaryAxis = Vector3.new(-0, -1, -0)
local TorsoA4 = Instance.new("Attachment")
TorsoA4.Name = "TorsoA4"
TorsoA4.Parent = torso
TorsoA4.Position = Vector3.new(0, 1, 0)
TorsoA4.Rotation = Vector3.new(0, 0, -0)
TorsoA4.Axis = Vector3.new(1, -0, 0)
TorsoA4.SecondaryAxis = Vector3.new(0, 1, 0)
local TorsoA5 = Instance.new("Attachment")
TorsoA5.Name = "TorsoA5"
TorsoA5.Parent = torso
TorsoA5.Position = Vector3.new(0, 0, 0)
TorsoA5.Rotation = Vector3.new(0, 90, 0)
TorsoA5.Axis = Vector3.new(0, 0, -1)
TorsoA5.SecondaryAxis = Vector3.new(0, 1, 0)
local rootA = Instance.new("Attachment")
rootA.Name= "rootA"
rootA.Parent = root
rootA.Position = Vector3.new(0, 0, 0)
rootA.Rotation = Vector3.new(0, 90, 0)
rootA.Axis = Vector3.new(0, 0, -1)
rootA.SecondaryAxis = Vector3.new(0, 1, 0)
local HA = Instance.new("BallSocketConstraint")
HA.Parent = head
HA.Attachment0 = HeadA
HA.Attachment1 = TorsoA4
HA.Enabled = true
local LAT = Instance.new("BallSocketConstraint")
LAT.Parent = leftarm
LAT.Attachment0 = LeftArmA
LAT.Attachment1 = TorsoA2
LAT.Enabled = true
local RAT = Instance.new("BallSocketConstraint")
RAT.Parent = rightarm
RAT.Attachment0 = RightArmA
RAT.Attachment1 = TorsoA3
RAT.Enabled = true
local HA = Instance.new("BallSocketConstraint")
HA.Parent = head
HA.Attachment0 = HeadA
HA.Attachment1 = TorsoA4
HA.Enabled = true
local TLL = Instance.new("BallSocketConstraint")
TLL.Parent = torso
TLL.Attachment0 = TorsoA1
TLL.Attachment1 = LeftLegA
TLL.Enabled = true
local TRL = Instance.new("BallSocketConstraint")
TRL.Parent = torso
TRL.Attachment0 = TorsoA
TRL.Attachment1 = RightLegA
TRL.Enabled = true
local RTA = Instance.new("BallSocketConstraint")
RTA.Parent = root
RTA.Attachment0 = rootA
RTA.Attachment1 = TorsoA5
RTA.Enabled = true
end
function ManSlaughter(MAN)
if MAN then
local ROOT = MAN:FindFirstChild("HumanoidRootPart")
if ROOT then
ROOT:Remove()
end
local MANHUM = MAN:FindFirstChildOfClass("Humanoid")
if MANHUM then
MANHUM.BreakJointsOnDeath = false
MANHUM.Health = 0
end
if MAN:FindFirstChild("R6Ragdoll") == nil and MAN:FindFirstChild("R15Ragdoll") == nil then
if MAN:FindFirstChild("UpperTorso") then
r15ragdoll(MAN)
else
r6ragdoll(MAN)
end
local TORSO = MAN:FindFirstChild("Torso") or MAN:FindFirstChild("UpperTorso")
if TORSO then
NewSound({ID = 146594648,PARENT = TORSO,VOLUME = 1,PITCH = MRANDOM(8,12)/10,LOOP = false,MAXDISTANCE = 75,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
end
end
MAN:BreakJoints()
if MAN:FindFirstChild("Slaughtered") == nil then
local MARK = IT("Folder",MAN)
MARK.Name = "Slaughtered"
else
if MAN:FindFirstChild("Slaughtered") then
local TORSO = MAN:FindFirstChild("Torso") or MAN:FindFirstChild("UpperTorso")
if TORSO then
TORSO.RotVelocity = VT(0,MRANDOM(-25,25),0)
end
end
end
end
end
function ApplyDamageTo(HUM,DAMAGE)
if HUM.Health >= 0 then
HUM.Health = HUM.Health - DAMAGE
if HUM.Health <= 0 then
ManSlaughter(HUM.Parent)
end
end
end
function AreaOfEffect(AREA,RANGE,MIN,MAX,RETURN)
local HIT = {}
for index, CHILD in pairs(workspace:GetChildren()) do
if CHILD:FindFirstChildOfClass("Humanoid") and CHILD ~= CHARACTER then
local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
local ROOT = HUMAN.Torso
if ROOT then
if (ROOT.Position - AREA).Magnitude <= RANGE then
if RETURN == true then
table.insert(HIT,{CHILD,HUMAN,ROOT})
else
pcall(function()
ApplyDamageTo(HUMAN,MRANDOM(MIN,MAX))
end)
end
end
end
end
end
if RETURN == true then
return HIT
end
end
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
local NEWMESH = IT(MESH)
if MESH == "SpecialMesh" then
NEWMESH.MeshType = MESHTYPE
if MESHID ~= "nil" and MESHID ~= "" then
NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
end
if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
end
end
NEWMESH.Offset = OFFSET or VT(0, 0, 0)
NEWMESH.Scale = SCALE
NEWMESH.Parent = PARENT
return NEWMESH
end
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
local NEWPART = IT("Part")
NEWPART.formFactor = FORMFACTOR
NEWPART.Reflectance = REFLECTANCE
NEWPART.Transparency = TRANSPARENCY
NEWPART.CanCollide = false
NEWPART.Locked = true
NEWPART.Anchored = true
if ANCHOR == false then
NEWPART.Anchored = false
end
NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
NEWPART.Name = NAME
NEWPART.Size = SIZE
NEWPART.Position = ROOT.Position
NEWPART.Material = MATERIAL
NEWPART:BreakJoints()
NEWPART.Parent = PARENT
return NEWPART
end
function Raycast(POSITION, DIRECTION, RANGE, TABLE)
local TABLE = ((type(TABLE) == "table" and TABLE) or {TABLE})
return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(POSITION, DIRECTION * RANGE), TABLE)
end
function CameraShake(AREA,RANGE,SHAKE,TIMER)
return
end
--//====================================================\\--
--|| CHARACTER
--\\====================================================//--
local DIED = false
local TRACKS = {{2598781800,1.75},{373410757,2},{327466331,2.7},{193170682,2.2},{2496169936,2.5},{1703313447,2.3},{2884982022,4.25},{3397313642,3},{601814175,2.2}}
local TRACK = 1
local MOLOTOVPROP = MODULE.Molotov
MOLOTOVPROP.Parent = nil
local MISILEPROP = MODULE.Missile
MISILEPROP.Parent = nil
local BULLETPROP = MODULE.Bullet
BULLETPROP.Parent = nil
local FRONTWHEEL = MODULE.FrontWheel
local BACKWHEEL = MODULE.BackWheel
local FRONTC1 = FRONTWHEEL.CFrame:inverse() * MOTOR.CFrame
local BACKC1 = BACKWHEEL.CFrame:inverse() * MOTOR.CFrame
local BACKUPWHEEL = FRONTWHEEL:Clone()
BACKUPWHEEL.Parent = nil
BACKUPWHEEL.CanCollide = true
BACKUPWHEEL.Anchored = false
local WHEELS = {{FRONTWHEEL,FRONTC1},{BACKWHEEL,BACKC1}}
local WHEELJOINTS = {}
local MOTORMODEL = IT("Model",CHARACTER)
MOTORMODEL.Name = "MotorThings"
for i = 1, #WHEELS do
WHEELS[i][1].Anchored = false
WHEELS[i][1].Parent = MOTORMODEL
local JOINT = IT("Motor6D")
JOINT.Parent = MOTOR
JOINT.C1 = WHEELS[i][2]
JOINT.Part0 = MOTOR
JOINT.Part1 = WHEELS[i][1]
JOINT.Parent = WHEELS[i][1]
table.insert(WHEELJOINTS,JOINT)
end
MOTOR.Anchored = false
MOTOR.Parent = MOTORMODEL
SMG.Anchored = false
local MOTORWELD = IT("Motor6D")
MOTORWELD.Part0 = TORSO
MOTORWELD.Part1 = MOTOR
MOTORWELD.Name = "MotorJoint"
MOTORWELD.Parent = TORSO
local SMGGRIP = IT("Motor6D")
SMGGRIP.Part0 = RIGHTARM
SMGGRIP.Part1 = SMG
SMGGRIP.Name = "SmgGrip"
SMGGRIP.Parent = RIGHTARM
local SMGTIGHTGRIP = IT("Motor6D")
SMGTIGHTGRIP.Part0 = RIGHTARM
SMGTIGHTGRIP.Part1 = SMG
SMGTIGHTGRIP.Name = "SmgGrip"
SMGTIGHTGRIP.C0 = CF(0,-1.1,-0.5)*ANGLES(RAD(90),RAD(0),RAD(-180))*ANGLES(RAD(0),RAD(0),RAD(0))
local MOTORHUM = NewSound({ID = 122292723,PARENT = ROOT,VOLUME = 1.5,PITCH = 1,LOOP = true,MAXDISTANCE = 125,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
MOTORHUM.Name = "MOTORHUM"
local JOINT1 = IT("Attachment",TORSO)
local JOINT2 = IT("Attachment",RIGHTARM)
JOINT1.Position = VT(1.575,0.8,0)
JOINT2.Position = VT(0,1,0)
local SHOULDER = IT("BallSocketConstraint",TORSO)
SHOULDER.Attachment0 = JOINT1
SHOULDER.Attachment1 = JOINT2
SHOULDER.Radius = 0.05
local MOTORHITBOX = CreatePart(3,MOTORMODEL,"Neon",0,1,"Grey","Hitbox",MOTOR.Size*1.5,false)
MOTORHITBOX.Massless = true
MOTORHITBOX.CFrame = MOTOR.CFrame
WeldParts(MOTOR,MOTORHITBOX)
local MOTORHIT = MOTORHITBOX.Touched:Connect(function(HIT)
if HUM.WalkSpeed > 80 then
if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 and HIT.Parent:FindFirstChild("Roadrogue") == nil then
CameraShake(HIT.Position,25,5,55)
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(ROOT.Position-VT(0,2,0),HIT.Position+VT(0,1,0)).lookVector*(HUM.WalkSpeed/2)
BV.Parent = HIT
Debris:AddItem(BV,0.5)
OofOuchBlood(HIT.Position,ROOT.Position,150)
ManSlaughter(HIT.Parent)
NewSound({ID = 314390675,PARENT = ROOT,VOLUME = 5,PITCH = MRANDOM(8,12)/12,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
end
end
end
end)
local BOOST = false
local BAZOOKA = MODULE.Bazooka
BAZOOKA.Parent = CHARACTER
BAZOOKA.Anchored = false
local BAZOOKAWELD = IT("Motor6D")
BAZOOKAWELD.Part0 = TORSO
BAZOOKAWELD.Part1 = BAZOOKA
BAZOOKAWELD.Parent = TORSO
local BC0 = CF(0,0,0.75)*ANGLES(RAD(90),RAD(-40),RAD(90))*ANGLES(RAD(0),RAD(0),RAD(0))
BAZOOKAWELD.C0 = BC0
for _, c in pairs(CHARACTER:GetDescendants()) do
if c:IsA("BasePart") then
c.Locked = true
c.Anchored = false
end
end
local GUI = MODULE.ControlsGUI
GUI.Parent = PLAYER.PlayerGui
GUI.ToggleButton.MouseButton1Click:Connect(function()
if GUI.ToggleButton.Controls.Visible == false then
GUI.ToggleButton.Controls.Visible = true
elseif GUI.ToggleButton.Controls.Visible == true then
GUI.ToggleButton.Controls.Visible = false
end
end)
local MARKME = IT("Beam",CHARACTER)
MARKME.Name = "Roadrogue"
local LOCKEDSPEED = 150
local HASBAZOOKAEQUIPPED = false
--//====================================================\\--
--|| ABILITIES
--\\====================================================//--
function Fire()
local DROPSOUNDS = {3182143803,3182144291,3182144511}
ATTACKING = true
RIGHTSHOULDER.Parent = nil
SMGGRIP.Parent = nil
SMGTIGHTGRIP.Parent = RIGHTARM
local DETECTKILL = function(HIT,POS,FORCE)
if HIT.Parent:FindFirstChildOfClass("Humanoid") then
if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(ROOT.Position,HIT.Position+VT(0,5,0)).lookVector*(FORCE or 25)
BV.Parent = HIT
Debris:AddItem(BV,0.2)
OofOuchBlood(POS,ROOT.Position,150)
else
OofOuchBlood(POS,ROOT.Position,2)
end
ManSlaughter(HIT.Parent)
NewSound({ID = 1489924400,PARENT = HIT,VOLUME = 1,PITCH = MRANDOM(9,11)/10,LOOP = false,MAXDISTANCE = 75,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
elseif HIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
if HIT.Parent.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
if HIT.Parent.Parent:FindFirstChildOfClass("Humanoid").Torso then
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(ROOT.Position,HIT.Position+VT(0,5,0)).lookVector*(FORCE or 25)
BV.Parent = HIT.Parent.Parent:FindFirstChildOfClass("Humanoid").Torso
Debris:AddItem(BV,0.2)
end
OofOuchBlood(POS,ROOT.Position,150)
else
OofOuchBlood(POS,ROOT.Position,2)
end
ManSlaughter(HIT.Parent.Parent)
NewSound({ID = 1489924400,PARENT = HIT,VOLUME = 1,PITCH = MRANDOM(9,11)/10,LOOP = false,MAXDISTANCE = 75,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
else
--Debree({Delay = 1.5,Variant = "Loose",Location = POS,Color = HIT.Color,Size = 0.2,Distance = 1,Material = HIT.Material,Scatter = 60,Amount = 1,DebreeCount = 4})
end
end
local DOFIRE = 0
local GYRO = IT("BodyGyro")
GYRO.D = 20
GYRO.P = 500
GYRO.MaxTorque = VT(4000000,4000000,4000000)
GYRO.CFrame = CF(RIGHTARM.CFrame*CF(0,0.8,0).p,MOUSEPOS)*ANGLES(RAD(90),RAD(45),0)
GYRO.Parent = RIGHTARM
repeat
Swait()
DOFIRE = DOFIRE + 1
if DOFIRE > 4 then
DOFIRE = 0
local PROP = BULLETPROP:Clone()
PROP.Anchored = false
PROP.Parent = workspace
PROP.CFrame = SMG.CFrame*ANGLES(RAD(90),0,0)
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(SMG.Position,SMG.CFrame*CF(-1,0,0).p).lookVector*45
BV.Parent = PROP
Debris:AddItem(BV,0.1)
Debris:AddItem(PROP,1)
NewSound({ID = DROPSOUNDS[MRANDOM(1,#DROPSOUNDS)],PARENT = PROP,VOLUME = 0.35,PITCH = MRANDOM(9,11)/10,LOOP = false,MAXDISTANCE = 65,EMITTERSIZE = 10,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
local HIT,POS = CastProperRay(SMG.CFrame*CF(0.038, 0.35, 1.113).p,MOUSEPOS,1000,CHARACTER)
local DISTANCE = (POS - SMG.CFrame*CF(0.038, 0.35, 1.113).p).Magnitude
if HIT then
DETECTKILL(HIT,POS,12)
end
--SMG.Nuzzle.Flash:Emit(10)
NewSound({ID = 1583819337,PARENT = SMG,VOLUME = 0.45,PITCH = MRANDOM(9,11)/7.5,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 10,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
end
GYRO.CFrame = CF(RIGHTARM.CFrame*CF(0,0.8,0).p,MOUSEPOS)*ANGLES(RAD(90),RAD(45),0)
until MOUSEHOLD == false
wait(0.1)
GYRO:Remove()
RIGHTSHOULDER.Parent = TORSO
SMGGRIP.Parent = RIGHTARM
SMGTIGHTGRIP.Parent = nil
ATTACKING = false
end
function Boost()
if HUM.WalkSpeed > 10 then
BOOST = true
USEDEFAULTANIMATIONS = false
HUM.WalkSpeed = LOCKEDSPEED*2
-- MOTOR.RightPipe.Fire.Enabled = true
-- MOTOR.LeftPipe.Fire.Enabled = true
NewSound({ID = 142472270,PARENT = MOTOR,VOLUME = 10,PITCH = 1,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 10,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
for i=0, 4, 0.1 / ANIM_SPEED do
Swait()
local SPINVELOCITY = -ROOT.RotVelocity.Y/12.5
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0,1.4,1.5)*ANGLES(RAD(35),RAD(0)-SPINVELOCITY/6,RAD(0)-SPINVELOCITY/2)*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.45,-0.3)*ANGLES(RAD(-30),RAD(0)-SPINVELOCITY/2,RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
MOTORWELD.C0 = Clerp(MOTORWELD.C0,CF(0,-1.7,-0.5)*ANGLES(RAD(0),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.3,0.5,-0.3)*ANGLES(RAD(110),RAD(15),RAD(15))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0.2,-1.1,-0.4)*ANGLES(RAD(90),RAD(0),RAD(-160))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.5,0.4,-0.1)*ANGLES(RAD(64.6),RAD(-5),RAD(-5))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.7,-1.4,0.1)*ANGLES(RAD(-50),RAD(0),RAD(10))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.7,-1.4,0.1)*ANGLES(RAD(-50),RAD(0),RAD(-10))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
if ROOT.Velocity.Magnitude <= 0.5 then
break
--[[else
local HIT,POS = Raycast(ROOT.CFrame*CF(0,0,-3).p,ROOT.CFrame.lookVector,2.5,CHARACTER)
if HIT then
if HIT.Anchored == true then
HUM.WalkSpeed = 0
HUM.JumpPower = 0
ROOT.CFrame = CF(VT(POS.X,ROOT.Position.Y,POS.Z),ROOT.Position)*ANGLES(0,RAD(180),0)*CF(0,0,2.2)
ROOT.Anchored = true
local VROT = NewSound({ID = 122292723,PARENT = ROOT,VOLUME = 1.5,PITCH = 3,LOOP = true,MAXDISTANCE = 125,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
for i = 1, 200 do
Swait()
ROOT.CFrame = ROOT.CFrame * CF(0,1.5,0)
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0,1.4,1.5)*ANGLES(RAD(90),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),2.5 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.45,-0.3)*ANGLES(RAD(-30),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
MOTORWELD.C0 = Clerp(MOTORWELD.C0,CF(0,-1.7,-0.5)*ANGLES(RAD(0),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.3,0.5,-0.3)*ANGLES(RAD(110),RAD(15),RAD(15))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0.2,-1.1,-0.4)*ANGLES(RAD(90),RAD(0),RAD(-160))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.5,0.4,-0.1)*ANGLES(RAD(64.6),RAD(-5),RAD(-5))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.7,-1.4,0.1)*ANGLES(RAD(-50),RAD(0),RAD(10))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.7,-1.4,0.1)*ANGLES(RAD(-50),RAD(0),RAD(-10))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
local HIT,POS = Raycast(ROOT.Position+VT(0,3,0),ROOT.CFrame.lookVector,2.5,CHARACTER)
if HIT == nil then
break
end
end
VROT:Remove()
ROOT.Anchored = false
HUM.JumpPower = 85
break
end
end]]
end
end
-- MOTOR.RightPipe.Fire.Enabled = false
-- MOTOR.LeftPipe.Fire.Enabled = false
USEDEFAULTANIMATIONS = true
BOOST = false
end
end
function Molotov()
if ATTACKING == false then
ATTACKING = true
USEDEFAULTANIMATIONS = false
NewSound({ID = 2764683507,PARENT = ROOT,VOLUME = 5,PITCH = 1,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 35,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
for i=0, 0.1, 0.1 / ANIM_SPEED do
Swait()
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0,1.3,-0.5)*ANGLES(RAD(-20),RAD(10),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.5,0.1)*ANGLES(RAD(15.2),RAD(-9.7),RAD(2.6))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
MOTORWELD.C0 = Clerp(MOTORWELD.C0,CF(0.1,-2.5,-0.4)*ANGLES(RAD(20.3),RAD(-9.4),RAD(3.5))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.5,1.1,-0.7)*ANGLES(RAD(119.3),RAD(6.7),RAD(13.4))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0.6,-1.1,-0.5)*ANGLES(RAD(90),RAD(0),RAD(-155))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.5,0.2,-0.1)*ANGLES(RAD(30.4),RAD(-8.6),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.8,-2,-0.2)*ANGLES(RAD(-20.9),RAD(-5.1),RAD(11.1))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.7,-2,-0.2)*ANGLES(RAD(-29.6),RAD(-3.7),RAD(-8.6))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
end
local MOLOTOV = MOLOTOVPROP:Clone()
MOLOTOV.CanCollide = false
MOLOTOV.Parent = Effects
MOLOTOV.CFrame = CF(RIGHTARM.Position,MOUSEPOS)*ANGLES(RAD(45),0,0)
MOLOTOV.Anchored = false
local IMPACT = false
local FORCE = 15 + (MOLOTOV.Position-MOUSEPOS).Magnitude
if FORCE > 300 then
FORCE = 300
end
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(MOLOTOV.Position,MOUSEPOS+VT(0,6,0)).lookVector*FORCE
BV.Parent = MOLOTOV
Debris:AddItem(BV,0.05)
MOLOTOV.RotVelocity = VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
wait(0.1)
MOLOTOV.CanCollide = true
local BOOM = function(CHECKMODEL)
if IMPACT == false then
IMPACT = true
local FLOOR,POS = Raycast(MOLOTOV.Position+VT(0,5,0),CF(VT(0,0,0),VT(0,-1,0)).lookVector,12,{CHARACTER,CHECKMODEL})
if FLOOR then
CameraShake(POS,35,5,6)
for i = 1, MRANDOM(3,5) do
coroutine.resume(coroutine.create(function()
local FIRE = CreatePart(3,Effects,"Neon",0,1,"Grey","Fire",VT(10,2,10),true)
FIRE.CFrame = CF(POS)*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,(i-1)*5)
NewSound({ID = 3303579709,PARENT = FIRE,VOLUME = 6,PITCH = MRANDOM(8,12)/10,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 35,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
local BURN = script.AoEFire:Clone()
BURN.Parent = FIRE
BURN.Enabled = true
local TOUCH = FIRE.Touched:Connect(function(HIT)
if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER and HIT.Parent:FindFirstChild("Roadrogue") == nil then
if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
NewSound({ID = 3303579709,PARENT = HIT,VOLUME = 3,PITCH = 1,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 35,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
for index, CHILD in pairs(HIT.Parent:GetChildren()) do
if CHILD:IsA("BasePart") and CHILD:FindFirstChild("Fire") == nil then
local FIRE = script.Fire:Clone()
FIRE.Parent = CHILD
FIRE.Enabled = true
end
end
end
ManSlaughter(HIT.Parent)
end
end)
wait(MRANDOM(90,175)/10)
BURN.Enabled = false
TOUCH:Disconnect()
Debris:AddItem(FIRE,3)
end))
end
end
MOLOTOV.Transparency = 1
MOLOTOV.Anchored = true
MOLOTOV.CanCollide = false
-- MOLOTOV.Head.Fire.Enabled = false
Debris:AddItem(MOLOTOV,5)
NewSound({ID = 156444949,PARENT = MOLOTOV,VOLUME = 7.5,PITCH = 1,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 35,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
end
end
local HIT = MOLOTOV.Touched:Connect(function(PART)
if PART.Anchored == true then
local CHECKMODEL = nil
if PART.Parent ~= workspace and PART.Anchored == false then
CHECKMODEL = PART.Parent
end
BOOM(CHECKMODEL)
end
end)
for i=0, 0.3, 0.1 / ANIM_SPEED do
Swait()
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0,1.3,-0.5)*ANGLES(RAD(-20),RAD(10),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.5,0.1)*ANGLES(RAD(15.2),RAD(-9.7),RAD(2.6))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
MOTORWELD.C0 = Clerp(MOTORWELD.C0,CF(0.1,-2.5,-0.4)*ANGLES(RAD(20.3),RAD(-9.4),RAD(3.5))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.5,1.1,-0.7)*ANGLES(RAD(119.3),RAD(6.7),RAD(13.4))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0.6,-1.1,-0.5)*ANGLES(RAD(90),RAD(0),RAD(-155))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.5,0.2,-0.1)*ANGLES(RAD(30.4),RAD(-8.6),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.8,-2,-0.2)*ANGLES(RAD(-20.9),RAD(-5.1),RAD(11.1))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.7,-2,-0.2)*ANGLES(RAD(-29.6),RAD(-3.7),RAD(-8.6))*ANGLES(RAD(0),RAD(0),RAD(0)),2.25 / ANIM_SPEED)
end
USEDEFAULTANIMATIONS = true
ATTACKING = false
end
end
function LooseBike()
if ROOT.Velocity.Magnitude <= 1 then
USEDEFAULTANIMATIONS = false
ATTACKING = true
BOOST = true
HUM.WalkSpeed = 0
HUM.JumpPower = 0
for i = 1, 60 do
Swait()
ROOT.CFrame = ROOT.CFrame*ANGLES(0,RAD(-i/2),0)
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0.2,-0.6,0.5)*ANGLES(RAD(-3.5),RAD(3.5),RAD(-44.9))*ANGLES(RAD(0),RAD(0),RAD(0)),2 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.5,0)*ANGLES(RAD(5),RAD(45),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),2 / ANIM_SPEED)
MOTORWELD.C0 = Clerp(MOTORWELD.C0,CF(0,-1.7,-0.6)*ANGLES(RAD(5),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),2 / ANIM_SPEED)
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.5,0.8,-0.2)*ANGLES(RAD(95),RAD(50),RAD(60))*ANGLES(RAD(0),RAD(0),RAD(0)),2 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0,-1.1,-0.5)*ANGLES(RAD(90),RAD(0),RAD(180))*ANGLES(RAD(0),RAD(0),RAD(0)),2 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.5,0.4,0)*ANGLES(RAD(60),RAD(-10),RAD(-5))*ANGLES(RAD(0),RAD(0),RAD(0)),2 / ANIM_SPEED)
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.7,-1.6,-0.3)*ANGLES(RAD(-20),RAD(0),RAD(10))*ANGLES(RAD(0),RAD(0),RAD(0)),2 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.7,-1.6,-0.3)*ANGLES(RAD(-20),RAD(0),RAD(-10))*ANGLES(RAD(0),RAD(0),RAD(0)),2 / ANIM_SPEED)
end
ROOT.CFrame = CF(ROOT.Position,VT(MOUSEPOS.X,ROOT.Position.Y,MOUSEPOS.Z))
coroutine.resume(coroutine.create(function()
local FAKEMOTOR = MOTOR:Clone()
FAKEMOTOR.ManualWeld:Remove()
FAKEMOTOR.CFrame = CF(MOTOR.Position,VT(MOUSEPOS.X,MOTOR.Position.Y+0.5,MOUSEPOS.Z))
FAKEMOTOR.Anchored = true
local DIDHIT = false
FAKEMOTOR.RightPipe.Fire.Enabled = true
FAKEMOTOR.LeftPipe.Fire.Enabled = true
FAKEMOTOR.Dust.Dust.Enabled = true
FAKEMOTOR.Parent = Effects
local VROT = NewSound({ID = 122292723,PARENT = FAKEMOTOR,VOLUME = 1.5,PITCH = 3,LOOP = true,MAXDISTANCE = 125,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
NewSound({ID = 142472270,PARENT = FAKEMOTOR,VOLUME = 10,PITCH = 1,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 35,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
for i = 1, 200 do
Swait()
local FLOOR,POS = Raycast(FAKEMOTOR.Position,CF(VT(0,0,0),VT(0,-1,0)).lookVector,5.5,CHARACTER)
if FLOOR then
FAKEMOTOR.CFrame = CF(FAKEMOTOR.Position.X,POS.Y+FAKEMOTOR.Size.Y/2,FAKEMOTOR.Position.Z)*ANGLES(0,RAD(FAKEMOTOR.Orientation.Y),0) * CF(0,0,-2.5)
local HIT = Raycast(FAKEMOTOR.Position,FAKEMOTOR.CFrame.lookVector,2.6,CHARACTER)
if HIT then
DIDHIT = true
break
end
else
break
end
end
VROT:Remove()
if DIDHIT == true then
FAKEMOTOR.Core.Core.Size = NumberSequence.new(10,25)
FAKEMOTOR.Core.Dust:Emit(200)
FAKEMOTOR.Core.Black:Emit(15)
FAKEMOTOR.Core.Core:Emit(100)
for index, CHILD in pairs(FAKEMOTOR:GetChildren()) do
if CHILD.Name ~= "Core" then
CHILD:Remove()
end
end
local B = IT("Explosion")
B.BlastPressure = 0
B.BlastRadius = 50
B.Parent = workspace
B.Position = FAKEMOTOR.Position
B.Hit:Connect(function(PART)
if PART.Parent:FindFirstChildOfClass("Humanoid") == nil and PART.Parent.Parent:FindFirstChildOfClass("Humanoid") == nil then
if PART.Anchored == false then
PART:BreakJoints()
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(FAKEMOTOR.Position,PART.Position+VT(0,5,0)).lookVector*MRANDOM(35,75)
BV.Parent = PART
Debris:AddItem(BV,0.5)
if MRANDOM(1,3) == 1 then
local FIRE = script.Fire:Clone()
FIRE.Parent = PART
FIRE.Enabled = true
end
end
end
end)
CameraShake(FAKEMOTOR.Position,150,10,75)
local VICTIMS = AreaOfEffect(FAKEMOTOR.Position,65,0,0,true)
if #VICTIMS > 0 then
for E = 1, #VICTIMS do
local VROOT = VICTIMS[E][1]:FindFirstChild("Torso") or VICTIMS[E][1]:FindFirstChild("LowerTorso")
if VROOT then
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(FAKEMOTOR.Position,VROOT.Position+VT(0,5,0)).lookVector*MRANDOM(35,75)
BV.Parent = VROOT
Debris:AddItem(BV,0.5)
end
ManSlaughter(VICTIMS[E][1])
for index, CHILD in pairs(VICTIMS[E][1]:GetChildren()) do
if CHILD:IsA("BasePart") and MRANDOM(1,3) == 1 then
local FIRE = script.Fire:Clone()
FIRE.Parent = CHILD
FIRE.Enabled = true
end
end
end
end
NewSound({ID = 243702774,PARENT = FAKEMOTOR,VOLUME = 7.5,PITCH = 1.5,LOOP = false,MAXDISTANCE = 550,EMITTERSIZE = 75,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
FAKEMOTOR.Transparency = 1
for i = 1, 2 do
local WHEEL = BACKUPWHEEL:Clone()
WHEEL.Parent = workspace
WHEEL.CFrame = FAKEMOTOR.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
WHEEL.RotVelocity = VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = WHEEL.CFrame.lookVector*85
BV.Parent = WHEEL
Debris:AddItem(BV,0.12)
Debris:AddItem(WHEEL,15)
end
Debris:AddItem(FAKEMOTOR,7.1)
else
FAKEMOTOR.CanCollide = true
FAKEMOTOR.Parent = workspace
FAKEMOTOR.Anchored = false
FAKEMOTOR.Dust.Dust.Enabled = false
FAKEMOTOR.RightPipe.Fire.Enabled = false
FAKEMOTOR.LeftPipe.Fire.Enabled = false
Debris:AddItem(FAKEMOTOR,15)
end
end))
MOTOR.Transparency = 1
FRONTWHEEL.Transparency = 1
BACKWHEEL.Transparency = 1
for i=0, 0.4, 0.1 / ANIM_SPEED do
Swait()
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0,1.8,0.5)*ANGLES(RAD(10),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.4,-0.4)*ANGLES(RAD(-25),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.4,-0.2,0.2)*ANGLES(RAD(20),RAD(-20),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0,-1.1,-0.5)*ANGLES(RAD(90),RAD(0),RAD(180))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.5,0.2,0)*ANGLES(RAD(-0.3),RAD(-2.6),RAD(-14.8))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.5,-1.5,-0.1)*ANGLES(RAD(-45),RAD(-5),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.5,-1.8,0.2)*ANGLES(RAD(-15),RAD(5),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
end
ATTACKING = false
for i=0, 2, 0.1 / ANIM_SPEED do
Swait()
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0,-1,0.6)*ANGLES(RAD(-5),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1.35 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.5,0)*ANGLES(RAD(5),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1.35 / ANIM_SPEED)
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.5,-0.1,0)*ANGLES(RAD(24.9),RAD(1.7),RAD(4.7))*ANGLES(RAD(0),RAD(0),RAD(0)),1.35 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0,-1.1,-0.5)*ANGLES(RAD(90),RAD(0),RAD(-180))*ANGLES(RAD(0),RAD(0),RAD(0)),1.35 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-0.4,0.4,-1)*ANGLES(RAD(80.9),RAD(5.7),RAD(48.4))*ANGLES(RAD(0),RAD(0),RAD(0)),1.35 / ANIM_SPEED)
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.5,-0.9,-1.1)*ANGLES(RAD(-10),RAD(-10),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1.35 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.5,-1.5,0)*ANGLES(RAD(-60),RAD(10),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1.35 / ANIM_SPEED)
end
coroutine.resume(coroutine.create(function()
for i = 1, 10 do
Swait()
MOTOR.Transparency = MOTOR.Transparency - 1/10
end
MOTOR.Transparency = 0
FRONTWHEEL.Transparency = 0
BACKWHEEL.Transparency = 0
end))
for i=0, 0.25, 0.1 / ANIM_SPEED do
Swait()
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0,1.8,0.5)*ANGLES(RAD(10),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.4,-0.4)*ANGLES(RAD(-25),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.4,-0.2,0.2)*ANGLES(RAD(20),RAD(-20),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0,-1.1,-0.5)*ANGLES(RAD(90),RAD(0),RAD(180))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.5,0.2,0)*ANGLES(RAD(-0.3),RAD(-2.6),RAD(-14.8))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.5,-1.5,-0.1)*ANGLES(RAD(-45),RAD(-5),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.5,-1.8,0.2)*ANGLES(RAD(-15),RAD(5),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1 / ANIM_SPEED)
end
BOOST = false
USEDEFAULTANIMATIONS = true
HUM.WalkSpeed = 5
HUM.JumpPower = 85
end
end
function GrabBazooka()
if HASBAZOOKAEQUIPPED == false then
local ONCOOLDOWN = false
NewSound({ID = 171140306,PARENT = ROOT,VOLUME = 1,PITCH = MRANDOM(9,11)/15,LOOP = false,MAXDISTANCE = 75,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
HASBAZOOKAEQUIPPED = true
BAZOOKAWELD.Part0 = RIGHTARM
BAZOOKAWELD.C0 = CF(-0.4,-0.9,-0.7)*ANGLES(RAD(-88.7),RAD(4.8),RAD(-15.1))*ANGLES(RAD(0),RAD(0),RAD(0))
local Fire = function()
local LOCKONTOPART = nil
if MOUSEHIT then
local HUM = MOUSEHIT.Parent:FindFirstChildOfClass("Humanoid") or MOUSEHIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
if HUM then
if HUM.Health > 0 and HUM.Torso then
LOCKONTOPART = HUM.Torso
end
end
end
local GOTO = MOUSEPOS
local ROCKET = MISILEPROP:Clone()
ROCKET.Parent = Effects
ROCKET.CFrame = CF(BAZOOKA.CFrame*CF(0,0,-2).p,GOTO)
NewSound({ID = 440145223,PARENT = BAZOOKA,VOLUME = 5,PITCH = MRANDOM(9,11)/10,LOOP = false,MAXDISTANCE = 80,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
NewSound({ID = 440145223,PARENT = ROCKET,VOLUME = 5,PITCH = MRANDOM(9,11)/10,LOOP = false,MAXDISTANCE = 80,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
for i = 1, 200 do
Swait()
local HIT,POS = Raycast(ROCKET.Position,ROCKET.CFrame.lookVector,4,CHARACTER)
if HIT then
ROCKET.CFrame = CF(POS)
break
end
if LOCKONTOPART then
ROCKET.CFrame = Clerp(ROCKET.CFrame,CF(ROCKET.Position,LOCKONTOPART.Position),0.2)*CF(0,0,-2.25)
else
ROCKET.CFrame = ROCKET.CFrame*CF(0,0,-3)
end
end
ROCKET.Transparency = 1
--ROCKET.Hind:Remove()
ROCKET.CFrame = CF(ROCKET.Position)
ROCKET.Size = VT(0,0,0)
NewSound({ID = 142070127,PARENT = ROCKET,VOLUME = 7,PITCH = MRANDOM(8,12)/10,LOOP = false,MAXDISTANCE = 300,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
local B = IT("Explosion")
B.BlastPressure = 0
B.BlastRadius = 15
B.Position = ROCKET.Position
B.Parent = workspace
B.Hit:Connect(function(PART)
if PART.Parent:FindFirstChildOfClass("Humanoid") == nil and PART.Parent.Parent:FindFirstChildOfClass("Humanoid") == nil then
if PART.Anchored == false then
PART:BreakJoints()
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(ROCKET.Position,PART.Position+VT(0,5,0)).lookVector*MRANDOM(35,75)
BV.Parent = PART
Debris:AddItem(BV,0.5)
if MRANDOM(1,3) == 1 then
local FIRE = script.Fire:Clone()
FIRE.Parent = PART
FIRE.Enabled = true
end
end
end
end)
CameraShake(ROCKET.Position,55,2,7)
local VICTIMS = AreaOfEffect(ROCKET.Position,25,0,0,true)
if #VICTIMS > 0 then
for E = 1, #VICTIMS do
local VROOT = VICTIMS[E][1]:FindFirstChild("Torso") or VICTIMS[E][1]:FindFirstChild("LowerTorso")
if VROOT then
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(ROCKET.Position,VROOT.Position+VT(0,5,0)).lookVector*MRANDOM(35,75)
BV.Parent = VROOT
Debris:AddItem(BV,0.5)
end
ManSlaughter(VICTIMS[E][1])
for index, CHILD in pairs(VICTIMS[E][1]:GetChildren()) do
if CHILD:IsA("BasePart") and MRANDOM(1,3) == 1 then
local FIRE = script.Fire:Clone()
FIRE.Parent = CHILD
FIRE.Enabled = true
end
end
end
end
AreaOfEffect(ROCKET.Position,35,200,false)
Debris:AddItem(ROCKET,2)
end
wait(0.5)
BUTTON = REMOTE.OnServerEvent:Connect(function(PLR,V1,V2)
if PLR == PLAYER and ANIM ~= "Sit" then
if V2 == "v" then
BUTTON:Disconnect()
wait(0.1)
NewSound({ID = 171140306,PARENT = ROOT,VOLUME = 1,PITCH = MRANDOM(9,11)/15,LOOP = false,MAXDISTANCE = 75,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
HASBAZOOKAEQUIPPED = false
BAZOOKAWELD.Part0 = TORSO
BAZOOKAWELD.C0 = BC0
elseif V1 == "MouseDown" and ONCOOLDOWN == false then
ONCOOLDOWN = true
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.5,0.4,0.7)*ANGLES(RAD(90),RAD(15),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),2.5 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(0.5,0.3,-0.9)*ANGLES(RAD(91.4),RAD(-16.9),RAD(19.9))*ANGLES(RAD(0),RAD(0),RAD(0)),2.5 / ANIM_SPEED)
coroutine.resume(coroutine.create(function()
wait(0.25)
ONCOOLDOWN = false
end))
Fire()
end
end
end)
end
end
--//====================================================\\--
--|| WRAP
--\\====================================================//--
REMOTE.OnServerEvent:Connect(function(PLR,V1,V2)
if PLR == PLAYER and ANIM ~= "Sit" then
if V1 == "MousePositionUpdate" then
MOUSEPOS = V2
elseif V1 == "KeyUp" then
KEYHOLD = false
elseif V1 == "MouseUp" then
MOUSEHOLD = false
end
if V1 == "MouseDown" and ATTACKING == false then
MOUSEHOLD = true
if HASBAZOOKAEQUIPPED == false then
Fire()
end
elseif V1 == "KeyDown" and USEDEFAULTANIMATIONS == true then
KEYHOLD = true
if V2 == "e" then
if ROOT:FindFirstChild("BGM_MUSIC") then
ROOT:FindFirstChild("BGM_MUSIC"):Remove()
else
local M = NewSound({ID = TRACKS[TRACK][1],PARENT = ROOT,VOLUME = TRACKS[TRACK][2],PITCH = 1,LOOP = true,MAXDISTANCE = 300,EMITTERSIZE = 300,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
M.Name = "BGM_MUSIC"
end
elseif V2 == "z" and LOCKEDSPEED > 100 and HASBAZOOKAEQUIPPED == false then
Boost()
elseif V2 == "x" and ATTACKING == false and HASBAZOOKAEQUIPPED == false then
Molotov()
elseif V2 == "c" and ATTACKING == false and HASBAZOOKAEQUIPPED == false then
LooseBike()
elseif V2 == "v" and ATTACKING == false and USEDEFAULTANIMATIONS == true and HASBAZOOKAEQUIPPED == false then
GrabBazooka()
elseif V2 == "n" then
NewSound({ID = 156286438,PARENT = ROOT,VOLUME = 7,PITCH = 1,LOOP = false,MAXDISTANCE = 75,EMITTERSIZE = 10,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
if LOCKEDSPEED == 75 then
LOCKEDSPEED = 150
elseif LOCKEDSPEED == 150 then
LOCKEDSPEED = 75
end
elseif V2 == "t" then
NewSound({ID = 159882462,PARENT = ROOT,VOLUME = 10,PITCH = 1,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 50,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
elseif V2 == "y" then
NewSound({ID = 463770058,PARENT = ROOT,VOLUME = 10,PITCH = 1,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 50,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
elseif V2 == "u" then
NewSound({ID = 159882546,PARENT = ROOT,VOLUME = 10,PITCH = 1,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 50,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
elseif V2 == "g" then
NewSound({ID = 159882441,PARENT = ROOT,VOLUME = 10,PITCH = 1,LOOP = false,MAXDISTANCE = 125,EMITTERSIZE = 50,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
elseif V2 == "m" then
TRACK = TRACK + 1
if TRACK > #TRACKS then
TRACK = 1
end
if ROOT:FindFirstChild("BGM_MUSIC") then
ROOT:FindFirstChild("BGM_MUSIC").SoundId = "rbxassetid://"..TRACKS[TRACK][1]
ROOT:FindFirstChild("BGM_MUSIC").Volume = TRACKS[TRACK][2]
ROOT:FindFirstChild("BGM_MUSIC"):Play()
end
end
end
end
end)
local M = NewSound({ID = 2598781800,PARENT = ROOT,VOLUME = 2.75,PITCH = 1,LOOP = true,MAXDISTANCE = 300,EMITTERSIZE = 300,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
M.Name = "BGM_MUSIC"
HUM.Died:Connect(function()
if MOTOR.Transparency == 0 then
MOTORMODEL:BreakJoints()
MOTOR.Anchored = true
MOTOR.Transparency = 1
MOTOR.CanCollide = false
MOTOR.Core.Core.Size = NumberSequence.new(10,25)
MOTOR.Core.Dust:Emit(200)
MOTOR.Core.Black:Emit(15)
MOTOR.Core.Core:Emit(100)
for index, CHILD in pairs(MOTOR:GetChildren()) do
if CHILD.Name ~= "Core" then
CHILD:Remove()
end
end
local B = IT("Explosion")
B.BlastPressure = 0
B.BlastRadius = 50
B.Parent = workspace
B.Position = MOTOR.Position
B.Hit:Connect(function(PART)
if PART.Parent:FindFirstChildOfClass("Humanoid") == nil and PART.Parent.Parent:FindFirstChildOfClass("Humanoid") == nil then
if PART.Anchored == false then
PART:BreakJoints()
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(MOTOR.Position,PART.Position+VT(0,5,0)).lookVector*MRANDOM(35,75)
BV.Parent = PART
Debris:AddItem(BV,0.5)
if MRANDOM(1,3) == 1 then
local FIRE = script.Fire:Clone()
FIRE.Parent = PART
FIRE.Enabled = true
end
end
end
end)
CameraShake(MOTOR.Position,150,10,75)
local VICTIMS = AreaOfEffect(MOTOR.Position,65,0,0,true)
if #VICTIMS > 0 then
for E = 1, #VICTIMS do
local VROOT = VICTIMS[E][1]:FindFirstChild("Torso") or VICTIMS[E][1]:FindFirstChild("LowerTorso")
if VROOT then
local BV = IT("BodyVelocity")
BV.MaxForce = BV.MaxForce * 500
BV.Velocity = CF(MOTOR.Position,VROOT.Position+VT(0,5,0)).lookVector*MRANDOM(35,75)
BV.Parent = VROOT
Debris:AddItem(BV,0.5)
end
ManSlaughter(VICTIMS[E][1])
for index, CHILD in pairs(VICTIMS[E][1]:GetChildren()) do
if CHILD:IsA("BasePart") and MRANDOM(1,3) == 1 then
local FIRE = script.Fire:Clone()
FIRE.Parent = CHILD
FIRE.Enabled = true
end
end
end
end
NewSound({ID = 243702774,PARENT = MOTOR,VOLUME = 7.5,PITCH = 1.5,LOOP = false,MAXDISTANCE = 550,EMITTERSIZE = 75,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
MOTOR.Transparency = 1
else
MOTOR:Remove()
end
DIED = true
ManSlaughter(CHARACTER)
MOTOR.CanCollide = true
MOTORHITBOX:Remove()
end)
HUM.HealthChanged:Connect(function()
if DIED == false then
HUM.PlatformStand = false
HUM.MaxHealth = 3000
HUM.Health = 3000
HUM.Name = PLAYER.UserId
end
end)
HUM.PlatformStand = false
HUM.MaxHealth = 3000
HUM.Health = 3000
HUM.Name = PLAYER.UserId
script.Parent = PLAYER.Backpack
HUM.WalkSpeed = 5
HUM.JumpPower = 85
while true do
Swait()
SINE = SINE + CHANGE
if CHARACTER:FindFirstChild("Animate") then
CHARACTER:FindFirstChild("Animate"):Destroy()
end
if CHARACTER:FindFirstChild("Sound") then
CHARACTER:FindFirstChild("Sound"):Destroy()
end
for _,v in next, HUM:GetPlayingAnimationTracks() do
v:Stop();
end
local TORSOVELOCITY = (ROOT.Velocity * VT(1, 0, 1)).magnitude
local TORSOVERTICALVELOCITY = ROOT.Velocity.y
local HITFLOOR = Raycast(ROOT.Position, (CF(ROOT.Position, ROOT.Position + VT(0, -1, 0))).lookVector, 4+HUM.HipHeight, CHARACTER)
local WALKSPEEDVALUE = 4 / (HUM.WalkSpeed / 16)
if ROOT:FindFirstChild("MOTORHUM") == nil then
MOTORHUM = NewSound({ID = 122292723,PARENT = ROOT,VOLUME = 1.5,PITCH = 1,LOOP = true,MAXDISTANCE = 125,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
MOTORHUM.Name = "MOTORHUM"
else
if ROOT:FindFirstChild("MOTORHUM").Playing == false then
ROOT:FindFirstChild("MOTORHUM").Playing = true
end
end
local SPINVELOCITY = -ROOT.RotVelocity.Y/12.5
if HASBAZOOKAEQUIPPED == true then
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.5,0.4,0.3)*ANGLES(RAD(90),RAD(15),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0,-1.1,0.2)*ANGLES(RAD(10),RAD(0),RAD(-180))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(0.5,0.3,-1.3)*ANGLES(RAD(91.4),RAD(-16.9),RAD(19.9))*ANGLES(RAD(0),RAD(0),RAD(0)),0.5 / ANIM_SPEED)
end
if TORSOVELOCITY > 0.5 then
ANIM = "Drive"
else
ANIM = "Idle"
end
if HITFLOOR then
if TORSOVELOCITY < 1 and HITFLOOR ~= nil then
--MOTOR.Dust.Dust.Enabled = false
if USEDEFAULTANIMATIONS == true then
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(-0.6,0.2,0.6)*ANGLES(RAD(0),RAD(15),RAD(10))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.5,0)*ANGLES(RAD(0),RAD(-15),RAD(-5))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
MOTORWELD.C0 = Clerp(MOTORWELD.C0,CF(0.5,-1.5,-0.5)*ANGLES(RAD(-2.7),RAD(-14.8),RAD(-5.3))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
if HASBAZOOKAEQUIPPED == false then
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.4,0.3,0.4)*ANGLES(RAD(31.3),RAD(-39.9),RAD(55.5))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(-0.1,-1.1,-0.4)*ANGLES(RAD(98.3),RAD(-4.8),RAD(-168.1))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.5,0.3,-0.65)*ANGLES(RAD(89.9),RAD(-4.8),RAD(15))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
end
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(1.2,-1.6,0.1)*ANGLES(RAD(-14.6),RAD(-11.9),RAD(-14.6))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.7,-2.2,0)*ANGLES(RAD(3.7),RAD(-1.1),RAD(-14.5))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
end
elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
--MOTOR.Dust.Dust.Enabled = true
if USEDEFAULTANIMATIONS == true then
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0,0.5,0.5)*ANGLES(RAD(-15),RAD(0)-SPINVELOCITY/6,RAD(0)-SPINVELOCITY/2)*ANGLES(RAD(0),RAD(0),RAD(0)),0.4 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.425,0.1)*ANGLES(RAD(15),RAD(0)-SPINVELOCITY/2,RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),0.4 / ANIM_SPEED)
MOTORWELD.C0 = Clerp(MOTORWELD.C0,CF(0,-1.5,-0.9)*ANGLES(RAD(15),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),0.4 / ANIM_SPEED)
if HASBAZOOKAEQUIPPED == false then
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.7,0.1,-0.1)*ANGLES(RAD(47.7),RAD(-32.8),RAD(49.9))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0,-1.1,-0.5)*ANGLES(RAD(90),RAD(0),RAD(-180))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.5,0.3,0)*ANGLES(RAD(89.9),RAD(-4.8),RAD(-1.3))*ANGLES(RAD(0),RAD(0),RAD(0)),0.4 / ANIM_SPEED)
end
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.7,-1.5,-0.6)*ANGLES(RAD(-15),RAD(0),RAD(10))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.7,-1.5,-0.6)*ANGLES(RAD(-15),RAD(0),RAD(-10))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
end
end
else
--MOTOR.Dust.Dust.Enabled = false
if USEDEFAULTANIMATIONS == true then
ROOTJOINT.C0 = Clerp(ROOTJOINT.C0,CF(0,0.5,0.6)*ANGLES(RAD(10.2),RAD(9.8),RAD(-1.8))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
NECK.C0 = Clerp(NECK.C0,CF(0,1.5,-0.3)*ANGLES(RAD(-15.1),RAD(-10),RAD(-0.9))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
MOTORWELD.C0 = Clerp(MOTORWELD.C0,CF(0.1,-1.5,-0.3)*ANGLES(RAD(0.2),RAD(-9.8),RAD(1.8))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
if HASBAZOOKAEQUIPPED == false then
RIGHTSHOULDER.C0 = Clerp(RIGHTSHOULDER.C0,CF(1.3,0.4,-0.2)*ANGLES(RAD(146),RAD(32.6),RAD(13.5))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
SMGGRIP.C0 = Clerp(SMGGRIP.C0,CF(0,-0.9,-0.4)*ANGLES(RAD(103.5),RAD(6.2),RAD(-178.6))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
LEFTSHOULDER.C0 = Clerp(LEFTSHOULDER.C0,CF(-1.4,0.3,0)*ANGLES(RAD(75),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
end
RIGHTHIP.C0 = Clerp(RIGHTHIP.C0,CF(0.8,-1.6,0.1)*ANGLES(RAD(-40.2),RAD(-16.1),RAD(8))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
LEFTHIP.C0 = Clerp(LEFTHIP.C0,CF(-0.8,-1.6,0)*ANGLES(RAD(-33.9),RAD(-1.7),RAD(-17.1))*ANGLES(RAD(0),RAD(0),RAD(0)),1.2 / ANIM_SPEED)
end
end
for i = 1, #WHEELJOINTS do
WHEELJOINTS[i].C1 = ANGLES(RAD((HUM.WalkSpeed-5)),0,0) * WHEELJOINTS[i].C1
end
if LOCKEDSPEED == 75 then
--MOTOR.Safelock.Light.Enabled = true
else
--MOTOR.Safelock.Light.Enabled = false
end
if BOOST == false then
if ANIM == "Drive" then
if HUM.WalkSpeed < LOCKEDSPEED then
HUM.WalkSpeed = HUM.WalkSpeed + 0.75
else
HUM.WalkSpeed = LOCKEDSPEED
end
else
if HUM.WalkSpeed > 5 then
HUM.WalkSpeed = HUM.WalkSpeed - 3.75
else
HUM.WalkSpeed = 5
end
end
end
MOTORHUM.Pitch = HUM.WalkSpeed/10
if MOTORHUM.Pitch > 3.25 then
MOTORHUM.Pitch = 3.25
end
HUM.Sit = false
HUM.PlatformStand = false
end