Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- plr = game.Players.LocalPlayer
- repeat wait() until plr.Character
- char = plr.Character
- local music = Instance.new("Sound",char)
- music.Looped = true
- music.Volume = 4
- music.SoundId = "rbxassetid://182755167"
- music:Play()
- local player = game.Players.LocalPlayer
- local chara = player.Character
- local human = chara.Humanoid
- local neck = Instance.new("Weld",char)
- neck.Part0 = char.Torso
- neck.Part1 = char.Head
- neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local human2 = Instance.new("Weld",char)
- human2.Part0 = char.HumanoidRootPart
- human2.Part1 = char.Torso
- human2co = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- necc = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
- lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
- llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
- llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
- local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
- local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
- rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
- effect = Instance.new("Model",char)
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" and v.Name ~= "HumanoidRootPart" then
- local cp = v:Clone()
- cp.Parent = effect
- cp.BrickColor = BrickColor.new("New Yeller")
- cp.Transparency = 0.7
- cp.CanCollide = false
- cp.Material = Enum.Material.Neon
- cp.Name = "Forcefield" .. v.Name
- if cp.Name == "ForcefieldHead" then
- cp.face:Destroy()
- end
- if v ~= char.Head then
- cp.Size = v.Size+(Vector3.new(1,1,1)*0.2)
- else
- cp.Size = (Vector3.new(1,1,1)*v.Size.Y)+(Vector3.new(1,1,1)*0.2)
- end
- local weld = Instance.new("Weld",cp)
- weld.Part0 = v
- weld.Part1 = cp
- end
- end
- function remakemusic(PARENT, VOLUME, LOOPED)
- local music = music:Clone()
- music.Parent = PARENT
- music.Volume = VOLUME
- music.Looped = LOOPED
- music:Resume()
- end
- coroutine.wrap(function()
- while true do
- wait()
- if char:FindFirstChildOfClass("Sound") == nil then
- remakemusic(char, 4, true)
- end
- end
- end)()
- S = Instance.new("Sound")
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- NEWSOUND.Name = "Audio"
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait() until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = Instance.new("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = char.HumanoidRootPart.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- MRANDOM = math.random
- VT = Vector3.new
- Effect = Instance.new("Model",char)
- CF = CFrame.new
- function Shatter(Part)
- if Part.Transparency == 0 then
- local SOUNDPART = CreatePart(3, char, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
- game:GetService("Debris"):AddItem(SOUNDPART,5)
- local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
- local SIZESET = SIZE/4
- local XOffset = Part.Size.X*1.5/SIZESET
- local YOffset = Part.Size.Y*1.5/SIZESET
- local ZOffset = Part.Size.Z*1.5/SIZESET
- for x = 1, math.ceil(XOffset) do
- for y = 1, math.ceil(YOffset) do
- for z = 1, math.ceil(ZOffset) do
- local SHARD = CreatePart(3, Effect, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
- SHARD.CanCollide = true
- SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
- SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
- game:GetService("Debris"):AddItem(SHARD,MRANDOM(10,25)/3)
- end
- end
- end
- end
- Part:remove()
- end
- char.Torso.Touched:connect(function(part)
- local human = part.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Parent.Name ~= char.Name then
- for i,v in pairs(human.Parent:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" then
- Shatter(v)
- end
- end
- end
- end)
- pose = "Standing"
- cananimate = true
- abletolongjump = false
- crouching = false
- longjumping = false
- walking = false
- local speed = 0
- char.Humanoid.Running:connect(function(s)
- speed = s
- end)
- char.Humanoid.JumpPower = 70
- local BODY = {}
- LeftArm = char["Left Arm"]
- RightLeg = char["Right Leg"]
- LeftLeg = char["Left Leg"]
- for _, c in pairs(char:GetDescendants()) do
- if c:IsA("BasePart") and c.Name ~= "Handle" then
- if c ~= char.HumanoidRootPart and c ~= char.Torso and c ~= char.Head and c ~= char["Right Arm"] and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
- c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
- elseif c:IsA("JointInstance") then
- table.insert(BODY,{c,c.Parent,nil,nil,nil})
- end
- end
- for e = 1, #BODY do
- if BODY[e] ~= nil then
- local STUFF = BODY[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:Connect(function()
- PART.Parent = PARENT
- end)
- end
- end
- function refit()
- char.Parent = workspace
- for e = 1, #BODY do
- if BODY[e] ~= nil then
- local STUFF = BODY[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- if PART.Parent ~= PARENT then
- char:FindFirstChildOfClass("Humanoid"):remove()
- PART.Parent = PARENT
- Humanoid = Instance.new("Humanoid",char)
- end
- end
- end
- end
- char.Humanoid.Died:connect(function()
- refit()
- end)
- local update = game:GetService("RunService")
- update.RenderStepped:connect(function()
- local ray = Ray.new(chara.Torso.Position, (chara.Torso.Position - Vector3.new(0,9999999,0)).unit * 300)
- local p, position = game.Workspace:FindPartOnRay(ray, char, true, false)
- local dis = (chara.Torso.Position - position).magnitude
- if dis > 3.8 and chara.Torso.Velocity.Y > 0 then
- pose = "Jumping"
- char.Humanoid.WalkSpeed = 50
- end
- if dis> 3.8 and chara.Torso.Velocity.Y < 0 then
- pose = "Falling"
- char.Humanoid.WalkSpeed = 50
- end
- if dis < 3.8 and speed == 0 then
- pose = "Standing"
- char.Humanoid.WalkSpeed = 50
- end
- if dis < 3.8 and speed > 0 then
- pose = "Walking"
- char.Humanoid.WalkSpeed = 50
- end
- end)
- coroutine.wrap(function()
- while true do
- if char.Humanoid.Health > 1 then
- refit()
- end
- effect.Parent = char
- update.RenderStepped:wait()
- end
- end)()
- while true do
- wait()
- if pose == "Standing" and cananimate then
- walking = false
- for i = 0,1 , 0.05 do
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.499999523, -2.00000048, -9.53674316e-07, 0.970465422, 0, -0.241240621, 0, 1, 0, 0.241240621, 0, 0.970465422),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499999523, -2.00000048, 0, 0.825716197, -3.35415825e-06, -0.564085841, -0.00202200096, 0.999993622, -0.00296577741, 0.564082265, 0.00358947273, 0.825710893),i)
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 0.779511273, 0, 0.626388252, 0, 0.999997616, 0, -0.626388252, 0, 0.779511273):inverse(),i)
- neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 0.726146579, 0, 0.687539995, 0, 1, 0, -0.687539995, 0, 0.726146579),i)
- update.RenderStepped:wait()
- end
- end
- if pose == "Walking" and cananimate then
- walking = true
- for i = 0,1 ,0.05 do
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.369194984, 0.541806221, 1, -1.04308128e-07, 1.63912773e-07, -1.49011612e-07, 0.0614573658, 0.998109818, -7.4505806e-08, -0.998109758, 0.0614573658),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.46131897, 0.351869583, 1, -1.04308128e-07, 1.34110451e-07, -1.49011612e-07, 0.059670981, 0.998218119, -7.4505806e-08, -0.998218179, 0.0596710257),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i)
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.707106829, 0.707106829, 0, -0.707106829, 0.707106829):inverse(),i)
- neck.C0 = neck.C0:lerp(CFrame.new(-9.53674316e-07, 1.42333794, -0.394411087, 1, 2.44219436e-08, 1.78813934e-07, -1.49011612e-07, 0.70710665, 0.707106948, -7.4505806e-08, -0.707106888, 0.707106709),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- walking = true
- for i = 0,1 ,0.05 do
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.369194984, 0.541806221, 1, -1.04308128e-07, 1.63912773e-07, -1.49011612e-07, 0.0614573658, 0.998109818, -7.4505806e-08, -0.998109758, 0.0614573658),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.46131897, 0.351869583, 1, -1.04308128e-07, 1.34110451e-07, -1.49011612e-07, 0.059670981, 0.998218119, -7.4505806e-08, -0.998218179, 0.0596710257),i)
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.707106829, 0.707106829, 0, -0.707106829, 0.707106829):inverse(),i)
- neck.C0 = neck.C0:lerp(CFrame.new(-9.53674316e-07, 1.42333794, -0.394411087, 1, 2.44219436e-08, 1.78813934e-07, -1.49011612e-07, 0.70710665, 0.707106948, -7.4505806e-08, -0.707106888, 0.707106709),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- walking = true
- end
- if pose == "Jumping" and cananimate then
- walking = false
- for i = 0,1 ,0.03 do
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.499996185, -0.302403927, -1.00209022, 0.998795688, 1.07394217e-05, 0.0490646139, 0.0144870952, 0.955350697, -0.295119137, -0.0468770824, 0.295474499, 0.954199851),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.999998093, 0.401779056, -0.300704479, 0.995004237, 0.0998337567, 2.21675634e-07, -8.0173304e-05, 0.000801276532, -0.999999762, -0.0998337343, 0.995003879, 0.000805277436),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.999984741, 0.403417826, -0.400689125, 0.978886008, -0.198669523, -0.0480909608, -0.0489091128, 0.000789985002, -0.99880302, 0.198469713, 0.98006618, -0.00894344598),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499996185, -0.299546242, -1.00121045, 0.999991715, 1.10380352e-05, -3.05008143e-06, -1.13286078e-05, 0.955351293, -0.295472056, -2.51282472e-07, 0.295474589, 0.955343246),i)
- human2.C0 = human2.C0 * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0))
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- if pose == "Falling" and cananimate then
- walking = false
- for i = 0,1 ,0.03 do
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.499996185, -0.302403927, -1.00209022, 0.998795688, 1.07394217e-05, 0.0490646139, 0.0144870952, 0.955350697, -0.295119137, -0.0468770824, 0.295474499, 0.954199851),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.999998093, 0.401779056, -0.300704479, 0.995004237, 0.0998337567, 2.21675634e-07, -8.0173304e-05, 0.000801276532, -0.999999762, -0.0998337343, 0.995003879, 0.000805277436),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.999984741, 0.403417826, -0.400689125, 0.978886008, -0.198669523, -0.0480909608, -0.0489091128, 0.000789985002, -0.99880302, 0.198469713, 0.98006618, -0.00894344598),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499996185, -0.299546242, -1.00121045, 0.999991715, 1.10380352e-05, -3.05008143e-06, -1.13286078e-05, 0.955351293, -0.295472056, -2.51282472e-07, 0.295474589, 0.955343246),i)
- human2.C0 = human2.C0 * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0))
- neck.C0 = neck.C0:lerp(necc,i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- if pose == "LongJump" and cananimate then
- for i = 0,1 ,0.05 do
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.268796921, 0.378599167, 1, 0, 0, 0, 0.479244441, 0.877675295, 0, -0.877680123, 0.479247063),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.3865062, -0.938074112, 1, 0, 0, 0, 0.285262436, -0.958443761, 0, 0.958449006, 0.285263985),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.49999988, 0.223083735, 0.169561386, 1, 0, 0, 0, 0.60511744, 0.796129346, 0, -0.796133697, 0.605120778),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.53550446, -0.961566925, 1, 0, 0, 0, 0.407492548, -0.913202584, 0, 0.913207591, 0.407494754),i)
- human2.C0 = human2.C0:lerp(human2co,i)
- neck.C0 = neck.C0:lerp(necc,i)
- update.RenderStepped:wait()
- end
- end
- if pose == "CrouchIdle" and cananimate then
- walking = false
- for i = 0,1 ,0.05 do
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.0382479317, -0.999268353, 0, 0.999266207, 0.0382480137):inverse(),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.836666107, 1.21547508, 0.497126102, 0.782464266, -0.619657576, 0.0614301562, -0.106479198, -0.0359476209, 0.993664801, -0.61352396, -0.784048676, -0.0941083729),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.500001907, -0.912134171, -1.33790898, 0.999999821, 4.32133675e-07, 2.32458115e-06, 2.38418579e-06, 0.0123845953, -0.999923229, -4.60073352e-07, 0.999923527, 0.0123845842),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.06795311, 1.25440025, 0.391194582, -0.887933075, 0.459972352, -1.25467777e-05, -0.0143302083, -0.0276902169, -0.999513805, -0.459749311, -0.887501359, 0.0311785322),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499998093, -0.951980591, -1.32859886, 0.999999762, 3.56696546e-07, -6.85453415e-07, -6.85453415e-07, 0.0145149324, -0.999894559, -3.42726707e-07, 0.999894857, 0.0145149129),i)
- neck.C0 = neck.C0:lerp(necc,i)
- update.RenderStepped:wait()
- end
- end
- if pose == "CrouchWalk" and cananimate then
- walking = true
- for i = 0,1, 0.05 do
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.0382479317, -0.999268353, 0, 0.999266207, 0.0382480137):inverse(),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.08789825, -1.2466166, 0.999999821, -6.70552254e-07, 2.29477882e-06, 2.38418579e-06, 0.460938156, -0.887432218, -4.60073352e-07, 0.887432396, 0.460938305),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.499999046, 0.152124405, -1.14450228, 0.999999881, -5.96046448e-07, -1.16229057e-06, -1.22189522e-06, -0.641044497, -0.76750356, -3.22237611e-07, 0.767503738, -0.641044617),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.06795311, 1.25440025, 0.391194582, -0.887933075, 0.459972352, -1.25467777e-05, -0.0143302083, -0.0276902169, -0.999513805, -0.459749311, -0.887501359, 0.0311785322),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.836666107, 1.21547508, 0.497126102, 0.782464266, -0.619657576, 0.0614301562, -0.106479198, -0.0359476209, 0.993664801, -0.61352396, -0.784048676, -0.0941083729),i)
- neck.C0 = neck.C0:lerp(necc,i)
- update.RenderStepped:wait()
- end
- for i = 0,1, 0.05 do
- human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.0382479317, -0.999268353, 0, 0.999266207, 0.0382480137):inverse(),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.500027657, -0.210391998, -1.34505367, 0.999999762, 1.38282776e-05, 2.73883343e-05, 3.06665897e-05, -0.405213743, -0.914221942, -1.54413283e-06, 0.914222181, -0.405213833),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.500020981, -1.04758263, -1.2475245, 0.999999821, -2.4586916e-05, 5.15282154e-05, 5.70416451e-05, 0.470286787, -0.882513642, -2.55182385e-06, 0.882513881, 0.470286816),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.06795311, 1.25440025, 0.391194582, -0.887933075, 0.459972352, -1.25467777e-05, -0.0143302083, -0.0276902169, -0.999513805, -0.459749311, -0.887501359, 0.0311785322),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.836666107, 1.21547508, 0.497126102, 0.782464266, -0.619657576, 0.0614301562, -0.106479198, -0.0359476209, 0.993664801, -0.61352396, -0.784048676, -0.0941083729),i)
- neck.C0 = neck.C0:lerp(necc,i)
- update.RenderStepped:wait()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement