Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("FE code by Starzozero, Thanks to him!")
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros, Edited by StarzoZero")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return m:TrigEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return rawget(self,s) or _rg:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- FakeService(g,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- --[[Start Up]]--
- Plr = game:service'Players'.LocalPlayer
- Char = Plr.Character
- Mouse = Plr:GetMouse()
- head = Char.Head
- Numb = 34
- local sway = false
- local spread = 25
- Char.Humanoid.WalkSpeed = 25
- local CurA,StoA = 8,8*8
- local RTilt = 0
- local CurrentRightArmAngle = CFrame.new(0,0,0)
- local CurrentLeftArmAngle = CFrame.new(0,0,0)
- local CurCam = workspace.CurrentCamera
- local CurCamCF = CurCam.CoordinateFrame
- local MouseDown = false
- local Mouse2Down = false
- local CurAming = false
- local ammo = 20
- local sine = 0;
- local change = 1;
- local attack = false
- local mouse = Plr:GetMouse()
- local defAnim = true;
- local UIP = game:service'UserInputService'
- local target = nil;
- local TweS = game:GetService("TweenService")
- --[[Limbs and Extra Calls]]--
- local Gui,Frame,Ammo,Stored,Mode,Slash,HitM = nil,nil,nil,nil,nil,nil,nil
- local ra,la,ts,hd,ll,rl,root,humanoid = Char:FindFirstChild'Right Arm',Char:FindFirstChild'Left Arm',Char:FindFirstChild'Torso',Char:FindFirstChild'Head',Char:FindFirstChild'Left Leg',Char:FindFirstChild'Right Leg',Char:FindFirstChild'HumanoidRootPart',Char:FindFirstChild'Humanoid'
- local rarm,larm,hed,torso,hroot,lleg,hum,rleg = ra,la,hd,ts,root,ll,humanoid,rl
- local plr,char,mouse = Plr,Char,Mouse
- local AbleToShoot,Reloading = true,false
- local Stance = 'Standing'
- Weld = function(P0,P1,CF)
- local W = Instance.new('Weld',P1)
- W.Part0 = P0
- W.Part1 = P1
- W.C1 = CF
- return W
- end;
- NewSound = function(Parent, Id)
- local Sound = Instance.new('Sound',Parent)
- Sound.SoundId = 'rbxassetid://'..Id
- return Sound
- end
- rad = function(Int)
- return math.rad(tonumber(Int))
- end;
- sin = function(Int)
- return math.sin(tonumber(Int))
- end;
- cos = function(Int)
- return math.cos(tonumber(Int))
- end;
- Angles = function(X,Y,Z)
- return CFrame.Angles(X,Y,Z);
- end;
- Euler = function(X,Y,Z)
- return CFrame.fromEulerAnglesXYZ(X,Y,Z);
- end;
- CF = function(X,Y,Z)
- return CFrame.new(X,Y,Z);
- end;
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- if Object:IsA'Part' then
- Object.Anchored = false
- Object.CanCollide = false
- Object.Locked = true
- Object.TopSurface,Object.BottomSurface = 10,10
- Object.RightSurface,Object.LeftSurface = 10,10
- Object.FrontSurface,Object.BackSurface = 10,10
- end
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- Newv2 = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- local gun = Instance.new("Model", char)
- local handle = Instance.new("Part", gun)
- handle.Size = Vector3.new(0.36, 1, 2)
- handle.CanCollide = false
- local mesh = Instance.new("SpecialMesh", handle)
- mesh.MeshId = "rbxassetid://430346344"
- mesh.TextureId = "rbxassetid://430348267"
- mesh.Scale = Vector3.new(0.002, 0.002, 0.002)
- GN = New("ManualWeld",handle,"Weld",{Part0 = handle,Part1 = rarm,C1 = CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),})
- local music = Instance.new("Sound", torso)
- music.Looped = true
- music.Volume = 3
- music.SoundId = "rbxassetid://1438408927"
- music:Play()
- -- Objects
- local glock18 = Instance.new("ScreenGui")
- local ammo1 = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local ammoy = Instance.new("TextLabel")
- -- Properties
- glock18.Name = "glock18"
- glock18.Parent = Plr.PlayerGui
- ammo1.Name = "ammo1"
- ammo1.Parent = glock18
- ammo1.BackgroundColor3 = Color3.new(1, 1, 1)
- ammo1.Position = UDim2.new(0.987226248, -184, 0.970355749, -69)
- ammo1.Size = UDim2.new(0, 191, 0, 75)
- ammo1.Style = Enum.FrameStyle.RobloxRound
- TextLabel.Parent = ammo1
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0.00523560215, 0, 0.0266666636, 0)
- TextLabel.Size = UDim2.new(0, 100, 0, 12)
- TextLabel.Font = Enum.Font.SourceSansBold
- TextLabel.Text = "Glock 18"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 25
- ammoy.Name = "ammo"
- ammoy.Parent = ammo1
- ammoy.BackgroundColor3 = Color3.new(1, 1, 1)
- ammoy.BackgroundTransparency = 1
- ammoy.Position = UDim2.new(0.497382194, -50, 0.646666646, -6)
- ammoy.Size = UDim2.new(0, 100, 0, 12)
- ammoy.Font = Enum.Font.SourceSansBold
- ammoy.Text = "Ammo: 20"
- ammoy.TextColor3 = Color3.new(1, 1, 1)
- ammoy.TextSize = 30
- local CamModel = Instance.new('Model',workspace.CurrentCamera)
- CamModel.Name = Plr.Name
- Instance.new('Humanoid',CamModel)
- humanoid.Died:connect(function()
- CamModel:Destroy()
- Plr.CameraMode = 'Classic'
- game:service'UserInputService'.MouseIconEnabled = true
- end)
- ypcall(function()
- Char.Shirt:Clone().Parent = CamModel
- end)
- -------------------------------------------------------------
- local fRemington_Model = gun:Clone()---------------------------------
- fRemington_Model.Parent = CamModel-------------------------------------
- --fRemington_Model.Mag:Destroy()-----------------------------------------
- --fRemington_Model.Mag2:Destroy()----------------------------------------
- local fRemington_ModelW = Weld(handle,handle,CF(0,0,0))---
- for index,obj in next,fRemington_Model:children() do-------------------
- if obj:IsA'Part' then----------------------------------------
- obj.CanCollide = false---------------------------------------
- end;end;-----------------------------------------------------
- -------------------------------------------------------------
- local frarm = rarm:Clone()-----------------------------------
- frarm.CanCollide = false-------------------------------------
- frarm.FormFactor = 3-----------------------------------------
- frarm.Parent = CamModel--------------------------------------
- local frarmW = Weld(rarm,frarm,CF(0,0,0))--------------------
- -------------------------------------------------------------
- local flarm = larm:Clone()-----------------------------------
- flarm.CanCollide = false-------------------------------------
- flarm.FormFactor = 3-----------------------------------------
- flarm.Parent = CamModel--------------------------------------
- local flarmW = Weld(larm,flarm,CF(0,0,0))--------------------
- -------------------------------------------------------------
- NewSound = function(Parent, Id)
- local Sound = Instance.new('Sound',Parent)
- Sound.SoundId = 'rbxassetid://'..Id
- return Sound
- end
- local lRS = game:service'RunService'.RenderStepped
- local CFY = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
- local V3Y = {N=Vector3.new}
- local MY = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge}
- local NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance,parent)
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- for _,v in next, hum:GetPlayingAnimationTracks() do
- v:Stop();
- end
- pcall(game.Destroy,char:FindFirstChild'Animate')
- pcall(game.Destroy,hum:FindFirstChild'Animator')
- local RunS = game:GetService("RunService")
- 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 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 m00 < m11 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-- Created by Nebula_Zorua aka Quil_Cyndaquil
- 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 >= 1.0E-4 then
- if 1 - cosTheta > 1.0E-4 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((1 - t) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- elseif 1 + cosTheta > 1.0E-4 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((t - 1) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- 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
- local Create = LoadLibrary("RbxUtility").Create
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- -- Joints and Lerp
- local LS = NewInstance('Motor',char,{Part0=torso,Part1=larm,C0 = CFY.N(-1.5,0.5,0),C1 = CFY.N(0,.5,0)})
- local RS = NewInstance('Motor',char,{Part0=torso,Part1=rarm,C0 = CFY.N(1.5,0.5,0),C1 = CFY.N(0,.5,0)})
- local NK = NewInstance('Motor',char,{Part0=torso,Part1=head,C0 = CFY.N(0,1.5,0)})
- local LH = NewInstance('Motor',char,{Part0=torso,Part1=lleg,C0 = CFY.N(-.5,-1,0),C1 = CFY.N(0,1,0)})
- local RH = NewInstance('Motor',char,{Part0=torso,Part1=rleg,C0 = CFY.N(.5,-1,0),C1 = CFY.N(0,1,0)})
- local RJ = NewInstance('Motor',char,{Part0=root,Part1=torso})
- -- Default C0s
- local LSD=LS.C0
- local RSD=RS.C0
- local HD=NK.C0
- local TD=RJ.C0
- local LHD=LH.C0
- local RHD=RH.C0
- function fire(v)
- local missile = Instance.new("Part")
- local spawnPos = handle.Position
- spawnPos = spawnPos + (v * 8)
- missile.Position = spawnPos
- missile.Size = Vector3.new(1,1,1)
- missile.Velocity = v * 600
- missile.BrickColor = BrickColor.new(26)
- missile.Shape = 0
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.Name = "Bullet"
- missile.Elasticity = 0
- missile.Reflectance = 0
- missile.Friction = .9
- missile.CanCollide = false
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,missile:getMass() * 196,0)
- force.Parent = missile
- local mesh = Instance.new("SpecialMesh")
- mesh.Scale = Vector3.new(.01,.01,.01)
- mesh.MeshType = "Sphere"
- mesh.Parent = missile
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- h.Health = h.Health -100
- wait(.01)
- h.Health = h.Health -100
- wait(.01)
- end
- end
- missile.Touched:connect(onTouched)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = char
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- missile.Parent = game.Workspace
- end
- function fadein()
- Plr.CameraMode = "LockFirstPerson"
- attack = true
- defAnim = false
- CFuncs["Sound"].Create("rbxassetid://169799883", torso, 3, 1)
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(-0.657111883, -0.430512428, -1.02956259, 0.567150056, -0.822405338, -0.0446111783, 0.552519441, 0.420081109, -0.719898462, 0.610788763, 0.383641958, 0.69264406),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.35287654, 0.0391665399, -0.429004192, 0.969914317, 0.243446648, 0, -0.178186312, 0.709911048, -0.681377888, -0.16587919, 0.660878181, 0.731931746),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.0983841419, -1.10394311, -0.300000668, -0.934357166, 3.7252903e-08, 0.356337726, -0.356337696, -2.98023224e-08, -0.934357166, 1.86264515e-08, -0.99999994, -2.98023224e-08),0)
- end
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.158522338, 0.240668699, -0.936709285, 0.560309589, -0.623040736, 0.545777678, 0.481338233, -0.291315228, -0.826709569, 0.674067199, 0.725917041, 0.136666611),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027406, 0.218288228, -0.461218596, 0.969914317, 0.102011092, -0.221043006, -0.178186312, -0.321199805, -0.930096924, -0.16587919, 0.941501141, -0.29335928),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.130455613, -1.16951847, -0.264689922, -0.913215518, -0.197638273, 0.356337786, -0.348274857, -0.0753737688, -0.934357226, 0.211523324, -0.977372885, 0),0)
- end
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.32328704, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288094, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364649, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- end
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.32328704, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288094, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364649, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- end
- attack = false
- defAnim = true
- end
- function inspect()
- attack = true
- defAnim = false
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287517, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),0.3)
- end
- CFuncs["Sound"].Create("rbxassetid://921796477", torso, 3, 1)
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(-1.23224425, 0.449829996, -0.233818352, 0.960404813, 0.276607126, 0.033331804, -0.0890999958, 0.418289512, -0.903932989, -0.263976663, 0.86517179, 0.426372975),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(0.962285638, 0.115449607, -1.15711117, 0.770475388, 0.514442205, -0.376453102, -0.152283132, -0.424910188, -0.89233464, -0.619013369, 0.744849324, -0.2490419),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.272401094, -1.15437603, -0.2704283, -0.965247095, -0.162324473, -0.204814732, 0.217120826, -0.0619060844, -0.974179745, 0.145454109, -0.984793484, 0.0949986428),0)
- end
- wait(2)
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(-1.23224401, 0.449829906, -0.23381862, 0.960404813, 0.271986961, 0.0603788979, -0.0890999958, 0.5051772, -0.858403683, -0.263976663, 0.819035351, 0.509408712),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.10590088, 0.30951947, -1.14559174, 0.728411317, 0.514442205, 0.452511042, 0.674886405, -0.424910188, -0.603307188, -0.118090212, 0.744849324, -0.656699419),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.229920149, -1.17744732, -0.275511265, -0.985279143, -0.168420613, -0.0293153897, 0.0400875434, -0.0609193742, -0.997337341, 0.166186094, -0.983830929, 0.0667740405),0)
- end
- wait(2)
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287517, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- end
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287517, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- end
- attack = false
- defAnim = true
- end
- local Scale = game.Players.LocalPlayer.Character.Torso.Size.X/2*(game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1)*0.8
- function shoot()
- attack = true
- defAnim = false
- for i = 0, 2, 0.4 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980242, 0.323287547, -1.1554594, 0.859711528, -0.439796269, 0.259759933, 0.113255493, -0.331763655, -0.936539233, 0.498065472, 0.834572911, -0.235411704),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027406, 0.218288302, -0.461218804, 0.969914317, 0.102551512, -0.2207928, -0.178186312, -0.318923712, -0.930879831, -0.16587919, 0.942215979, -0.291055381),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806833, -1.22873306, -0.288364887, -0.947384775, -0.189287007, 0.258133173, -0.269265532, 0.0352107882, -0.962422252, 0.173084959, -0.981290221, -0.0843266249),0)
- end
- ammo = ammo -1
- if head == true then char.Head:BreakJoints() return end
- coroutine.resume(coroutine.create(function()
- for _,v in pairs (Mouse.Target.Parent:children()) do
- if v:IsA("Humanoid") then v.Health = v.Health - 15 end
- end
- end))
- local Shell = Instance.new("Part",workspace)
- Shell.FormFactor = "Custom"
- Shell.BrickColor = BrickColor.new("Bright yellow")
- Shell.Size = Vector3.new(0.2,0.5,0.2)*Scale
- Shell.CFrame = handle.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
- Shell.Velocity = ((handle.CFrame*CFrame.new(5,0,math.random(-2,2))).p-handle.CFrame.p)*5*Scale
- local Mesh = Instance.new("CylinderMesh",Shell)
- Mesh.Scale = Vector3.new(0.2,0.5,0.2)*Scale/Shell.Size
- spawn(function()
- wait(5)
- Shell:Destroy()
- end)
- CFuncs["Sound"].Create("rbxassetid://165946426", torso, 2, 1)
- for i = 0, 2, 0.4 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980242, 0.323287547, -1.1554594, 0.859711528, -0.439796269, 0.259759933, 0.113255493, -0.331763655, -0.936539233, 0.498065472, 0.834572911, -0.235411704),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027406, 0.218288302, -0.461218804, 0.969914317, 0.102551512, -0.2207928, -0.178186312, -0.318923712, -0.930879831, -0.16587919, 0.942215979, -0.291055381),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806833, -1.22873306, -0.288364887, -0.947384775, -0.189287007, 0.258133173, -0.269265532, 0.0352107882, -0.962422252, 0.173084959, -0.981290221, -0.0843266249),0)
- end
- attack = false
- defAnim = true
- end
- function reload()
- attack = true
- defAnim = false
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287278, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- end
- CFuncs["Sound"].Create("rbxassetid://269172810", torso, 2, 1)
- wait(0.1)
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(-1.17278111, 0.48222062, -0.471188039, 0.924792349, 0.150494352, 0.349443197, -0.256053537, 0.925508916, 0.279051423, -0.281417072, -0.347540796, 0.894438148),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.03868747, 0.263712585, -1.18925571, 0.875781119, 0.449063241, -0.17705889, -0.167567432, -0.0611644834, -0.983961403, -0.452690601, 0.891404033, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.542592764, -1.10347652, -0.254355431, -0.715370178, -0.0529403165, -0.696737707, 0.693933368, -0.170653373, -0.699524164, -0.081867516, -0.983907878, 0.15881744),0)
- end
- wait(0.1)
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(-0.568064034, 0.204982013, -1.42027211, 0.622793555, -0.769848466, -0.139505237, -0.00457992731, 0.174716875, -0.984607935, 0.782372713, 0.613846302, 0.105286777),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.03868735, 0.263712615, -1.18925524, 0.875781119, 0.467157662, -0.121537626, -0.167567432, 0.0580991954, -0.984147191, -0.452690601, 0.882263184, 0.129162595),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(0.0538945198, -1.14835835, -0.169887543, -0.973866582, -0.0529403463, 0.220865563, -0.209099188, -0.170653418, -0.962888956, 0.0886671841, -0.983907938, 0.155123785),0)
- end
- wait(0.2)
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(-0.490309298, 0.710055947, -1.4792105, 0.622793555, -0.625803113, 0.469572961, -0.00457992731, -0.603086174, -0.797662675, 0.782372713, 0.494628578, -0.378464222),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.03868747, 0.263712704, -1.18925595, 0.875781119, 0.379022956, -0.298913509, -0.167567432, -0.342017978, -0.924632311, -0.452690601, 0.859863639, -0.236020967),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(0.0524652004, -0.946891785, -0.204425573, -0.997490406, -0.0683014616, -0.0186621845, 0.0205418169, -0.0269232988, -0.999426544, 0.0677600279, -0.99730134, 0.0282589048),0)
- end
- -- shell
- ammo = 20
- local Shell = Instance.new("Part",workspace)
- Shell.FormFactor = "Custom"
- Shell.BrickColor = BrickColor.new("Bright yellow")
- Shell.Size = Vector3.new(0.2,0.5,0.2)*Scale
- Shell.CFrame = handle.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
- Shell.Velocity = ((handle.CFrame*CFrame.new(5,0,math.random(-2,2))).p-handle.CFrame.p)*5*Scale
- local Mesh = Instance.new("CylinderMesh",Shell)
- Mesh.Scale = Vector3.new(0.2,0.5,0.2)*Scale/Shell.Size
- spawn(function()
- wait(5)
- Shell:Destroy()
- end)
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(-0.186799586, 0.73579663, -1.16131508, 0.551755011, -0.753234982, 0.358055115, -0.0496432446, -0.458220094, -0.887451172, 0.832527339, 0.471880645, -0.290218115),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.03868747, 0.263712704, -1.18925595, 0.875781119, 0.379022956, -0.298913509, -0.167567432, -0.342017978, -0.924632311, -0.452690601, 0.859863639, -0.236020967),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(0.0524652004, -0.946891785, -0.204425573, -0.997490406, -0.0683014616, -0.0186621845, 0.0205418169, -0.0269232988, -0.999426544, 0.0677600279, -0.99730134, 0.0282589048),0)
- end
- -- there goes to shell
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(-0.25933069, 0.792986512, -1.42567968, 0.657083452, -0.621070743, 0.427214861, 0.018668605, -0.553153694, -0.832869828, 0.753586531, 0.555240512, -0.351873457),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.03868747, 0.263712525, -1.18925548, 0.875781119, 0.401792049, -0.267527282, -0.167567432, -0.2667, -0.949100792, -0.452690601, 0.876033366, -0.166243568),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(0.0524654388, -0.946891785, -0.204425454, -0.997490346, -0.0683014765, -0.0186622441, 0.0205417871, -0.0269232988, -0.999426603, 0.0677600205, -0.997301459, 0.0282589123),0)
- end
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287278, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- for i = 0, 2, 0.3 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287278, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- end
- attack = false
- defAnim = true
- end
- function CheckState(rPart)
- if(rPart.Velocity.y > .5 and hum:GetState() == Enum.HumanoidStateType.Freefall)then
- return 'Jump';
- elseif(rPart.Velocity.y < -.5 and hum:GetState() == Enum.HumanoidStateType.Freefall)then
- return 'Fall';
- elseif(math.abs(rPart.Velocity.x) > 2 or math.abs(rPart.Velocity.z) > 2 and hum:GetState() ~= Enum.HumanoidStateType.Freefall)then
- return 'Walk';
- end
- return 'Idle';
- end
- fadein()
- mouse.Button1Down:connect(function()
- if attack == false then
- if ammo ~= 0 then
- shoot()
- end
- end
- end)
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- if attack == false and k == 'r' then
- if ammo ~= 20 then
- reload()
- end
- end
- if attack == false and k == 'f' then
- inspect()
- end
- end)
- Char.Animate:Destroy()
- RunS:BindToRenderStep("N_Animations",Enum.RenderPriority.Character.Value + 1,function()
- if ammo ~= 0 then
- ammoy.Text = "Ammo: "..ammo
- else
- ammoy.Text = "Ran out ammo"
- end
- sine=sine+change
- if(target and not target.Parent) then
- target = nil;
- end
- if(target)then
- else
- end
- if(defAnim)then
- if(CheckState(root) == 'Idle')then
- -- Idle anim
- change = .4
- for i = 0, 2, 1.5 do
- RunS.RenderStepped:wait()
- LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -1, 0, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.3)
- RH.C0 = clerp(RH.C0,CFrame.new(0.5, -1, 0, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.3)
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287278, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),0.3)
- end
- elseif(CheckState(root) == 'Walk')then
- for i = 0, 2, 1.5 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287278, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- RJ.C0 = clerp(RJ.C0,TD * CFY.N(0,-.175 + .025 * MY.C(sine / 3.5) + -MY.S(sine/3.5)/7,0) *CFY.A(-MY.R(5-2.5*MY.C(sine/3.5)),-MY.R(10 * MY.C(sine / 7)),0),.2)
- LH.C0 = clerp(LH.C0,CFY.N(-.5, -0.925 + 0.5 * MY.C(sine / 7) / 2, -0.5 * MY.C(sine / 7) / 2) * CFY.A(MY.R(-15 + 15 * MY.C(sine / 7)) + MY.S(sine / 7) / 2.5, MY.R(10 * MY.C(sine / 7)), MY.R(0)) * CFY.A(MY.R(0 - 2.5 * MY.C(sine / 7)), MY.R(0), MY.R(0)),.2)
- RH.C0 = clerp(RH.C0,CFY.N(.5, -0.925 - 0.5 * MY.C(sine / 7) / 2, 0.5 * MY.C(sine / 7) / 2) * CFY.A(MY.R(-15 - 15 * MY.C(sine / 7)) + -MY.S(sine / 7) / 2.5, MY.R(10 * MY.C(sine / 7)), MY.R(0)) * CFY.A(MY.R(0 + 2.5 * MY.C(sine / 7)), MY.R(0), MY.R(0)),.2)
- end
- elseif(CheckState(root) == 'Jump')then
- for i = 0, 2, 1.5 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287278, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),0.3)
- end
- elseif(CheckState(root) == 'Fall')then
- for i = 0, 2, 1.5 do
- RunS.RenderStepped:wait()
- LS.C0 = clerp(LS.C0,CFrame.new(0.161980867, 0.323287278, -1.15545988, 0.859711528, -0.508263111, 0.0506423712, 0.113255493, 0.0930056944, -0.989203155, 0.498065472, 0.856164932, 0.137521684),0.3)
- RS.C0 = clerp(RS.C0,CFrame.new(1.38027394, 0.218288332, -0.461218745, 0.969914317, 0.167082101, -0.17705889, -0.178186312, -0.00834101345, -0.983961403, -0.16587919, 0.985907733, 0.0216816962),0.3)
- GN.C0 = clerp(GN.C0,CFrame.new(-0.174806952, -1.22873306, -0.288364887, -0.947384775, -0.162324503, 0.27588594, -0.269265532, -0.0619060546, -0.961074293, 0.173084974, -0.984793603, 0.0149404127),0)
- RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),0.3)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement