Advertisement
HenloMyDude

its only on paste because of studio ok

Oct 24th, 2019
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.02 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. 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
  5.  
  6. local plr = owner
  7. local mouse = plr:GetMouse()
  8. local char = plr.Character
  9. local hum = char:FindFirstChildOfClass'Humanoid'
  10. local hed = char.Head
  11. local root = char:FindFirstChild'HumanoidRootPart'
  12. local rootj = root.RootJoint
  13. local tors = char.Torso
  14. local ra = char["Right Arm"]
  15. local la = char["Left Arm"]
  16. local rl = char["Right Leg"]
  17. local ll = char["Left Leg"]
  18. local neck = tors["Neck"]
  19. local mouse = plr:GetMouse()
  20. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  21. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  22. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  23. local maincolor = BrickColor.new("Really black")
  24. local disach = false
  25. local epicmode = false
  26.  
  27. cam = game.Workspace.CurrentCamera
  28. CF = CFrame.new
  29. angles = CFrame.Angles
  30. attack = false
  31. Euler = CFrame.fromEulerAnglesXYZ
  32. Rad = math.rad
  33. IT = Instance.new
  34. BrickC = BrickColor.new
  35. Cos = math.cos
  36. Acos = math.acos
  37. Sin = math.sin
  38. Asin = math.asin
  39. Abs = math.abs
  40. Mrandom = math.random
  41. Floor = math.floor
  42.  
  43. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  44. RW = Instance.new("Weld")
  45. LW = Instance.new("Weld")
  46. RH = tors["Right Hip"]
  47. LH = tors["Left Hip"]
  48. RW.Name = "RW"
  49. RW.Part0 = tors
  50. RW.C0 = CF(1.5, 0.5, 0)
  51. RW.C1 = CF(0, 0.5, 0)
  52. RW.Part1 = ra
  53. RW.Parent = tors
  54. LW.Name = "LW"
  55. LW.Part0 = tors
  56. LW.C0 = CF(-1.5, 0.5, 0)
  57. LW.C1 = CF(0, 0.5, 0)
  58. LW.Part1 = la
  59. LW.Parent = tors
  60. Effects = {}
  61. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  62. local wld = Instance.new("Weld", wp1)
  63. wld.Part0 = wp0
  64. wld.Part1 = wp1
  65. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  66. end
  67. newWeld(tors, ll, -0.5, -1, 0)
  68. ll.Weld.C1 = CFrame.new(0, 1, 0)
  69. newWeld(tors, rl, 0.5, -1, 0)
  70. rl.Weld.C1 = CFrame.new(0, 1, 0)
  71.  
  72. ArtificialHB = Instance.new("BindableEvent", script)
  73. ArtificialHB.Name = "Heartbeat"
  74. script:WaitForChild("Heartbeat")
  75.  
  76. frame = 1 / 60
  77. tf = 0
  78. allowframeloss = false
  79. tossremainder = false
  80.  
  81.  
  82. lastframe = tick()
  83. script.Heartbeat:Fire()
  84.  
  85.  
  86. game:GetService("RunService").Heartbeat:connect(function(s, p)
  87. tf = tf + s
  88. if tf >= frame then
  89. if allowframeloss then
  90. script.Heartbeat:Fire()
  91. lastframe = tick()
  92. else
  93. for i = 1, math.floor(tf / frame) do
  94. script.Heartbeat:Fire()
  95. end
  96. lastframe = tick()
  97. end
  98. if tossremainder then
  99. tf = 0
  100. else
  101. tf = tf - frame * math.floor(tf / frame)
  102. end
  103. end
  104. end)
  105.  
  106. function swait(num)
  107. if num == 0 or num == nil then
  108. game:service("RunService").Stepped:wait(0)
  109. else
  110. for i = 0, num do
  111. game:service("RunService").Stepped:wait(0)
  112. end
  113. end
  114. end
  115. function thread(f)
  116. coroutine.resume(coroutine.create(f))
  117. end
  118. function clerp(a, b, t)
  119. local qa = {
  120. QuaternionFromCFrame(a)
  121. }
  122. local qb = {
  123. QuaternionFromCFrame(b)
  124. }
  125. local ax, ay, az = a.x, a.y, a.z
  126. local bx, by, bz = b.x, b.y, b.z
  127. local _t = 1 - t
  128. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  129. end
  130. function QuaternionFromCFrame(cf)
  131. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  132. local trace = m00 + m11 + m22
  133. if trace > 0 then
  134. local s = math.sqrt(1 + trace)
  135. local recip = 0.5 / s
  136. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  137. else
  138. local i = 0
  139. if m00 < m11 then
  140. i = 1
  141. end
  142. if m22 > (i == 0 and m00 or m11) then
  143. i = 2
  144. end
  145. if i == 0 then
  146. local s = math.sqrt(m00 - m11 - m22 + 1)
  147. local recip = 0.5 / s
  148. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  149. elseif i == 1 then
  150. local s = math.sqrt(m11 - m22 - m00 + 1)
  151. local recip = 0.5 / s
  152. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  153. elseif i == 2 then
  154. local s = math.sqrt(m22 - m00 - m11 + 1)
  155. local recip = 0.5 / s
  156. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  157. end
  158. end
  159. end
  160. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  161. local xs, ys, zs = x + x, y + y, z + z
  162. local wx, wy, wz = w * xs, w * ys, w * zs
  163. local xx = x * xs
  164. local xy = x * ys
  165. local xz = x * zs
  166. local yy = y * ys
  167. local yz = y * zs
  168. local zz = z * zs
  169. 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))
  170. end
  171. function QuaternionSlerp(a, b, t)
  172. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  173. local startInterp, finishInterp
  174. if cosTheta >= 1.0E-4 then
  175. if 1 - cosTheta > 1.0E-4 then
  176. local theta = math.acos(cosTheta)
  177. local invSinTheta = 1 / Sin(theta)
  178. startInterp = Sin((1 - t) * theta) * invSinTheta
  179. finishInterp = Sin(t * theta) * invSinTheta
  180. else
  181. startInterp = 1 - t
  182. finishInterp = t
  183. end
  184. elseif 1 + cosTheta > 1.0E-4 then
  185. local theta = math.acos(-cosTheta)
  186. local invSinTheta = 1 / Sin(theta)
  187. startInterp = Sin((t - 1) * theta) * invSinTheta
  188. finishInterp = Sin(t * theta) * invSinTheta
  189. else
  190. startInterp = t - 1
  191. finishInterp = t
  192. end
  193. 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
  194. end
  195. function rayCast(Position, Direction, Range, Ignore)
  196. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  197. end
  198. local RbxUtility = LoadLibrary("RbxUtility")
  199. local Create = RbxUtility.Create
  200. change = 1
  201. sine = 0
  202. movelegs = false
  203. rK = false
  204. DBT = false
  205. Speed = 16
  206.  
  207. function Land(SR)
  208. spawn(function()
  209. if DBT == false and attack == true and SR < -15 and rK == false then
  210. DBT = true
  211. Speed = Speed / 2
  212. Jump = 0
  213. --Cso("268933900", root, 6.5, 1)
  214. for i = 0, 2, 0.1 do
  215. swait()
  216. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
  217. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15)
  218. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, 0.1 - 0.1 * Cos(sine / 20), -0.3) * angles(Rad(15), Rad(-8 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(2)), 0.15)
  219. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, 0.1 - 0.1 * Cos(sine / 20), -0.3) * angles(Rad(15), Rad(8 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(-2)), 0.15)
  220. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(20), Rad(-0.6), Rad(25 + 4.5 * Sin(sine / 20))), 0.15)
  221. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(20), Rad(-0.6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.15)
  222. end
  223. attack = false
  224. spawn(function()
  225. wait(0.1)
  226. Speed = 16
  227. Jump = 80
  228. DBT = false
  229. end)
  230. else
  231. attack = false
  232. end
  233. end)
  234. end
  235.  
  236. function what()
  237. if epicmode then
  238. epicmode = false
  239. else
  240. epicmode = true
  241. end
  242. end
  243.  
  244. rap = Instance.new("Sound",hed) rap.Volume = 10 rap.SoundId = "rbxassetid://2762885847"
  245.  
  246. function tyler()
  247. if epicmode == true then
  248.  
  249. attack = true
  250. movelegs = true
  251. screm = Instance.new("Sound",hed) screm.Volume = 10 screm.SoundId = "rbxassetid://1712117848" screm:Play()
  252. change = 1
  253. repeat
  254. swait()
  255. change = 1.15
  256. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
  257. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-90), Rad(0), Rad(0)), 0.05)
  258. RW.C0 = CF(1.5, 0.5, -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(0), Rad(0 + 2 * Cos(sine / 2)))
  259. LW.C0 = CF(-1.5, 0.5, -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(0 + 2 * Cos(sine / 2)))
  260. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.05)
  261. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.05)
  262. until screm.Playing == false
  263. attack = false
  264. movelegs = false
  265.  
  266. end
  267. end
  268.  
  269. keyhold = false
  270. function dk()
  271. if epicmode == true then
  272.  
  273. attack = true
  274. rap:Play()
  275. repeat
  276. swait()
  277. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
  278. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
  279. RW.C0 = CF(1.5, 0.5, -0.0) * angles(Rad(0), Rad(0), Rad(90))
  280. LW.C0 = CF(-1.5, 0.5, -0.0) * angles(Rad(0), Rad(0), Rad(-90))
  281. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.05)
  282. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.05)
  283. until keyhold == false
  284. rap:Stop()
  285. attack = false
  286.  
  287. end
  288. end
  289.  
  290. mouse.KeyDown:connect(function(key)
  291. keyhold = true
  292. if key == "e" then
  293. what()
  294. end
  295. if key == "q" then
  296. tyler()
  297. end
  298. if key == "t" then
  299. dk()
  300. end
  301. end)
  302. mouse.KeyUp:connect(function(key)
  303. keyhold = false
  304. end)
  305.  
  306. while true do
  307. swait()
  308. sine = sine + change
  309. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  310. local velderp = root.Velocity.y
  311. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  312. neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(root.Position, (CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6), char)
  313. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  314. local State = (hum.PlatformStand and 'Paralyzed' or hum.Sit and 'Sit' or not hitfloor and root.Velocity.y < -1 and "Fall" or not hitfloor and root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
  315. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  316. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  317. if (State == 'Idle') then
  318. --local hell = GetClientProperty(MUSIC,'PlaybackLoudness')/15
  319. if attack == false and epicmode == false then
  320. change = 0.5 --+ hell/35
  321. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
  322. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 - 6 * Cos(sine / 8)), Rad(0 - 10 * Sin(sine / 12)), Rad(-0 + 5 * Cos(sine / 16))), 0.05)
  323. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.05)
  324. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.05)
  325. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.05)
  326. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.05)
  327. elseif attack == false and epicmode == true then
  328. change = 1.15 --+ hell/35
  329. rootj.C0 = RootCF * CF(0, 0, -1 + 1 * Cos(sine / 1))
  330. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 - 6 * Cos(sine / 8)), Rad(0 - 10 * Sin(sine / 12)), Rad(-0 + 5 * Cos(sine / 16))), 0.05)
  331. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.05)
  332. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.05)
  333. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, 0 - 1 * Cos(sine / 1), -0.5) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 1)
  334. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, 0 - 1 * Cos(sine / 1), -0.5) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 1)
  335. end
  336. elseif (State == 'Jump') then
  337. if attack == false then
  338. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10 + 3 * Cos(sine / 20)), Rad(0), Rad(0)), 0.1)
  339. neck.C0 = clerp(neck.C0, necko * CF(0, 0, ((1) - 1)) * angles(Rad(-50 + 6 * Sin(sine / 20)), Rad(0), Rad(0 + 9 * Cos(sine / 38))), 0.1)
  340. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.8 - 0.1 * Cos(sine / 20) - Rad(0) , -0.3) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(-20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  341. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.5 - 0.1 * Cos(sine / 20) + Rad(0) , -0.7) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  342. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(170 + 10 * Cos(sine / 20)), Rad(10), Rad(10 + 6 * Sin(sine / 20))), 0.2)
  343. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(170 + 10 * Cos(sine / 20)), Rad(-10), Rad(-10 - 6 * Sin(sine / 20))), 0.2)
  344. end
  345. elseif (State == 'Fall') then
  346. if neartouch ~= nil and attack == false then
  347. attack = true
  348. Land(root.Velocity.y)
  349. end
  350. if attack == false then
  351. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(0), Rad(0)), 0.1)
  352. neck.C0 = clerp(neck.C0, necko * CF(0, 0, ((1) - 1)) * angles(Rad(20 + 6 * Sin(sine / 20)), Rad(0), Rad(0 + 9 * Cos(sine / 38))), 0.1)
  353. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.1 * Cos(sine / 20) - Rad(0) , 0) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(-20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  354. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 - 0.1 * Cos(sine / 20) + Rad(0) , 0) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  355. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(100 + 10 * Cos(sine / 20)), Rad(10), Rad(45 + 6 * Sin(sine / 20))), 0.1)
  356. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(100 + 10 * Cos(sine / 20)), Rad(-10), Rad(-45 - 6 * Sin(sine / 20))), 0.1)
  357. end
  358. elseif (State == 'Walk') then
  359. change = 0.9
  360. if attack == false then
  361. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0) * angles(Rad(0 + 0 * Sin(sine / (WALKSPEEDVALUE / 2))) -Rad(TiltVelocity.z) * 1, Rad(0) -Rad(TiltVelocity.x) * 0.4, Rad(0 - 0 * Cos(sine / WALKSPEEDVALUE )) + root.RotVelocity.Y / 75), 0.1)
  362. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0) +Rad(TiltVelocity.z), Rad(0), Rad(0) -Rad(TiltVelocity.x) * 3), 0.1)
  363. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.35 * Cos(sine / WALKSPEEDVALUE) / 2, 0) * angles(Rad(-5 - 10 * Cos(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*-math.rad(TiltVelocity.x)*5.5)), 0.3)
  364. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 + 0.35 * Cos(sine / WALKSPEEDVALUE) / 2, 0) * angles(Rad(-5 + 10 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5)), 0.3)
  365. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / WALKSPEEDVALUE), 0) * angles(Rad(-5 + 10 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / 75 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*-math.rad(TiltVelocity.x)*5.5)), 0.3)
  366. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / WALKSPEEDVALUE), 0) * angles(Rad(-5 - 10 * Cos(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / -75 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5)), 0.3)
  367. elseif attack == true and movelegs == true then
  368. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.35 * Cos(sine / WALKSPEEDVALUE) / 2, 0) * angles(Rad(-5 - 10 * Cos(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*-math.rad(TiltVelocity.x)*5.5)), 0.3)
  369. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 + 0.35 * Cos(sine / WALKSPEEDVALUE) / 2, 0) * angles(Rad(-5 + 10 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5)), 0.3)
  370. end
  371. end
  372. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement