Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// \\--
- --|| GunGod Script By artucox7 ||--
- --|| ok i will say,Some Animations are taked from the Dead Gun but is totally not a edit ||--
- --|| someone teach me how to cframe animation pls ||--
- --\\ //--
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local hum = char.Humanoid
- local Mouse = plr:GetMouse()
- local hed = char.Head
- local tors = char.Torso
- local RP = char["HumanoidRootPart"]
- local LA = char["Left Arm"]
- local RA = char["Right Arm"]
- local LL = char["Left Leg"]
- local RL = char["Right Leg"]
- local equipped = false
- local Rgun = 0
- local Lgun = 0
- local fired = false
- local candeleteffect = false
- local MAINRUINCOLOR = BrickColor.new("Really red")
- local cam = game.Workspace.CurrentCamera
- candeleteffect = false
- Rgun = 0
- Lgun = 0
- fired = false
- equipped = false
- RJ = RP["RootJoint"]
- NK = tors["Neck"]
- RS = tors["Right Shoulder"]
- LS = tors["Left Shoulder"]
- RH = tors["Right Hip"]
- LH = tors["Left Hip"]
- radian = math.rad
- random = math.random
- Animation_Speed = 1.40
- Fire_Anim_Speed = 3
- Player_Size = 1
- 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
- local FORCERESET = false
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- local Speed = 16
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- local DAMAGEMULTIPLIER = 1
- local ANIM = "Idle"
- local ATTACK = false
- local EQUIPPED = false
- local HOLD = false
- local COMBO = 1
- local Rooted = false
- local SINE = 0
- local KEYHOLD = false
- local CHANGE = 2 / Animation_Speed
- local WALKINGANIM = false
- local VALUE1 = false
- local VALUE2 = false
- local Rooted = false
- local ROBLOXIDLEANIMATION = IT("Animation")
- ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
- ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- --ROBLOXIDLEANIMATION.Parent = Humanoid
- local ANIMATOR = hum.Animator
- local ANIMATE = char:WaitForChild("Animate")
- local UNANCHOR = true
- local TOBANISH = {}
- ANIMATE.idle.Animation2:Destroy()
- --Sound
- local Sound = Instance.new("Sound",tors)
- function NewTheme(ID,VOL)
- Sound.Volume = VOL
- Sound.Looped = true
- Sound.SoundId = "rbxassetid://"..ID
- Sound:Play()
- end
- --functions
- function DMG(AMT,PART)
- local AMTD = AMT
- PART.Touched:Connect(function(TCH)
- wait(0.2)
- TCH.Parent.Humanoid.Health = TCH.Parent.Humanoid.Health - AMT
- wait(0.2)
- PART:Destroy()
- end)
- end
- function chatfunc(Text)
- local chat = coroutine.wrap(function()
- if char:FindFirstChild("TalkingBillBoard")~= nil then
- char:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local Bill = Instance.new("BillboardGui",char)
- Bill.Size = UDim2.new(0,100,0,40)
- Bill.StudsOffset = Vector3.new(0,3.5,0)
- Bill.Adornee = hed
- Bill.Name = "TalkingBillBoard"
- local Hehe = Instance.new("TextLabel",Bill)
- Hehe.BackgroundTransparency = 1
- Hehe.BorderSizePixel = 0
- Hehe.Text = Text
- Hehe.Font = "Bodoni"
- Hehe.TextSize = 40
- Hehe.TextStrokeTransparency = 0
- Hehe.TextColor3 = Color3.new(1,0,0)
- Hehe.TextStrokeColor3 = Color3.new(0,0,0)
- Hehe.Size = UDim2.new(1,0,0.5,0)
- coroutine.resume(coroutine.create(function()
- while Hehe ~= nil do
- wait(0.1)
- Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
- Hehe.Rotation = math.random(-2.5,2.5)
- end
- end))
- for i = 1,string.len(Text) do
- wait(0.01)
- Hehe.Text = string.sub(Text,1,i)
- end
- wait(0.1)--Re[math.random(1, 93)]
- for i = 0, 1, .025 do
- wait(0.1)
- Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
- Hehe.TextStrokeTransparency = i
- Hehe.TextTransparency = i
- end
- Bill:Destroy()
- end)
- chat()
- end
- function onChatted(msg)
- wait(0.1)
- chatfunc(msg.." ")
- end
- plr.Chatted:Connect(onChatted)
- function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = Vector3.new(x1,y1,z1)
- end
- function Fire(GUN,RANGE)
- local Bullet = Instance.new("Part")
- local BWeld = Instance.new("Weld", Bullet)
- local CRANGE = 0
- Bullet.Name = "Bullet"
- Bullet.BrickColor = BrickColor.new("Really red")
- Bullet.Material = Enum.Material.Neon
- Bullet.CanCollide = false
- Bullet.Massless = true
- CRANGE = 0
- BWeld.Part0 = Bullet
- Bullet.Size = Vector3.new(0.1,RANGE,0.1)
- if GUN == "gun = 1" then
- Bullet.Parent = char.RAG.Revolver
- BWeld.Part1 = Bullet.Parent.Shot
- CRANGE = RANGE - 50
- BWeld.C0 = CFrame.new(0,-CRANGE,0)
- DMG(10,Bullet)
- end
- if GUN == "gun = 2" then
- Bullet.Parent = char.RAG.ShotGun
- BWeld.Part1 = Bullet.Parent.Shot
- CRANGE = RANGE - 50
- BWeld.C0 = CFrame.new(0,-CRANGE,0)
- DMG(30,Bullet)
- end
- if GUN == "gun = 3" then
- Bullet.Parent = char.LAG.SMG
- BWeld.Part1 = Bullet.Parent.Shot
- CRANGE = RANGE - 50
- BWeld.C0 = CFrame.new(0,-CRANGE,0)
- DMG(5,Bullet)
- end
- if GUN == "gun = 4" then
- Bullet.Parent = char.LAG.Tommy
- BWeld.Part1 = Bullet.Parent.Shot
- CRANGE = RANGE - 50
- BWeld.C0 = CFrame.new(0,-CRANGE,0)
- DMG(10,Bullet)
- end
- for i = 0.1,10 do
- Bullet.Transparency = Bullet.Transparency + 0.1
- wait(0.1)
- end
- Bullet:Destroy()
- end
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- 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 CameraEnshaking(Length,Intensity)
- coroutine.resume(coroutine.create(function()
- local intensity = 1*Intensity
- local rotM = 0.01*Intensity
- for i = 0, Length, 0.1 do
- wait(0.01)
- intensity = intensity - 0.05*Intensity/Length
- rotM = rotM - 0.0005*Intensity/Length
- hum.CameraOffset = Vector3.new(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
- cam.CFrame = cam.CFrame * CF(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * EULER(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
- end
- hum.CameraOffset = Vector3.new(0, 0, 0)
- 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 turnto(position)
- RP.CFrame=CFrame.new(RP.CFrame.p,VT(position.X,RP.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
- 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
- function sphere(bonuspeed,type,pos,scale,value,color)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = scale
- end
- function CreateSound(ID,PARENT,VOL,LOOP)
- local Sound = Instance.new("Sound")
- Sound.Parent = PARENT
- Sound.Name = "SoundEffect"
- Sound.Volume = VOL
- Sound.Looped = LOOP
- Sound.SoundId = "rbxassetid://".. ID
- Sound:Play()
- end
- --Intro
- NewTheme(1564523997,3)
- wait(3)
- chatfunc("Look At My Hands ")
- wait(1)
- chatfunc("Im Shaking ")
- wait(1)
- chatfunc("All My Body is Shaking ")
- wait(1.5)
- chatfunc("This Is A Dream,Mommy? ")
- wait(2.4)
- chatfunc("It was there, ")
- wait(1.5)
- chatfunc("I couldn't move my head but I was watching him in the mirror, ")
- wait(2.5)
- chatfunc("I knew he was looking at me, with ")
- wait(2)
- chatfunc("TWO invisible eyes ")
- wait(1.2)
- chatfunc("TWO invisible,MONSTRUOUS EYES!! ")
- ANIMATE:Destroy()
- for i = 1,15 do
- RJ.C0 = Clerp(RJ.C0,ROOTC0*CF(0,0,0)* ANGLES(math.rad(-20),math.rad(0),math.rad(0)),0.2)
- tors.Neck.C0 = Clerp(tors.Neck.C0,NECKC0 *ANGLES(math.rad(0),math.rad(0),math.rad(0)),0.2)
- RS.C0 = Clerp(RS.C0, CFrame.new(1.2,1,-0) * ANGLES(math.rad(90), math.rad(10), math.rad(90)), 0.2)
- LS.C0 = Clerp(LS.C0, CFrame.new(-1.2,1,-0) * ANGLES(math.rad(90), math.rad(-10), math.rad(-90)), 0.2)
- RH.C0=Clerp(RH.C0,CF(1,-1 - 0.05 * math.cos(SINE / 25),0)*ANGLES(math.rad(0),math.rad(90),math.rad(0))*ANGLES(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
- LH.C0=Clerp(LH.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 25),0)*ANGLES(math.rad(0),math.rad(-90),math.rad(0))*ANGLES(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
- wait(0.01)
- end
- wait(2.2)
- CameraEnshaking(10,20)
- local ball = Instance.new("Part", tors)
- local mesh = Instance.new("SpecialMesh", ball)
- local weld = Instance.new("Weld", ball)
- ball.Size = Vector3.new(0.1,0.1,0.1)
- ball.BrickColor = BrickColor.new("Really red")
- ball.Transparency = 0
- ball.Material = Enum.Material.Neon
- ball.CanCollide = false
- ball.Massless = true
- mesh.MeshType = Enum.MeshType.Sphere
- weld.Part0 = ball
- weld.Part1 = tors
- CreateSound(258057783,tors,10,false)
- for i = 1,100 do
- print(""..i)
- ball.Size = Vector3.new(i,i,i)
- ball.Transparency = ball.Transparency + 0.01
- wait(0.01)
- end
- tors.SoundEffect:Destroy()
- ball:Destroy()
- --BillGui
- local NameGui = Instance.new("BillboardGui")
- local Text = Instance.new("TextLabel")
- NameGui.Name = "NameGui"
- NameGui.Parent = hed
- NameGui.Size = UDim2.new(0, 200, 0, 50)
- NameGui.StudsOffset = Vector3.new(0, 2.5, 0)
- Text.Name = "Text"
- Text.Parent = NameGui
- Text.BackgroundColor3 = Color3.new(1, 1, 1)
- Text.BackgroundTransparency = 1
- Text.Size = UDim2.new(0, 200, 0, 50)
- Text.Font = Enum.Font.Garamond
- Text.Text = "Gun God"
- Text.TextColor3 = Color3.new(1, 0, 0)
- Text.TextSize = 36
- Text.TextStrokeTransparency = 0
- --Humanoid
- hum.WalkSpeed = 9.5
- --Things
- --Uneqquip Guns
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("Weld")
- o4 = Instance.new("Model")
- o5 = Instance.new("Part")
- o6 = Instance.new("SpecialMesh")
- o7 = Instance.new("Weld")
- o8 = Instance.new("CFrameValue")
- o9 = Instance.new("Model")
- o10 = Instance.new("Part")
- o11 = Instance.new("SpecialMesh")
- o12 = Instance.new("Weld")
- o13 = Instance.new("CFrameValue")
- o14 = Instance.new("Model")
- o15 = Instance.new("Part")
- o16 = Instance.new("SpecialMesh")
- o17 = Instance.new("Weld")
- o18 = Instance.new("CFrameValue")
- o19 = Instance.new("Model")
- o20 = Instance.new("Part")
- o21 = Instance.new("SpecialMesh")
- o22 = Instance.new("Weld")
- o23 = Instance.new("CFrameValue")
- o1.Name = "Guns"
- o1.Parent = char
- o2.Name = "WeldP"
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Bright orange")
- o2.Position = Vector3.new(-17.8898621, 4.54695654, 6.44086885)
- o2.Rotation = Vector3.new(96.9000015, -89.4400024, 96.7300034)
- o2.FormFactor = Enum.FormFactor.Symmetric
- o2.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- o2.CFrame = CFrame.new(-17.8898621, 4.54695654, 6.44086885, -0.00114236539, -0.00967594888, -0.999952555, -0.00286693405, 0.999949098, -0.00967264082, 0.999995232, 0.0028557484, -0.00117004756)
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.854902, 0.521569, 0.254902)
- o2.Position = Vector3.new(-17.8898621, 4.54695654, 6.44086885)
- o2.Orientation = Vector3.new(0.550000012, -90.0699997, -0.159999996)
- o2.Color = Color3.new(0.854902, 0.521569, 0.254902)
- o3.Name = "TorsoWeld"
- o3.Parent = o2
- o3.Part0 = o2
- o3.Part1 = tors
- o4.Name = "ShotGun"
- o4.Parent = o1
- o5.Name = "Body"
- o5.Parent = o4
- o5.BrickColor = BrickColor.new("Pastel yellow")
- o5.Position = Vector3.new(-18.469511, 4.43292761, 6.72057819)
- o5.Rotation = Vector3.new(90.1600037, 0.550000012, 0.0700000003)
- o5.FormFactor = Enum.FormFactor.Custom
- o5.Size = Vector3.new(0.300000012, 0.899999917, 4.79999924)
- o5.CFrame = CFrame.new(-18.469511, 4.43292761, 6.72057819, 0.999952555, -0.00114236539, 0.00967594888, 0.00967264082, -0.00286693405, -0.999949098, 0.00117004756, 0.999995232, -0.0028557484)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.TopSurface = Enum.SurfaceType.Smooth
- o5.Color = Color3.new(1, 1, 0.8)
- o5.Position = Vector3.new(-18.469511, 4.43292761, 6.72057819)
- o5.Orientation = Vector3.new(89.4199982, 106.440002, 106.510002)
- o5.Color = Color3.new(1, 1, 0.8)
- o6.Parent = o5
- o6.MeshId = "http://www.roblox.com/asset/?id=94219391"
- o6.Scale = Vector3.new(0.75, 0.75, 0.75)
- o6.TextureId = "http://www.roblox.com/asset/?id=94219470"
- o6.MeshType = Enum.MeshType.FileMesh
- o6.Scale = Vector3.new(0.75, 0.75, 0.75)
- o7.Name = "qCFrameWeldThingy"
- o7.Parent = o5
- o7.C1 = CFrame.new(0.580396652, -0.280696869, -0.107615709, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- o7.Part0 = o2
- o7.Part1 = o5
- o8.Name = "qRelativeCFrameWeldValue"
- o8.Parent = o5
- o8.Value = CFrame.new(0.580396652, -0.280696869, -0.107615709, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- o9.Name = "SMG"
- o9.Parent = o1
- o10.Name = "Body"
- o10.Parent = o9
- o10.BrickColor = BrickColor.new("Dark stone grey")
- o10.Position = Vector3.new(-17.9484844, 3.49897623, 5.37621641)
- o10.Rotation = Vector3.new(-89.8399963, -0.550000012, -90.0699997)
- o10.FormFactor = Enum.FormFactor.Custom
- o10.Size = Vector3.new(0.200000003, 1.70000005, 1.39999998)
- o10.CFrame = CFrame.new(-17.9484844, 3.49897623, 5.37621641, -0.00114236539, 0.999952674, -0.0096758306, -0.00286693405, 0.00967252254, 0.999949217, 0.999995232, 0.00117004733, 0.00285574887)
- o10.BottomSurface = Enum.SurfaceType.Smooth
- o10.TopSurface = Enum.SurfaceType.Smooth
- o10.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o10.Position = Vector3.new(-17.9484844, 3.49897623, 5.37621641)
- o10.Orientation = Vector3.new(-89.4199982, -73.5599976, -16.5100002)
- o10.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o11.Parent = o10
- o11.MeshId = "http://www.roblox.com/asset/?id=72012794"
- o11.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024)
- o11.TextureId = "http://www.roblox.com/asset/?id=72012761"
- o11.VertexColor = Vector3.new(2, 2, 2)
- o11.MeshType = Enum.MeshType.FileMesh
- o11.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024)
- o12.Name = "qCFrameWeldThingy"
- o12.Parent = o10
- o12.C1 = CFrame.new(1.06157589, 0.0700016022, 1.05040002, 1, 0, 0, 0, -1.1920929e-07, -1.00000012, 0, 1.00000012, -1.1920929e-07)
- o12.Part0 = o2
- o12.Part1 = o10
- o13.Name = "qRelativeCFrameWeldValue"
- o13.Parent = o10
- o13.Value = CFrame.new(1.06157589, 0.0700016022, 1.05040002, 1, 0, 0, 0, -1.1920929e-07, -1.00000012, 0, 1.00000012, -1.1920929e-07)
- o14.Name = "Revolver"
- o14.Parent = o1
- o15.Name = "body"
- o15.Parent = o14
- o15.BrickColor = BrickColor.new("Pastel yellow")
- o15.Position = Vector3.new(-17.8098717, 3.3815546, 7.53761673)
- o15.Rotation = Vector3.new(-83.0999985, 89.4400024, -96.7300034)
- o15.FormFactor = Enum.FormFactor.Custom
- o15.Size = Vector3.new(0.200000003, 1.79999995, 0.899999976)
- o15.CFrame = CFrame.new(-17.8098717, 3.3815546, 7.53761673, -0.00114236539, 0.00967594888, 0.999952555, -0.00286693405, -0.999949098, 0.00967264082, 0.999995232, -0.0028557484, 0.00117004756)
- o15.BottomSurface = Enum.SurfaceType.Smooth
- o15.TopSurface = Enum.SurfaceType.Smooth
- o15.Color = Color3.new(1, 1, 0.8)
- o15.Position = Vector3.new(-17.8098717, 3.3815546, 7.53761673)
- o15.Orientation = Vector3.new(-0.550000012, 89.9300003, -179.839996)
- o15.Color = Color3.new(1, 1, 0.8)
- o16.Parent = o15
- o16.MeshId = "http://www.roblox.com/asset/?id=79401392 "
- o16.Scale = Vector3.new(1.5, 1.5, 1.5)
- o16.TextureId = "http://www.roblox.com/asset/?id=79401500 "
- o16.MeshType = Enum.MeshType.FileMesh
- o16.Scale = Vector3.new(1.5, 1.5, 1.5)
- o17.Name = "qCFrameWeldThingy"
- o17.Parent = o15
- o17.C1 = CFrame.new(-1.09999228, -1.16298461, -0.0699977875, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- o17.Part0 = o2
- o17.Part1 = o15
- o18.Name = "qRelativeCFrameWeldValue"
- o18.Parent = o15
- o18.Value = CFrame.new(-1.09999228, -1.16298461, -0.0699977875, 1, 0, 0, 0, -1, 0, 0, 0, -1)
- o19.Name = "Tommy"
- o19.Parent = o1
- o20.Name = "Body"
- o20.Parent = o19
- o20.BrickColor = BrickColor.new("Pastel yellow")
- o20.Position = Vector3.new(-18.5381889, 4.39989519, 6.19997787)
- o20.Rotation = Vector3.new(90.1600037, 0.550000012, 0.0700000003)
- o20.FormFactor = Enum.FormFactor.Custom
- o20.Size = Vector3.new(0.300000012, 0.899999619, 4.79999924)
- o20.CFrame = CFrame.new(-18.5381889, 4.39989519, 6.19997787, 0.999952555, -0.00114236539, 0.00967594888, 0.00967264082, -0.00286693405, -0.999949098, 0.00117004756, 0.999995232, -0.0028557484)
- o20.BottomSurface = Enum.SurfaceType.Smooth
- o20.TopSurface = Enum.SurfaceType.Smooth
- o20.Color = Color3.new(1, 1, 0.8)
- o20.Position = Vector3.new(-18.5381889, 4.39989519, 6.19997787)
- o20.Orientation = Vector3.new(89.4199982, 106.440002, 106.510002)
- o20.Color = Color3.new(1, 1, 0.8)
- o21.Parent = o20
- o21.MeshId = "http://www.roblox.com/asset/?id=116679805"
- o21.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
- o21.TextureId = "http://www.roblox.com/asset/?id=116679995"
- o21.MeshType = Enum.MeshType.FileMesh
- o21.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
- o22.Name = "qCFrameWeldThingy"
- o22.Parent = o20
- o22.C1 = CFrame.new(0.649999619, 0.239727497, -0.141468644, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- o22.Part0 = o2
- o22.Part1 = o20
- o23.Name = "qRelativeCFrameWeldValue"
- o23.Parent = o20
- o23.Value = CFrame.new(0.649999619, 0.239727497, -0.141468644, 0, 0, -1, 1, 0, 0, 0, -1, 0)
- --equip Guns1
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- o1 = Instance.new("Model")
- o2 = Instance.new("Model")
- o3 = Instance.new("Part")
- o4 = Instance.new("SpecialMesh")
- o5 = Instance.new("Part")
- o6 = Instance.new("Weld")
- o7 = Instance.new("CFrameValue")
- o8 = Instance.new("Model")
- o9 = Instance.new("Part")
- o10 = Instance.new("SpecialMesh")
- o11 = Instance.new("Weld")
- o12 = Instance.new("CFrameValue")
- o13 = Instance.new("Part")
- o14 = Instance.new("Weld")
- o15 = Instance.new("CFrameValue")
- o16 = Instance.new("Part")
- o17 = Instance.new("Weld")
- o18 = Instance.new("Weld")
- o19 = Instance.new("CFrameValue")
- o1.Name = "RAG"
- o1.Parent = char
- o2.Name = "ShotGun"
- o2.Parent = o1
- o3.Name = "Body"
- o3.Parent = o2
- o3.BrickColor = BrickColor.new("Pastel yellow")
- o3.Transparency = 1
- o3.Position = Vector3.new(-18.2866478, 4.49532318, 4.04898596)
- o3.Rotation = Vector3.new(-90, 0, -89.9899979)
- o3.Velocity = Vector3.new(0, -1187.00049, 0)
- o3.CanCollide = false
- o3.FormFactor = Enum.FormFactor.Custom
- o3.Size = Vector3.new(0.300000012, 0.899999917, 4.79999924)
- o3.CFrame = CFrame.new(-18.2866478, 4.49532318, 4.04898596, 9.15527344e-05, 1, 5.24472853e-06, 5.24520874e-06, -5.24520874e-06, 1, 1, -9.15527053e-05, -5.24568895e-06)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Color = Color3.new(1, 1, 0.8)
- o3.Position = Vector3.new(-18.2866478, 4.49532318, 4.04898596)
- o3.Orientation = Vector3.new(-90, -89.9899979, 0)
- o3.Color = Color3.new(1, 1, 0.8)
- o4.Parent = o3
- o4.MeshId = "http://www.roblox.com/asset/?id=94219391"
- o4.Scale = Vector3.new(0.75, 0.75, 0.75)
- o4.TextureId = "http://www.roblox.com/asset/?id=94219470"
- o4.MeshType = Enum.MeshType.FileMesh
- o4.Scale = Vector3.new(0.75, 0.75, 0.75)
- o5.Name = "Shot"
- o5.Parent = o2
- o5.BrickColor = BrickColor.new("Pastel yellow")
- o5.Transparency = 1
- o5.Position = Vector3.new(-17.8251419, 2.05003786, 4.04753637)
- o5.Rotation = Vector3.new(180, 90, 0)
- o5.Velocity = Vector3.new(0, -1187.00049, 0)
- o5.CanCollide = false
- o5.FormFactor = Enum.FormFactor.Custom
- o5.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- o5.CFrame = CFrame.new(-17.8251419, 2.05003786, 4.04753637, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.TopSurface = Enum.SurfaceType.Smooth
- o5.Color = Color3.new(1, 1, 0.8)
- o5.Position = Vector3.new(-17.8251419, 2.05003786, 4.04753637)
- o5.Orientation = Vector3.new(0, 90.0100021, 180)
- o5.Color = Color3.new(1, 1, 0.8)
- o6.Name = "qCFrameWeldThingy"
- o6.Parent = o5
- o6.C1 = CFrame.new(0.00142002106, -2.44528294, -0.461519241, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o6.Part0 = o3
- o6.Part1 = o5
- o7.Name = "qRelativeCFrameWeldValue"
- o7.Parent = o5
- o7.Value = CFrame.new(0.00142002106, -2.44528294, -0.461519241, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o8.Name = "Revolver"
- o8.Parent = o1
- o9.Name = "body"
- o9.Parent = o8
- o9.BrickColor = BrickColor.new("Pastel yellow")
- o9.Transparency = 1
- o9.Position = Vector3.new(-18.0926838, 4.49774027, 4.02821636)
- o9.Rotation = Vector3.new(180, 90, 0)
- o9.Velocity = Vector3.new(0, -1187.00049, 0)
- o9.CanCollide = false
- o9.FormFactor = Enum.FormFactor.Custom
- o9.Size = Vector3.new(0.200000003, 1.79999995, 0.899999976)
- o9.CFrame = CFrame.new(-18.0926838, 4.49774027, 4.02821636, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
- o9.BottomSurface = Enum.SurfaceType.Smooth
- o9.TopSurface = Enum.SurfaceType.Smooth
- o9.Color = Color3.new(1, 1, 0.8)
- o9.Position = Vector3.new(-18.0926838, 4.49774027, 4.02821636)
- o9.Orientation = Vector3.new(0, 90.0100021, 180)
- o9.Color = Color3.new(1, 1, 0.8)
- o10.Parent = o9
- o10.MeshId = "http://www.roblox.com/asset/?id=79401392 "
- o10.Scale = Vector3.new(1.5, 1.5, 1.5)
- o10.TextureId = "http://www.roblox.com/asset/?id=79401500 "
- o10.MeshType = Enum.MeshType.FileMesh
- o10.Scale = Vector3.new(1.5, 1.5, 1.5)
- o11.Name = "qCFrameWeldThingy"
- o11.Parent = o9
- o11.C1 = CFrame.new(0.0207519531, 0.00241804123, -0.193965912, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o11.Part0 = o3
- o11.Part1 = o9
- o12.Name = "qRelativeCFrameWeldValue"
- o12.Parent = o9
- o12.Value = CFrame.new(0.0207519531, 0.00241804123, -0.193965912, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o13.Name = "Shot"
- o13.Parent = o8
- o13.BrickColor = BrickColor.new("Pastel yellow")
- o13.Transparency = 1
- o13.Position = Vector3.new(-17.7116547, 3.57255101, 4.02867603)
- o13.Rotation = Vector3.new(180, 90, 0)
- o13.Velocity = Vector3.new(0, -1187.00049, 0)
- o13.CanCollide = false
- o13.FormFactor = Enum.FormFactor.Custom
- o13.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- o13.CFrame = CFrame.new(-17.7116547, 3.57255101, 4.02867603, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
- o13.BottomSurface = Enum.SurfaceType.Smooth
- o13.TopSurface = Enum.SurfaceType.Smooth
- o13.Color = Color3.new(1, 1, 0.8)
- o13.Position = Vector3.new(-17.7116547, 3.57255101, 4.02867603)
- o13.Orientation = Vector3.new(0, 90.0100021, 180)
- o13.Color = Color3.new(1, 1, 0.8)
- o14.Name = "qCFrameWeldThingy"
- o14.Parent = o13
- o14.C1 = CFrame.new(0.0202622414, -0.92276907, -0.574998856, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o14.Part0 = o3
- o14.Part1 = o13
- o15.Name = "qRelativeCFrameWeldValue"
- o15.Parent = o13
- o15.Value = CFrame.new(0.0202622414, -0.92276907, -0.574998856, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o16.Name = "WeldP"
- o16.Parent = o1
- o16.BrickColor = BrickColor.new("Brick yellow")
- o16.Position = Vector3.new(-18.6692543, 6.08675575, 4.13988352)
- o16.Rotation = Vector3.new(0, -90, 0)
- o16.Velocity = Vector3.new(0, -1187.00049, 0)
- o16.CanCollide = false
- o16.FormFactor = Enum.FormFactor.Symmetric
- o16.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- o16.CFrame = CFrame.new(-18.6692543, 6.08675575, 4.13988352, 9.15527344e-05, 5.24472853e-06, -1, 5.24520874e-06, 1, 5.24520874e-06, 1, -5.24568895e-06, 9.15527053e-05)
- o16.Color = Color3.new(0.843137, 0.772549, 0.603922)
- o16.Position = Vector3.new(-18.6692543, 6.08675575, 4.13988352)
- o16.Orientation = Vector3.new(0, -89.9899979, 0)
- o16.Color = Color3.new(0.843137, 0.772549, 0.603922)
- o17.Name = "ArmWeld"
- o17.Parent = o16
- o17.Part0 = o16
- o17.Part1 = RA
- o18.Name = "qCFrameWeldThingy"
- o18.Parent = o16
- o18.C1 = CFrame.new(-0.0908710957, -1.59143031, -0.382623672, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- o18.Part0 = o3
- o18.Part1 = o16
- o19.Name = "qRelativeCFrameWeldValue"
- o19.Parent = o16
- o19.Value = CFrame.new(-0.0908710957, -1.59143031, -0.382623672, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- --equip guns2
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- o1 = Instance.new("Model")
- o2 = Instance.new("Model")
- o3 = Instance.new("Part")
- o4 = Instance.new("SpecialMesh")
- o5 = Instance.new("Part")
- o6 = Instance.new("Weld")
- o7 = Instance.new("CFrameValue")
- o8 = Instance.new("Model")
- o9 = Instance.new("Part")
- o10 = Instance.new("SpecialMesh")
- o11 = Instance.new("Weld")
- o12 = Instance.new("CFrameValue")
- o13 = Instance.new("Part")
- o14 = Instance.new("Weld")
- o15 = Instance.new("CFrameValue")
- o16 = Instance.new("Part")
- o17 = Instance.new("Weld")
- o18 = Instance.new("Weld")
- o19 = Instance.new("CFrameValue")
- o1.Name = "LAG"
- o1.Parent = char
- o2.Name = "Tommy"
- o2.Parent = o1
- o3.Name = "Body"
- o3.Parent = o2
- o3.BrickColor = BrickColor.new("Pastel yellow")
- o3.Transparency = 1
- o3.Position = Vector3.new(-17.0248508, 4.47074223, 3.95140791)
- o3.Rotation = Vector3.new(-90, 0, -89.9899979)
- o3.Velocity = Vector3.new(0, -1413.52173, 0)
- o3.CanCollide = false
- o3.FormFactor = Enum.FormFactor.Custom
- o3.Size = Vector3.new(0.300000012, 0.899999619, 4.79999924)
- o3.CFrame = CFrame.new(-17.0248508, 4.47074223, 3.95140791, 9.15527344e-05, 1, 5.24472853e-06, 5.24520874e-06, -5.24520874e-06, 1, 1, -9.15527053e-05, -5.24568895e-06)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Color = Color3.new(1, 1, 0.8)
- o3.Position = Vector3.new(-17.0248508, 4.47074223, 3.95140791)
- o3.Orientation = Vector3.new(-90, -89.9899979, 0)
- o3.Color = Color3.new(1, 1, 0.8)
- o4.Parent = o3
- o4.MeshId = "http://www.roblox.com/asset/?id=116679805"
- o4.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
- o4.TextureId = "http://www.roblox.com/asset/?id=116679995"
- o4.MeshType = Enum.MeshType.FileMesh
- o4.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
- o5.Name = "Shot"
- o5.Parent = o2
- o5.BrickColor = BrickColor.new("Dark stone grey")
- o5.Transparency = 1
- o5.Position = Vector3.new(-16.962965, 2.17791533, 3.97139597)
- o5.Rotation = Vector3.new(180, 90, 0)
- o5.Velocity = Vector3.new(0, -1413.52173, 0)
- o5.CanCollide = false
- o5.FormFactor = Enum.FormFactor.Custom
- o5.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- o5.CFrame = CFrame.new(-16.962965, 2.17791533, 3.97139597, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.TopSurface = Enum.SurfaceType.Smooth
- o5.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o5.Position = Vector3.new(-16.962965, 2.17791533, 3.97139597)
- o5.Orientation = Vector3.new(0, 90.0100021, 180)
- o5.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o6.Name = "qCFrameWeldThingy"
- o6.Parent = o5
- o6.C1 = CFrame.new(-0.0199816227, -2.29282665, -0.0618953705, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o6.Part0 = o3
- o6.Part1 = o5
- o7.Name = "qRelativeCFrameWeldValue"
- o7.Parent = o5
- o7.Value = CFrame.new(-0.0199816227, -2.29282665, -0.0618953705, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o8.Name = "SMG"
- o8.Parent = o1
- o9.Name = "Body"
- o9.Parent = o8
- o9.BrickColor = BrickColor.new("Dark stone grey")
- o9.Transparency = 1
- o9.Position = Vector3.new(-17.5299664, 4.70727825, 3.97143435)
- o9.Rotation = Vector3.new(180, 90, 0)
- o9.Velocity = Vector3.new(0, -1413.52173, 0)
- o9.CanCollide = false
- o9.FormFactor = Enum.FormFactor.Custom
- o9.Size = Vector3.new(0.200000003, 1.70000005, 1.39999998)
- o9.CFrame = CFrame.new(-17.5299664, 4.70727825, 3.97143435, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
- o9.BottomSurface = Enum.SurfaceType.Smooth
- o9.TopSurface = Enum.SurfaceType.Smooth
- o9.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o9.Position = Vector3.new(-17.5299664, 4.70727825, 3.97143435)
- o9.Orientation = Vector3.new(0, 90.0100021, 180)
- o9.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o10.Parent = o9
- o10.MeshId = "http://www.roblox.com/asset/?id=72012794"
- o10.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024)
- o10.TextureId = "http://www.roblox.com/asset/?id=72012761"
- o10.VertexColor = Vector3.new(2, 2, 2)
- o10.MeshType = Enum.MeshType.FileMesh
- o10.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024)
- o11.Name = "qCFrameWeldThingy"
- o11.Parent = o9
- o11.C1 = CFrame.new(-0.0199813843, 0.236533284, 0.505119324, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o11.Part0 = o3
- o11.Part1 = o9
- o12.Name = "qRelativeCFrameWeldValue"
- o12.Parent = o9
- o12.Value = CFrame.new(-0.0199813843, 0.236533284, 0.505119324, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o13.Name = "Shot"
- o13.Parent = o8
- o13.BrickColor = BrickColor.new("Dark stone grey")
- o13.Transparency = 1
- o13.Position = Vector3.new(-17.0345058, 4.10718775, 3.97139215)
- o13.Rotation = Vector3.new(180, 90, 0)
- o13.Velocity = Vector3.new(0, -1413.52173, 0)
- o13.CanCollide = false
- o13.FormFactor = Enum.FormFactor.Custom
- o13.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- o13.CFrame = CFrame.new(-17.0345058, 4.10718775, 3.97139215, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
- o13.BottomSurface = Enum.SurfaceType.Smooth
- o13.TopSurface = Enum.SurfaceType.Smooth
- o13.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o13.Position = Vector3.new(-17.0345058, 4.10718775, 3.97139215)
- o13.Orientation = Vector3.new(0, 90.0100021, 180)
- o13.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o14.Name = "qCFrameWeldThingy"
- o14.Parent = o13
- o14.C1 = CFrame.new(-0.0199813843, -0.363554478, 0.00965499878, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o14.Part0 = o3
- o14.Part1 = o13
- o15.Name = "qRelativeCFrameWeldValue"
- o15.Parent = o13
- o15.Value = CFrame.new(-0.0199813843, -0.363554478, 0.00965499878, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- o16.Name = "WeldP"
- o16.Parent = o1
- o16.BrickColor = BrickColor.new("Brick yellow")
- o16.Position = Vector3.new(-17.7492771, 5.80000973, 4.06145048)
- o16.Rotation = Vector3.new(0, -90, 0)
- o16.Velocity = Vector3.new(0, -1413.52173, 0)
- o16.CanCollide = false
- o16.FormFactor = Enum.FormFactor.Symmetric
- o16.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- o16.CFrame = CFrame.new(-17.7492771, 5.80000973, 4.06145048, 9.15527344e-05, 5.24472853e-06, -1, 5.24520874e-06, 1, 5.24520874e-06, 1, -5.24568895e-06, 9.15527053e-05)
- o16.Color = Color3.new(0.843137, 0.772549, 0.603922)
- o16.Position = Vector3.new(-17.7492771, 5.80000973, 4.06145048)
- o16.Orientation = Vector3.new(0, -89.9899979, 0)
- o16.Color = Color3.new(0.843137, 0.772549, 0.603922)
- o17.Name = "ArmWeld2"
- o17.Parent = o16
- o17.Part0 = o16
- o17.Part1 = LA
- o18.Name = "qCFrameWeldThingy"
- o18.Parent = o16
- o18.C1 = CFrame.new(-0.109983206, -1.32926309, -0.724443436, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- o18.Part0 = o3
- o18.Part1 = o16
- o19.Name = "qRelativeCFrameWeldValue"
- o19.Parent = o16
- o19.Value = CFrame.new(-0.109983206, -1.32926309, -0.724443436, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- --Keys
- Mouse.KeyDown:Connect(function(Key)
- if Key == "e" then
- if equipped == false then
- Rgun = 1
- equipped = true
- char.Guns.Revolver.body.Transparency = 1
- char.RAG.Revolver.body.Transparency = 0
- elseif equipped == true then
- Rgun = 0
- equipped = false
- char.Guns.Revolver.body.Transparency = 0
- char.RAG.Revolver.body.Transparency =1
- end
- end
- end)
- Mouse.KeyDown:Connect(function(Key)
- if Key == "r" then
- if equipped == false then
- Rgun = 2
- equipped = true
- char.Guns.ShotGun.Body.Transparency = 1
- char.RAG.ShotGun.Body.Transparency = 0
- elseif equipped == true then
- equipped = false
- Rgun = 0
- char.Guns.ShotGun.Body.Transparency = 0
- char.RAG.ShotGun.Body.Transparency =1
- end
- end
- end)
- Mouse.KeyDown:Connect(function(Key)
- if Key == "t" then
- if equipped == false then
- Lgun = 1
- equipped = true
- char.Guns.SMG.Body.Transparency = 1
- char.LAG.SMG.Body.Transparency = 0
- elseif equipped == true then
- Lgun = 0
- equipped = false
- char.Guns.SMG.Body.Transparency = 0
- char.LAG.SMG.Body.Transparency =1
- end
- end
- end)
- Mouse.KeyDown:Connect(function(Key)
- if Key == "y" then
- if equipped == false then
- Lgun = 2
- equipped = true
- char.Guns.Tommy.Body.Transparency = 1
- char.LAG.Tommy.Body.Transparency = 0
- elseif equipped == true then
- Lgun = 0
- equipped = false
- char.Guns.Tommy.Body.Transparency = 0
- char.LAG.Tommy.Body.Transparency =1
- end
- end
- end)
- Mouse.Button1Down:Connect(function()
- if equipped == true then
- if Rgun == 1 then
- if fired == false then
- print("faired gun 1")
- fired = true
- Rooted = false
- for i=0, 0.2, 0.05 / Fire_Anim_Speed do
- wait(0.01)
- turnto(Mouse.Hit.p)
- RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- wait(0.1)
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- o1 = Instance.new("Part")
- o2 = Instance.new("SpecialMesh")
- o3 = Instance.new("Weld")
- o1.Name = "BlastRing"
- o1.Parent = char.RAG.Revolver
- o1.BrickColor = BrickColor.new("Bright yellow")
- o1.Transparency = 0.20000000298023
- o1.Position = Vector3.new(-14.7348604, 0.599999011, -2.18523002)
- o1.Anchored = false
- o1.CanCollide = false
- o1.Size = Vector3.new(0.1,0.1,0.1)
- o1.CFrame = CFrame.new(-14.7348604, 0.599999011, -2.18523002, 1, 0, -1.93715096e-07, 0, 1, 0, 1.93715096e-07, 0, 1)
- o1.BottomSurface = Enum.SurfaceType.Smooth
- o1.TopSurface = Enum.SurfaceType.Smooth
- o1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- o2.Name = "BlastMesh"
- o2.Parent = o1
- o2.MeshId = "http://www.roblox.com/asset/?id=20329976"
- o2.MeshType = Enum.MeshType.FileMesh
- o2.Scale = Vector3.new(0.2,0.2,0.2)
- o3.Parent = o1
- o3.Part0 = o1
- o3.Part1 = char.RAG.Revolver.Shot
- CreateSound(2314169572,char.RAG.Revolver.Shot,3,false)
- Fire("gun = 1",100)
- for i=0, 0.2, 0.05 / Fire_Anim_Speed do
- wait(0.01)
- RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.4, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- fired = false
- o1:Destroy()
- end
- end
- end
- end)
- Mouse.Button1Down:Connect(function()
- if equipped == true then
- if Rgun == 2 then
- if fired == false then
- print("faired gun 2")
- fired = true
- Rooted = false
- for i=0, 0.2, 0.05 / Fire_Anim_Speed do
- wait(0.01)
- turnto(Mouse.Hit.p)
- RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- wait(0.1)
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- o1 = Instance.new("Part")
- o2 = Instance.new("SpecialMesh")
- o3 = Instance.new("Weld")
- o1.Name = "BlastRing"
- o1.Parent = char.RAG.ShotGun
- o1.BrickColor = BrickColor.new("Bright yellow")
- o1.Transparency = 0.20000000298023
- o1.Position = Vector3.new(-14.7348604, 0.599999011, -2.18523002)
- o1.Anchored = false
- o1.CanCollide = false
- o1.Size = Vector3.new(0.1,0.1,0.1)
- o1.CFrame = CFrame.new(-14.7348604, 0.599999011, -2.18523002, 1, 0, -1.93715096e-07, 0, 1, 0, 1.93715096e-07, 0, 1)
- o1.BottomSurface = Enum.SurfaceType.Smooth
- o1.TopSurface = Enum.SurfaceType.Smooth
- o1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- o2.Name = "BlastMesh"
- o2.Parent = o1
- o2.MeshId = "http://www.roblox.com/asset/?id=20329976"
- o2.MeshType = Enum.MeshType.FileMesh
- o2.Scale = Vector3.new(0.2,0.2,0.2)
- o3.Parent = o1
- o3.Part0 = o1
- o3.Part1 = char.RAG.ShotGun.Shot
- CreateSound(3502970196,char.RAG.ShotGun.Shot,3,false)
- Fire("gun = 2",100)
- for i=0, 0.2, 0.05 / Fire_Anim_Speed do
- wait(0.01)
- RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- fired = false
- o1:Destroy()
- end
- end
- end
- end)
- Mouse.Button1Down:Connect(function()
- if equipped == true then
- if Lgun == 1 then
- if fired == false then
- print("faired gun 3")
- fired = true
- Rooted = false
- for i=0, 0.2, 0.05 / Fire_Anim_Speed do
- wait(0.01)
- turnto(Mouse.Hit.p)
- RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.25 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, -0.01) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- wait(0.1)
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- o1 = Instance.new("Part")
- o2 = Instance.new("SpecialMesh")
- o3 = Instance.new("Weld")
- o1.Name = "BlastRing"
- o1.Parent = char.LAG.SMG
- o1.BrickColor = BrickColor.new("Bright yellow")
- o1.Transparency = 0.20000000298023
- o1.Position = Vector3.new(-14.7348604, 0.599999011, -2.18523002)
- o1.Anchored = false
- o1.CanCollide = false
- o1.Size = Vector3.new(0.1,0.1,0.1)
- o1.CFrame = CFrame.new(-14.7348604, 0.599999011, -2.18523002, 1, 0, -1.93715096e-07, 0, 1, 0, 1.93715096e-07, 0, 1)
- o1.BottomSurface = Enum.SurfaceType.Smooth
- o1.TopSurface = Enum.SurfaceType.Smooth
- o1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- o2.Name = "BlastMesh"
- o2.Parent = o1
- o2.MeshId = "http://www.roblox.com/asset/?id=20329976"
- o2.MeshType = Enum.MeshType.FileMesh
- o2.Scale = Vector3.new(0.2,0.2,0.2)
- o3.Parent = o1
- o3.Part0 = o1
- o3.Part1 = char.LAG.SMG.Shot
- CreateSound(1153275576,char.LAG.SMG.Shot,3,false)
- Fire("gun = 3",100)
- for i=0, 0.2, 0.05 / Fire_Anim_Speed do
- wait(0.01)
- RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.25 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.3, 0.5, -0.01) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- fired = false
- o1:Destroy()
- end
- end
- end
- end)
- Mouse.Button1Down:Connect(function()
- if equipped == true then
- if Lgun == 2 then
- if fired == false then
- print("faired gun 4")
- fired = true
- Rooted = false
- for i=0, 0.2, 0.05 / Fire_Anim_Speed do
- wait(0.01)
- turnto(Mouse.Hit.p)
- RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.25 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, -0.01) * ANGLES(RAD(90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- wait(0.1)
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- o1 = Instance.new("Part")
- o2 = Instance.new("SpecialMesh")
- o3 = Instance.new("Weld")
- o1.Name = "BlastRing"
- o1.Parent = char.LAG.Tommy
- o1.BrickColor = BrickColor.new("Bright yellow")
- o1.Transparency = 0.20000000298023
- o1.Position = Vector3.new(-14.7348604, 0.599999011, -2.18523002)
- o1.Anchored = false
- o1.CanCollide = false
- o1.Size = Vector3.new(0.1,0.1,0.1)
- o1.CFrame = CFrame.new(-14.7348604, 0.599999011, -2.18523002, 1, 0, -1.93715096e-07, 0, 1, 0, 1.93715096e-07, 0, 1)
- o1.BottomSurface = Enum.SurfaceType.Smooth
- o1.TopSurface = Enum.SurfaceType.Smooth
- o1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- o2.Name = "BlastMesh"
- o2.Parent = o1
- o2.MeshId = "http://www.roblox.com/asset/?id=20329976"
- o2.MeshType = Enum.MeshType.FileMesh
- o2.Scale = Vector3.new(0.2,0.2,0.2)
- o3.Parent = o1
- o3.Part0 = o1
- o3.Part1 = char.LAG.Tommy.Shot
- CreateSound(1153275576,char.LAG.Tommy.Shot,3,false)
- Fire("gun = 4",100)
- for i=0, 0.2, 0.05 / Fire_Anim_Speed do
- wait(0.01)
- RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.25 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.3, 0.5, -0.01) * ANGLES(RAD(90), RAD(-10), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
- end
- fired = false
- o1:Destroy()
- end
- end
- end
- end)
- --animations
- while true do
- if fired == true then
- wait(0.5)
- print("Animations canceled")
- elseif fired == false then
- wait(0.01)
- SINE = SINE + CHANGE
- ANIMATE:Destroy()
- local IDLEANIMATION = hum:LoadAnimation(ROBLOXIDLEANIMATION)
- IDLEANIMATION:Play()
- local TORSOVELOCITY = (RP.Velocity * VT(1, 0, 1)).magnitude
- local TORSOVERTICALVELOCITY = RP.Velocity.y
- local LV = tors.CFrame:pointToObjectSpace(tors.Velocity - tors.Position)
- local HITFLOOR = Raycast(RP.Position, (CF(RP.Position, RP.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, char)
- local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
- if ATTACK == false and VALUE2 == false then
- end
- if ANIM == "Walk" and TORSOVELOCITY > 1 then
- RJ.C1 = Clerp(RJ.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RP.RotVelocity.Y / 75, RAD(0)), 2 * (hum.WalkSpeed / 16) / Animation_Speed)
- NK.C1 = Clerp(NK.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - hed.RotVelocity.Y / 30), 0.2 * (hum.WalkSpeed / 16) / Animation_Speed)
- RH.C1 = Clerp(RH.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RL.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (hum.WalkSpeed / 16) / Animation_Speed)
- LH.C1 = Clerp(LH.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LL.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (hum.WalkSpeed / 16) / Animation_Speed)
- elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
- RJ.C1 = Clerp(RJ.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- NK.C1 = Clerp(NK.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RH.C1 = Clerp(RH.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- LH.C1 = Clerp(LH.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- end
- if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
- ANIM = "Jump"
- if ATTACK == false then
- RJ.C0 = Clerp(RJ.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
- end
- elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
- ANIM = "Fall"
- if ATTACK == false then
- RJ.C0 = Clerp(RJ.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
- end
- elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
- ANIM = "Idle"
- if ATTACK == false then
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
- if MRANDOM(1,7) == 1 then
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
- end
- RJ.C0 = Clerp(RJ.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
- end
- elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
- ANIM = "Walk"
- if ATTACK == false then
- RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
- if MRANDOM(1,7) == 1 then
- NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
- end
- RS.C0 = Clerp(RS.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
- LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
- RH.C0 = Clerp(RH.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
- LH.C0 = Clerp(LH.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
- end
- end
- end
- end
- if Rooted == false then
- Disable_Jump = false
- hum.WalkSpeed = Speed
- elseif Rooted == true then
- Disable_Jump = true
- hum.WalkSpeed = 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement