Advertisement
End_Wolf

Untitled

Aug 24th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. 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
  6. plr = game.Players.LocalPlayer
  7. repeat wait() until plr.Character
  8. char = plr.Character
  9.  
  10. local music = Instance.new("Sound",char)
  11. music.Looped = true
  12. music.Volume = 4
  13. music.SoundId = "rbxassetid://182755167"
  14. music:Play()
  15.  
  16. local player = game.Players.LocalPlayer
  17.  
  18.  
  19. local chara = player.Character
  20. local human = chara.Humanoid
  21. local neck = Instance.new("Weld",char)
  22. neck.Part0 = char.Torso
  23. neck.Part1 = char.Head
  24. neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  25. local human2 = Instance.new("Weld",char)
  26. human2.Part0 = char.HumanoidRootPart
  27. human2.Part1 = char.Torso
  28. human2co = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  29. necc = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  30. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  31. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  32. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  33. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  34. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  35. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  36. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  37. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  38. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  39. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  40. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  41. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  42. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  43. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  44. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  45. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  46. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  47. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  48. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  49. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  50.  
  51.  
  52.  
  53. effect = Instance.new("Model",char)
  54.  
  55. for i,v in pairs(char:GetChildren()) do
  56. if v.ClassName == "Part" and v.Name ~= "HumanoidRootPart" then
  57. local cp = v:Clone()
  58. cp.Parent = effect
  59. cp.BrickColor = BrickColor.new("New Yeller")
  60. cp.Transparency = 0.7
  61. cp.CanCollide = false
  62. cp.Material = Enum.Material.Neon
  63. cp.Name = "Forcefield" .. v.Name
  64. if cp.Name == "ForcefieldHead" then
  65. cp.face:Destroy()
  66. end
  67. if v ~= char.Head then
  68. cp.Size = v.Size+(Vector3.new(1,1,1)*0.2)
  69. else
  70. cp.Size = (Vector3.new(1,1,1)*v.Size.Y)+(Vector3.new(1,1,1)*0.2)
  71. end
  72. local weld = Instance.new("Weld",cp)
  73. weld.Part0 = v
  74. weld.Part1 = cp
  75. end
  76. end
  77.  
  78.  
  79.  
  80. function remakemusic(PARENT, VOLUME, LOOPED)
  81. local music = music:Clone()
  82. music.Parent = PARENT
  83. music.Volume = VOLUME
  84. music.Looped = LOOPED
  85. music:Resume()
  86. end
  87.  
  88. coroutine.wrap(function()
  89. while true do
  90. wait()
  91. if char:FindFirstChildOfClass("Sound") == nil then
  92. remakemusic(char, 4, true)
  93. end
  94. end
  95. end)()
  96.  
  97. S = Instance.new("Sound")
  98.  
  99. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  100. local NEWSOUND = nil
  101. coroutine.resume(coroutine.create(function()
  102. NEWSOUND = S:Clone()
  103. NEWSOUND.Parent = PARENT
  104. NEWSOUND.Volume = VOLUME
  105. NEWSOUND.Pitch = PITCH
  106. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  107. NEWSOUND:play()
  108. NEWSOUND.Name = "Audio"
  109. if DOESLOOP == true then
  110. NEWSOUND.Looped = true
  111. else
  112. repeat wait() until NEWSOUND.Playing == false
  113. NEWSOUND:remove()
  114. end
  115. end))
  116. return NEWSOUND
  117. end
  118. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  119. local NEWPART = Instance.new("Part")
  120. NEWPART.formFactor = FORMFACTOR
  121. NEWPART.Reflectance = REFLECTANCE
  122. NEWPART.Transparency = TRANSPARENCY
  123. NEWPART.CanCollide = false
  124. NEWPART.Locked = true
  125. NEWPART.Anchored = true
  126. if ANCHOR == false then
  127. NEWPART.Anchored = false
  128. end
  129. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  130. NEWPART.Name = NAME
  131. NEWPART.Size = SIZE
  132. NEWPART.Position = char.HumanoidRootPart.Position
  133. NEWPART.Material = MATERIAL
  134. NEWPART:BreakJoints()
  135. NEWPART.Parent = PARENT
  136. return NEWPART
  137. end
  138. MRANDOM = math.random
  139. VT = Vector3.new
  140. Effect = Instance.new("Model",char)
  141. CF = CFrame.new
  142.  
  143. function Shatter(Part)
  144. if Part.Transparency == 0 then
  145. local SOUNDPART = CreatePart(3, char, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
  146. game:GetService("Debris"):AddItem(SOUNDPART,5)
  147. local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
  148. local SIZESET = SIZE/4
  149. local XOffset = Part.Size.X*1.5/SIZESET
  150. local YOffset = Part.Size.Y*1.5/SIZESET
  151. local ZOffset = Part.Size.Z*1.5/SIZESET
  152. for x = 1, math.ceil(XOffset) do
  153. for y = 1, math.ceil(YOffset) do
  154. for z = 1, math.ceil(ZOffset) do
  155. local SHARD = CreatePart(3, Effect, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
  156. SHARD.CanCollide = true
  157. SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
  158. SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
  159. game:GetService("Debris"):AddItem(SHARD,MRANDOM(10,25)/3)
  160. end
  161. end
  162. end
  163. end
  164. Part:remove()
  165. end
  166.  
  167. char.Torso.Touched:connect(function(part)
  168. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  169. if human and human.Parent.Name ~= char.Name then
  170. for i,v in pairs(human.Parent:GetChildren()) do
  171. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  172. Shatter(v)
  173. end
  174. end
  175. end
  176. end)
  177. pose = "Standing"
  178.  
  179.  
  180. cananimate = true
  181. abletolongjump = false
  182. crouching = false
  183. longjumping = false
  184. walking = false
  185.  
  186. local speed = 0
  187.  
  188. char.Humanoid.Running:connect(function(s)
  189. speed = s
  190. end)
  191.  
  192. char.Humanoid.JumpPower = 70
  193.  
  194. local BODY = {}
  195. LeftArm = char["Left Arm"]
  196. RightLeg = char["Right Leg"]
  197. LeftLeg = char["Left Leg"]
  198. for _, c in pairs(char:GetDescendants()) do
  199. if c:IsA("BasePart") and c.Name ~= "Handle" then
  200. 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
  201. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  202. end
  203. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  204. elseif c:IsA("JointInstance") then
  205. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  206. end
  207. end
  208. for e = 1, #BODY do
  209. if BODY[e] ~= nil then
  210. local STUFF = BODY[e]
  211. local PART = STUFF[1]
  212. local PARENT = STUFF[2]
  213. local MATERIAL = STUFF[3]
  214. local COLOR = STUFF[4]
  215. local TRANSPARENCY = STUFF[5]
  216. if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
  217. PART.Material = MATERIAL
  218. PART.Color = COLOR
  219. PART.Transparency = TRANSPARENCY
  220. end
  221. PART.AncestryChanged:Connect(function()
  222. PART.Parent = PARENT
  223. end)
  224. end
  225. end
  226. function refit()
  227. char.Parent = workspace
  228. for e = 1, #BODY do
  229. if BODY[e] ~= nil then
  230. local STUFF = BODY[e]
  231. local PART = STUFF[1]
  232. local PARENT = STUFF[2]
  233. local MATERIAL = STUFF[3]
  234. local COLOR = STUFF[4]
  235. local TRANSPARENCY = STUFF[5]
  236. if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
  237. PART.Material = MATERIAL
  238. PART.Color = COLOR
  239. PART.Transparency = TRANSPARENCY
  240. end
  241. if PART.Parent ~= PARENT then
  242. char:FindFirstChildOfClass("Humanoid"):remove()
  243. PART.Parent = PARENT
  244. Humanoid = Instance.new("Humanoid",char)
  245. end
  246. end
  247. end
  248. end
  249. char.Humanoid.Died:connect(function()
  250. refit()
  251. end)
  252.  
  253. local update = game:GetService("RunService")
  254. update.RenderStepped:connect(function()
  255. local ray = Ray.new(chara.Torso.Position, (chara.Torso.Position - Vector3.new(0,9999999,0)).unit * 300)
  256. local p, position = game.Workspace:FindPartOnRay(ray, char, true, false)
  257. local dis = (chara.Torso.Position - position).magnitude
  258. if dis > 3.8 and chara.Torso.Velocity.Y > 0 then
  259. pose = "Jumping"
  260. char.Humanoid.WalkSpeed = 50
  261. end
  262. if dis> 3.8 and chara.Torso.Velocity.Y < 0 then
  263. pose = "Falling"
  264. char.Humanoid.WalkSpeed = 50
  265. end
  266. if dis < 3.8 and speed == 0 then
  267. pose = "Standing"
  268. char.Humanoid.WalkSpeed = 50
  269. end
  270. if dis < 3.8 and speed > 0 then
  271. pose = "Walking"
  272. char.Humanoid.WalkSpeed = 50
  273. end
  274. end)
  275. coroutine.wrap(function()
  276. while true do
  277. if char.Humanoid.Health > 1 then
  278. refit()
  279. end
  280. effect.Parent = char
  281. update.RenderStepped:wait()
  282. end
  283. end)()
  284. while true do
  285. wait()
  286. if pose == "Standing" and cananimate then
  287. walking = false
  288. for i = 0,1 , 0.05 do
  289. 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)
  290. 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)
  291. 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)
  292. 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)
  293. 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)
  294. 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)
  295. update.RenderStepped:wait()
  296. end
  297. end
  298. if pose == "Walking" and cananimate then
  299. walking = true
  300. for i = 0,1 ,0.05 do
  301. 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)
  302. 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)
  303. 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)
  304. 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)
  305. 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)
  306. 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)
  307. game:GetService("RunService").RenderStepped:wait()
  308. end
  309. walking = true
  310. for i = 0,1 ,0.05 do
  311. 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)
  312. 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)
  313. 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)
  314. 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)
  315. 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)
  316. 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)
  317. game:GetService("RunService").RenderStepped:wait()
  318. end
  319. walking = true
  320. end
  321. if pose == "Jumping" and cananimate then
  322. walking = false
  323. for i = 0,1 ,0.03 do
  324. 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)
  325. 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)
  326. 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)
  327. 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)
  328. human2.C0 = human2.C0 * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0))
  329. neck.C0 = neck.C0:lerp(necc,i)
  330. game:GetService("RunService").RenderStepped:wait()
  331. end
  332. end
  333. if pose == "Falling" and cananimate then
  334. walking = false
  335. for i = 0,1 ,0.03 do
  336. 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)
  337. 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)
  338. 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)
  339. 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)
  340. human2.C0 = human2.C0 * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0))
  341. neck.C0 = neck.C0:lerp(necc,i)
  342. game:GetService("RunService").RenderStepped:wait()
  343. end
  344. end
  345. if pose == "LongJump" and cananimate then
  346. for i = 0,1 ,0.05 do
  347. 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)
  348. 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)
  349. 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)
  350. 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)
  351. human2.C0 = human2.C0:lerp(human2co,i)
  352. neck.C0 = neck.C0:lerp(necc,i)
  353. update.RenderStepped:wait()
  354. end
  355. end
  356. if pose == "CrouchIdle" and cananimate then
  357. walking = false
  358. for i = 0,1 ,0.05 do
  359. 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)
  360. 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)
  361. 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)
  362. 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)
  363. 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)
  364. neck.C0 = neck.C0:lerp(necc,i)
  365. update.RenderStepped:wait()
  366. end
  367. end
  368. if pose == "CrouchWalk" and cananimate then
  369. walking = true
  370. for i = 0,1, 0.05 do
  371. 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)
  372. 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)
  373. 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)
  374. 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)
  375. 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)
  376. neck.C0 = neck.C0:lerp(necc,i)
  377. update.RenderStepped:wait()
  378. end
  379. for i = 0,1, 0.05 do
  380. 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)
  381. 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)
  382. 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)
  383. 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)
  384. 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)
  385. neck.C0 = neck.C0:lerp(necc,i)
  386. update.RenderStepped:wait()
  387. end
  388. end
  389. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement