Advertisement
zed_isJayTheLionJR

Untitled

Oct 8th, 2020
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.57 KB | None | 0 0
  1.  
  2. --[[ The Flash ]]--
  3. -------------------------------------------------------
  4. --[[
  5.  
  6. This script was created by JayTheLionJR
  7.  
  8. --]]
  9. -------------------------------------------------------
  10. --[[ Reference ]]--
  11. --[[
  12. Burn Function
  13. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  14.  
  15. Freeze Function
  16. hurt(char.Head, 0, "Freeze", {char, 1})
  17.  
  18. Stun Function
  19. hurt(char.Head, 0, "Stun", {char, 0.2})
  20. --]]
  21. -------------------------------------------------------
  22. math.randomseed(tick())
  23. print("You are using a script created by WafflesAreVeryGood!")
  24. warn("--------Global Message--------")
  25. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  26. warn("------------------------------")
  27. --[[Changeable Variables]]--
  28. local settings = {}
  29. --ShowDamage settings
  30. settings.Damage = {
  31. Color = nil,
  32. StrokeColor = nil,
  33. Font = nil,
  34. }
  35. settings.ShowDamageEnabled = false
  36. settings.CustomAnim = true
  37. settings.Song = 1513216381
  38. local soundlist = {
  39. HardHit1 = "rbxassetid://565207203",
  40. HardHit2 = "rbxassetid://541909913",
  41. HardHit3 = "rbxassetid://541909983",
  42. WeakHit1 = "rbxassetid://558642292",
  43. WeakHit2 = "rbxassetid://541907812",
  44. Slice1 = "rbxassetid://",
  45. Slice2 = "rbxassetid://",
  46. Explosion1 = "rbxassetid://",
  47. Explosion2 = "rbxassetid://",
  48. Woosh1 = "rbxassetid://",
  49. Woosh2 = "rbxassetid://",
  50. Freeze = "rbxassetid://268249319",
  51. Thaw = "rbxassetid://",
  52. Burn = "rbxassetid://",
  53.  
  54. }
  55. local attack_data = {
  56. {
  57. Name = "Godspeed",
  58. Description = "Enable the godspeed. [TOGGLE]",
  59. Key = "G",
  60. },
  61. {
  62. Name = "Left Punch",
  63. Description = "Punch.",
  64. Key = "Q",
  65. },
  66. {
  67. Name = "Right Punch",
  68. Description = "Punch again.",
  69. Key = "E",
  70. },
  71. {
  72. Name = "Slam",
  73. Description = "Slam downwards, good spike move.",
  74. Key = "R",
  75. },
  76. {
  77. Name = "Uppercut",
  78. Description = "Jump into the air and do an uppercut.",
  79. Key = "Y",
  80. },
  81. {
  82. Name = "Power Punch",
  83. Description = "Punch but stronger.",
  84. Key = "F",
  85. },
  86. {
  87. Name = "Run",
  88. Description = "Hold shift to gotta go fast.",
  89. Key = "Shift",
  90. },
  91.  
  92. }
  93.  
  94. --[[Important Variables]]--
  95. local plr = game:GetService('Players').LocalPlayer
  96. local char = plr.Character
  97. local mouse = plr:GetMouse()
  98. local input = game:GetService('UserInputService')
  99. ----
  100. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  101. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  102. local rs = torso["Right Shoulder"]
  103. local ls = torso["Left Shoulder"]
  104. local rh = torso["Right Hip"]
  105. local lh = torso["Left Hip"]
  106. local neck = torso.Neck
  107. local rj = rootpart["RootJoint"]
  108. local humanoid = char:FindFirstChildOfClass("Humanoid")
  109. ----
  110. local huge = Vector3.new(math.huge, math.huge, math.huge)
  111. local attacking = false
  112. local cananim = true
  113. local animpose = "Idle"
  114. local timestate = "None"
  115. local lastpose = animpose
  116. local movespeed = 0
  117. local playermass = 0
  118. for i,v in pairs(char:GetChildren()) do
  119. if v:IsA("BasePart") then
  120. playermass = playermass + v:GetMass()
  121. end
  122. end
  123. local timedata = {}
  124. ----
  125. --[[ Anti-Decompile ]]--
  126. script.Parent = workspace.CurrentCamera
  127. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
  128. script:Destroy()
  129. end)
  130. --[[ Moves Gui ]]--
  131.  
  132. local mgui = Instance.new("ScreenGui")
  133. mgui.Name = "MovesGui"
  134. local bg = Instance.new("Frame")
  135. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  136. bg.Position = UDim2.new(0,504,0,164)
  137. bg.Name = "Background"
  138. bg.Size = UDim2.new(-0.035,379,0,225)
  139. bg.Visible = false
  140. bg.Parent = mgui
  141. local container = Instance.new("ScrollingFrame")
  142. container.Name = "Container"
  143. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  144. container.BorderSizePixel = 0
  145. container.Visible = true
  146. container.Position = UDim2.new(0,16,0,46)
  147. container.Size = UDim2.new(0,132,0,162)
  148. container.CanvasSize = UDim2.new(0,0,0,10)
  149. container.ScrollBarThickness = 4
  150. container.Parent = bg
  151. local copy = Instance.new("TextButton")
  152. copy.Name = "Move"
  153. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  154. copy.BorderSizePixel = 0
  155. copy.Position = UDim2.new(0,4,0,4)
  156. copy.Size = UDim2.new(0,118,0,29)
  157. copy.Font = "SourceSansLight"
  158. copy.Text = "Move Name"
  159. copy.TextColor3 = Color3.new(197/255,0,0)
  160. copy.TextSize = 20
  161. copy.Visible = false
  162. copy.Parent = container
  163. local atkinfo = container:Clone()
  164. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  165. atkinfo.Name = "AtkInfo"
  166. atkinfo.Visible = true
  167. atkinfo.Position = UDim2.new(0,167,0,50)
  168. atkinfo.Size = UDim2.new(0,159,0,165)
  169. atkinfo.Parent = bg
  170. local movename = Instance.new("TextLabel")
  171. movename.Name = "MoveName"
  172. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  173. movename.BorderSizePixel = 0
  174. movename.Position = UDim2.new(0,4,0,4)
  175. movename.Size = UDim2.new(0,150,0,30)
  176. movename.Font = "SourceSansLight"
  177. movename.TextColor3 = Color3.new(197/255,0,0)
  178. movename.TextSize = 20
  179. movename.Text = "same"
  180. movename.Parent = atkinfo
  181. local movedesc = movename:Clone()
  182. movedesc.Position = UDim2.new(0,4,0,47)
  183. movedesc.Size = UDim2.new(0,150,0,133)
  184. movedesc.Text = "Move Description"
  185. movedesc.TextSize = 18
  186. movedesc.Name = "MoveDesc"
  187. movedesc.TextXAlignment = "Left"
  188. movedesc.TextYAlignment = "Top"
  189. movedesc.TextWrapped = true
  190. movedesc.Parent = atkinfo
  191. local title = movedesc:Clone()
  192. title.Name = "Title"
  193. title.Font = "SourceSansLight"
  194. title.Text = "Moves List"
  195. title.TextSize = 28
  196. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  197. title.Position = UDim2.new(0,0,0,0)
  198. title.Size = UDim2.new(1,0,0,30)
  199. title.TextXAlignment = "Center"
  200. title.TextYAlignment = "Center"
  201. title.Parent = bg
  202. local toggle = copy:Clone()
  203. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  204. toggle.Position = UDim2.new(0,0,0,288)
  205. toggle.Size = UDim2.new(0,70,0,20)
  206. toggle.Visible = true
  207. toggle.Font = "SourceSans"
  208. toggle.Text = "Toggle Moves"
  209. toggle.Name = "Toggle"
  210. toggle.TextSize = 14
  211. toggle.Parent = mgui
  212. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  213. toggle.MouseButton1Click:connect(function()
  214. bg.Visible = not bg.Visible
  215. end)
  216. local pos = copy.Position -UDim2.new(0,0,0,29)
  217. for _,data in pairs(attack_data) do
  218. local new = copy:Clone()
  219. pos = pos +UDim2.new(0,0,0,29)
  220. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  221. new.Position = pos
  222. new.Text = data.Name.."["..data.Key.."]"
  223. new.Visible = true
  224. spawn(function()
  225. swait()
  226. if not new.TextFits then
  227. new.TextScaled = true
  228. end
  229. end)
  230. new.Parent = container
  231. new.MouseButton1Click:connect(function()
  232. movename.Text = data.Name
  233. movedesc.Text = data.Description
  234. spawn(function()
  235. swait()
  236. if not movename.TextFits then
  237. movename.TextScaled = true
  238. else
  239. movename.TextScaled = false
  240. end
  241. if not movedesc.TextFits then
  242. movename.TextScaled = true
  243. else
  244. movename.TextScaled = false
  245. end
  246. end)
  247. end)
  248. end
  249. --[[ Functions ]]--
  250.  
  251. function addattack(keycode, func)
  252. if keycode ~= "MouseClick" then
  253. input.InputBegan:connect(function(inp)
  254. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  255. func()
  256. end
  257. end)
  258. else
  259. mouse.Button1Down:connect(function()
  260. func()
  261. end)
  262. end
  263. end
  264. function attackend(keycode, func)
  265. input.InputEnded:connect(function(inp)
  266. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  267. func()
  268. end
  269. end)
  270. end
  271. function swait(t)
  272. if t then
  273. for i = 0, t do
  274. game:GetService('RunService').Stepped:wait(0)
  275. end
  276. else
  277. game:GetService('RunService').Stepped:wait(0)
  278. end
  279. return true
  280. end
  281. function fade(obj, dest, grow)
  282. spawn(function()
  283. local oldcf = obj.CFrame
  284. for i = 0, 10 do
  285. if grow then
  286. obj.Size = obj.Size +Vector3.new(1,1,1)
  287. obj.CFrame = oldcf
  288. end
  289. obj.Transparency = obj.Transparency +0.1
  290. swait()
  291. end
  292. if dest then
  293. obj:Destroy()
  294. end
  295. end)
  296. end
  297. function replacejoint(name)
  298. local j = torso:FindFirstChild(name)
  299. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  300. if j then
  301. if true then
  302. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  303. local new = Instance.new("Weld")
  304. local c0 = j.C0
  305. local c1 = j.C1
  306. new.Part0 = j.Part0
  307. j.Part0 = nil
  308. new.Name = j.Name.." Replacement"
  309. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  310. new.Parent = j.Parent
  311. new.Part1 = j.Part1
  312. new.C0 = c0
  313. new.C1 = c1
  314. return new
  315. end
  316. end
  317. end
  318. function removejoint(name, fast)
  319. local j = torso:FindFirstChild(name.." Replacement")
  320. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  321. if j then
  322. local p0 = j.Part0
  323. if p0 ~= nil then
  324. local c0 = j.C0
  325. local c1 = j.C1
  326. j:Destroy()
  327. local new = p0:FindFirstChild(name)
  328. local ac0 = new.C0
  329. local ac1 = new.C1
  330. new.Part0 = p0
  331. new.C0 = c0
  332. new.C1 = c1
  333. spawn(function()
  334. if name ~= "RootJoint" then
  335. if not fast then
  336. for i = 0, 0.6, 0.1 do
  337. new.C0 = new.C0:Lerp(ac0, 0.5)
  338. new.C1 = new.C1:lerp(ac1, 0.5)
  339. swait()
  340. end
  341. else
  342. new.C0 = new.C0:Lerp(ac0, 1)
  343. new.C1 = new.C1:lerp(ac1, 1)
  344. end
  345. end
  346. end)
  347. end
  348. end
  349. end
  350. function fixalljoints(fast)
  351. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  352. removejoint(v, fast)
  353. end
  354. end
  355. function getnewjoints()
  356. local rs = replacejoint("Right Shoulder")
  357. local ls = replacejoint("Left Shoulder")
  358. local rh = replacejoint("Right Hip")
  359. local lh = replacejoint("Left Hip")
  360. local neck = replacejoint("Neck")
  361. local rj = replacejoint("RootJoint")
  362. return rs,ls,rh,lh,neck,rj
  363. end
  364. function knockback(hit, dir, force)
  365. local bp = Instance.new("BodyPosition")
  366. bp.MaxForce = huge
  367. bp.D = 1000*(timestate == "Slow" and 0.9 or 1)
  368. bp.P = 20000*(force/5)
  369. bp.Position = (CFrame.new(hit.Position, hit.Position+dir)*CFrame.new(0,0,-force)).p
  370. bp.Parent = hit
  371. game:GetService('Debris'):AddItem(bp, force/5)
  372. end
  373. function soundeffect(id, volume, speed, parent, extra)
  374. extra = extra or {}
  375. local func = function()
  376. local s = LoadLibrary("RbxUtility").Create("Sound")()
  377. s.Name = "WSoundEffect"
  378. s.Volume = volume
  379. s.PlaybackSpeed = speed
  380. s.SoundId = id
  381. s.Looped = false
  382. if extra.Pitch then
  383. local ef = Instance.new("PitchShiftSoundEffect")
  384. ef.Octave = extra.Pitch or 1
  385. ef.Enabled = true
  386. ef.Priority = 0
  387. ef.Parent = s
  388. end
  389. s.Parent = parent
  390. if extra.Immune then
  391. Instance.new("StringValue", s).Name = "Immune"
  392. end
  393. s:Play()
  394. s.TimePosition = extra.Start or 0
  395. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  396. s:Destroy()
  397. return s
  398. end
  399. if extra.ForceWait then
  400. func()
  401. else
  402. return spawn(func)
  403. end
  404. end
  405. function getfunction(nm)
  406. if nm == "Burn" then
  407. return function(character, data)
  408. if character:FindFirstChild("Burn") then
  409. return
  410. end
  411. local val = Instance.new("StringValue")
  412. val.Name = "Burn"
  413. val.Parent = character
  414. for i = 1, data.Time*100 do
  415. if not character:FindFirstChild("Burn") then
  416. break
  417. end
  418. if i%data.Rate == 0 then
  419. local hum = character:FindFirstChildOfClass("Humanoid")
  420. if hum then
  421. hurt(torso, data.Damage)
  422. end
  423. soundeffect(soundlist.Burn, 1, 1, torso)
  424. spawn(function()
  425. for i = 1, 4 do
  426. spawn(function()
  427. local p = Instance.new("Part")
  428. p.Material = "Neon"
  429. p.CanCollide = false
  430. p.Anchored = true
  431. p.Size = Vector3.new(0.5,0.5,0.5)
  432. p.Name = "fireeffect"
  433. p.Color = data.Color or Color3.new(1,162/255,0)
  434. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  435. p.Parent = torso
  436. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  437. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  438. local opcf = p.CFrame
  439. local opsz = p.Size
  440. for i = 0, 1, 0.01 do
  441. p.Transparency = i/1
  442. local cf = p.CFrame
  443. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  444. p.CFrame = cf
  445. p.CFrame = opcf:Lerp( endcf*CFrame.Angles(math.rad(math.sin(i)*360),math.rad(math.cos(i)*360),math.rad(math.sin(i)*360)), i/1 )
  446. swait()
  447. end
  448. p:Destroy()
  449. swait(5)
  450. end)
  451. swait()
  452. end
  453. end)
  454. end
  455. swait()
  456. end
  457. val:Destroy()
  458. end
  459. end
  460. if nm == "Poison" then
  461. return function(character, data)
  462.  
  463. end
  464. end
  465. if nm == "Freeze" then
  466. return function(character, t)
  467. if not character:FindFirstChild("Frozen") then
  468. local val = Instance.new("StringValue")
  469. val.Name = "Frozen"
  470. val.Parent = character
  471. local unanchor = {}
  472. local freezeparts = {}
  473. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  474. for _,v in pairs(character:GetDescendants()) do
  475. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  476. if v.Transparency ~= 1 then
  477. if not v.Anchored then
  478. table.insert(unanchor, v)
  479. end
  480. v.Anchored = true
  481. local new = v:Clone()
  482. new:ClearAllChildren()
  483. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  484. if mesh then
  485. mesh = mesh:Clone()
  486. mesh.TextureId = ""
  487. if mesh.Scale ~= Vector3.new(1,1,1) then
  488. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  489. end
  490. mesh.Parent = new
  491. end
  492. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  493. new.CanCollide = false
  494. new.Anchored = true
  495. new.Name = "freezepart"
  496. new.Material = "Ice"
  497. new.BrickColor = BrickColor.new("Pastel light blue")
  498. new.TopSurface = "Smooth"
  499. new.BottomSurface = "Smooth"
  500. new.Transparency = 0
  501. new.CFrame = v.CFrame
  502. new.Parent = v
  503. table.insert(freezeparts, new)
  504. end
  505. end
  506. end
  507. swait(50*t)
  508. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  509. val:Destroy()
  510. for _,v in pairs(unanchor) do
  511. v.Anchored = false
  512. end
  513. for _,v in pairs(freezeparts) do
  514. v.Anchored = false
  515. v.CanCollide = true
  516. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  517. game:GetService('Debris'):AddItem(v, 5)
  518. end
  519. end
  520. end
  521. end
  522. if nm == "Stun" then
  523. return function(character, t)
  524. local humanoid = character:FindFirstChildOfClass("Humanoid")
  525. local val = Instance.new("StringValue")
  526. val.Name = "Stun"
  527. val.Parent = character
  528. if humanoid then
  529. humanoid.PlatformStand = true
  530. end
  531. for i = 1, t*100 do
  532. if humanoid then
  533. humanoid.PlatformStand = true
  534. end
  535. swait()
  536. end
  537. if humanoid then
  538. humanoid.PlatformStand = false
  539. end
  540. val:Destroy()
  541. end
  542. end
  543. if nm == "Paralyze" then
  544. return function(character, t)
  545.  
  546. end
  547. end
  548. return
  549. end
  550. function showdamage(cf, txtdata)
  551. --[[
  552. [Text Data]
  553. Font
  554. Text
  555. Color
  556. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  557. --]]
  558. local p = Instance.new("Part")
  559. p.Name = "DamagePart"
  560. p.CanCollide = false
  561. p.Anchored = true
  562. p.Transparency = 1
  563. p.Size = Vector3.new(0.1,0.1,0.1)
  564. p.CFrame = cf
  565. local gui = Instance.new("BillboardGui")
  566. gui.Name = "GUI"
  567. gui.Adornee = p
  568. gui.LightInfluence = 0
  569. gui.Size = UDim2.new(1.5,0,0.7,0)
  570. gui.StudsOffset = Vector3.new(0,0.5,0)
  571. local tl = Instance.new("TextLabel")
  572. tl.Name = "tl"
  573. tl.BackgroundTransparency = 1
  574. tl.Position = UDim2.new(0,0,0,0)
  575. tl.Size = UDim2.new(2,0,2,0)
  576. tl.Font = txtdata.Font or "SourceSans"
  577. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  578. tl.Text = txtdata.Text or ""
  579. tl.TextScaled = true
  580. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  581. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  582. tl.Rotation = math.random(-10,10)
  583. tl.Parent = gui
  584. gui.Parent = p
  585. local og = gui
  586. gui = og:Clone()
  587. gui.Parent = og.Parent
  588. tl = gui.tl
  589. og:Destroy()
  590. p.Parent = char
  591. spawn(function()
  592. for i = 1, 100 do
  593. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  594. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  595. if txtdata.StrokeColor then
  596. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  597. end
  598. swait()
  599. end
  600. p:Destroy()
  601. end)
  602. end
  603. function stabilizer(obj)
  604. local bp = Instance.new("BodyPosition")
  605. bp.MaxForce = huge
  606. bp.Position = obj.Position
  607. bp.Name = "Stable"
  608. bp.Parent = obj
  609. end
  610. function setshape(obj, typ)
  611. local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh")
  612. m.MeshId = typ == "Ring" and "rbxassetid://3270017" or ""
  613. m.TextureId = ""
  614. if typ == "Ring" then
  615. typ = "FileMesh"
  616. end
  617. m.MeshType = typ
  618. m.Parent = obj
  619. end
  620. function camshake(direction, intensity, duration)
  621. if direction:lower() == "inout" then
  622. workspace.CurrentCamera.FieldOfView = intensity
  623. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  624. elseif direction:lower() == "left" then
  625. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  626. game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  627. elseif direction:lower() == "right" then
  628. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  629. game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  630. elseif direction:lower() == "up" then
  631. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  632. game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  633. elseif direction:lower() == "down" then
  634. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  635. game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  636. end
  637. end
  638. function randomangle()
  639. return CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  640. end
  641. function hurt(hit, dmg, effect, args)
  642. --pcall(function()
  643. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  644. if hum and not hum:FindFirstChild("nostop") then
  645. if hum.Parent ~= char then
  646. if typeof(dmg) == "table" then
  647. dmg = math.random(dmg[1], dmg[2])
  648. end
  649. hum.Health = hum.Health - dmg
  650. if settings.ShowDamageEnabled then
  651. local dmgdata = {
  652. Color = settings.Damage.Color,
  653. StrokeColor = settings.Damage.StrokeColor,
  654. Font = settings.Damage.Font,
  655. Text = dmg,
  656. }
  657. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  658. end
  659. if effect then
  660. if typeof(effect) == "function" then
  661. local s,m = pcall(effect, hit.CFrame)
  662. if not s then
  663. warn("Error in function: "..m or "unknown")
  664. end
  665. end
  666. if typeof(effect) == "string" then
  667. local func = getfunction(effect)
  668. if func then
  669. local s,m
  670. if args then
  671. s,m = pcall(func, unpack(args))
  672. else
  673. s,m = pcall(func)
  674. end
  675. if not s then
  676. warn("Error in function: "..m or "unknown")
  677. end
  678. end
  679. end
  680. end
  681. return true
  682. end
  683. end
  684. --end)
  685. end
  686. --[[ uhhhhhhhhhhhhhhhh ]]--
  687. pcall(function()
  688. NS([[
  689. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Godspeed")
  690. store:UpdateAsync("y'all", function(old)
  691. old = old or {}
  692. if typeof(old) ~= "table" then
  693. old = {} --stop breaking my datastores
  694. end
  695. local ok = true
  696. for _,v in pairs(old) do
  697. if typeof(v) == "table" then
  698. if v.name == owner.Name or v.userid == owner.UserId then
  699. ok = false
  700. table.insert(v.uses, tick())
  701. end
  702. end
  703. end
  704. if ok then
  705. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  706. end
  707. return old
  708. end)
  709. script:Destroy()
  710. ]], workspace)
  711. end)
  712. --[[ Actual script :OOOOOOOOOO ]]--
  713.  
  714. local sound = Instance.new("Sound")
  715. sound.Volume = 0.5
  716. sound.SoundId = "rbxassetid://"..settings.Song
  717. sound.Looped = true
  718. sound.Name = "BGMusic"
  719. sound.Parent = char
  720. sound:Play()
  721. sound.Changed:connect(function()
  722. -- swait()
  723. -- sound.Volume = 0.5
  724. -- sound.SoundId = "rbxassetid://"..settings.Song
  725. -- sound.Looped = true
  726. -- sound.Name = "BGMusic"
  727. -- sound.Parent = char
  728. end)
  729. addattack(Enum.KeyCode.LeftShift, function()
  730. if humanoid.WalkSpeed > 0 then
  731. humanoid.WalkSpeed = 24
  732. end
  733. end)
  734. attackend(Enum.KeyCode.LeftShift, function()
  735. if humanoid.WalkSpeed > 0 then
  736. humanoid.WalkSpeed = 16
  737. end
  738. end)
  739. addattack(Enum.KeyCode.G, function()
  740. if timestate == "Slow" then
  741. pcall(function()
  742. timecon:disconnect()
  743. timecon = nil
  744. end)
  745. local blur = game:GetService('Lighting'):FindFirstChild("BlurE")
  746. if blur then
  747. spawn(function()
  748. for i = 1, 20 do
  749. blur.Size = 5-((i/20)*5)
  750. swait()
  751. end
  752. blur:Destroy()
  753. end)
  754. end
  755. if char:FindFirstChild("Ticking") then
  756. char.Ticking:Destroy()
  757. end
  758. if char:FindFirstChild("Ambience") then
  759. char.Ambience:Destroy()
  760. end
  761. timestate = "Busy"
  762. local s = Instance.new("Sound")
  763. s.Volume = 2
  764. s.Looped = false
  765. s.SoundId = "rbxassetid://1645362088"
  766. Instance.new("StringValue", s).Name = "Immune"
  767. s.Name = "s"
  768. s.Parent = char
  769. s:Play()
  770. spawn(function()
  771. repeat swait() until not s.Playing
  772. s:Destroy()
  773. end)
  774. spawn(function()
  775. workspace.Gravity = 196.2
  776. local humsfinished = false
  777. for _,data in pairs(timedata) do
  778. if typeof(data) ~= "RBXScriptConnection" then
  779. local obj = data.Object
  780. if obj:IsA("BasePart") then
  781. if obj:FindFirstChild("ANTIANTI") then
  782. obj.ANTIANTI:Destroy()
  783. end
  784. obj.Anchored = false
  785. end
  786. if obj:IsA("Humanoid") then
  787. local spd = data.WalkSpeed
  788. local jp = data.JumpPower
  789. spawn(function()
  790. for i = 1, 20 do
  791. obj.WalkSpeed = (i/20)*spd
  792. obj.JumpPower = (i/20)*jp
  793. swait()
  794. end
  795. end)
  796. end
  797. if obj:IsA("BodyPosition") then
  798. local p = data.P
  799. spawn(function()
  800. for i = 1, 20 do
  801. obj.P = (i/20)*p
  802. swait()
  803. end
  804. end)
  805. end
  806. if obj:IsA("BodyForce") then
  807. local frc = data.Force
  808. spawn(function()
  809. for i = 1, 20 do
  810. obj.Force = (i/20)*frc
  811. swait()
  812. end
  813. end)
  814. end
  815. if obj:IsA("BodyVelocity") then
  816. local vel = data.Velocity
  817. spawn(function()
  818. for i = 1, 20 do
  819. obj.Velocity = (i/20)*vel
  820. swait()
  821. end
  822. end)
  823. end
  824. if obj:IsA("Sound") then
  825. local spd = data.PlaybackSpeed
  826. spawn(function()
  827. for i = 1, 20 do
  828. obj.PlaybackSpeed = (i/20)*spd
  829. swait()
  830. end
  831. end)
  832. end
  833. else
  834. pcall(function()
  835. data:disconnect()
  836. end)
  837. end
  838. end
  839. timedata = {}
  840. swait(20)
  841. timestate = "None"
  842. end)
  843. workspace.CurrentCamera.FieldOfView = 120
  844. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(0.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  845. elseif timestate == "None" then
  846. workspace.Gravity = 2
  847. local blur = Instance.new("BlurEffect")
  848. blur.Size = 0
  849. blur.Name = "BlurE"
  850. blur.Parent = game:GetService('Lighting')
  851. spawn(function()
  852. for i = 1, 20 do
  853. blur.Size = (i/20)*5
  854. swait()
  855. end
  856. end)
  857. timestate = "Busy"
  858. soundeffect("rbxassetid://909142508", 0.5, 2, char.Torso, {Immune = true, Pitch = 0.5})
  859. spawn(function()
  860. local humsfinished = false
  861. local function bind(obj)
  862. local data = {Object = obj}
  863. if obj:IsA("BasePart") and not obj:IsDescendantOf(char) then
  864. obj.Velocity = obj.Velocity/10
  865. end
  866. if obj:IsA("Sound") and not obj:FindFirstChild("Immune") then
  867. local spd = obj.PlaybackSpeed
  868. local data = {Object = obj, PlaybackSpeed = spd}
  869. spawn(function()
  870. if not humsfinished then
  871. for i = 1, 20 do
  872. obj.PlaybackSpeed = ((i/20)*spd)/2
  873. swait()
  874. end
  875. else
  876. obj.PlaybackSpeed = spd/2
  877. end
  878. humsfinished = true
  879. end)
  880. table.insert(timedata, data)
  881. end
  882. if obj:IsA("BodyVelocity") then
  883. local vel = obj.Velocity
  884. local data = {Object = obj, Velocity = vel}
  885. spawn(function()
  886. if not humsfinished then
  887. for i = 1, 20 do
  888. obj.Velocity = ((i/20)*vel)/10
  889. swait()
  890. end
  891. else
  892. obj.Velocity = vel/10
  893. end
  894. humsfinished = true
  895. end)
  896. table.insert(timedata, data)
  897. end
  898. if obj:IsA("BodyForce") then
  899. local frc = obj.Force
  900. local data = {Object = obj, Force = frc}
  901. spawn(function()
  902. if not humsfinished then
  903. for i = 1, 20 do
  904. obj.Force = ((i/20)*frc)/10
  905. swait()
  906. end
  907. else
  908. obj.Force = frc/10
  909. end
  910. humsfinished = true
  911. end)
  912. table.insert(timedata, data)
  913. end
  914. if obj:IsA("BodyPosition") then
  915. local p = obj.P
  916. local data = {Object = obj, P = p}
  917. spawn(function()
  918. if not humsfinished then
  919. for i = 1, 20 do
  920. obj.P = ((i/20)*p)/10
  921. swait()
  922. end
  923. else
  924. obj.P = p/10
  925. end
  926. humsfinished = true
  927. end)
  928. table.insert(timedata, data)
  929. end
  930. if obj:IsA("Humanoid") and obj ~= humanoid then
  931. local ws = obj.WalkSpeed
  932. local jp = obj.JumpPower
  933. local data = {Object = obj, WalkSpeed = ws, JumpPower = jp}
  934. spawn(function()
  935. if not humsfinished then
  936. for i = 1, 20 do
  937. obj.JumpPower = ((i/20)*jp)/10
  938. obj.WalkSpeed = ((i/20)*ws)/10
  939. swait()
  940. end
  941. else
  942. obj.WalkSpeed = jp/10
  943. obj.JumpPower = ws/10
  944. end
  945. humsfinished = true
  946. end)
  947. table.insert(timedata, data)
  948. end
  949. end
  950. timecon = workspace.DescendantAdded:connect(function(obj)
  951. bind(obj)
  952. end)
  953. for _,obj in pairs(workspace:GetDescendants()) do
  954. bind(obj)
  955. end
  956. repeat swait() until humsfinished
  957. local sound = Instance.new("Sound")
  958. sound.Name = "Ticking"
  959. sound.Looped = true
  960. sound.Volume = 0.2
  961. sound.PlaybackSpeed = 0.5
  962. Instance.new("StringValue", sound).Name = "Immune"
  963. sound.SoundId = "rbxassetid://850256806"
  964. sound.Parent = char
  965. sound:Play()
  966. local sound2 = sound:Clone()
  967. sound2.Name = "Ambience"
  968. sound2.SoundId = "rbxassetid://225115422"
  969. sound2.TimePosition = 30
  970. sound2.PlaybackSpeed = 0.05
  971. sound2:Play()
  972. timestate = "Slow"
  973. end)
  974. workspace.CurrentCamera.FieldOfView = 120
  975. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(1.8, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  976. end
  977. end)
  978. local attacks = 0
  979. local lastattack = ""
  980. local rs2,ls2,rj2
  981. addattack(Enum.KeyCode.Q, function()
  982. if attacking then
  983. return
  984. end
  985. if lastattack == "left" then
  986. return
  987. else
  988. lastattack = "left"
  989. end
  990. attacking = true
  991. if attacks <= 0 then
  992. rs2,ls2,rj2 = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
  993. for i = 0, 2, 0.1 do
  994. rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.906966507, 0.968378186, 0.112298936, 0.621087372, 0.026099572, 0.783306599, -0.77448535, -0.132709503, 0.618514776, 0.120095201, -0.990811288, -0.0622104593), 0.2)
  995. ls2.C1 = ls2.C1:Lerp(CFrame.new(0.737226963, 0.512096643, 0, 0.768523753, -0.0691948682, -0.636068642, 0.63350606, -0.0570384003, 0.771632493, -0.0896733478, -0.995971203, 3.91974631e-09), 0.2)
  996. rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.550583005, -0.834780395, 0, 0, 0, 1, -0.834780395, 0.550583005, 0), 0.2)
  997. swait()
  998. end
  999. end
  1000. attacks = attacks + 1
  1001. local hits = {}
  1002. local p = Instance.new("Part")
  1003. p.Anchored = false
  1004. p.CanCollide = false
  1005. p.Transparency = 1
  1006. p.Size = Vector3.new(1.5,2.5,1.5)
  1007. p.CFrame = char["Left Arm"].CFrame
  1008. p.Parent = workspace
  1009. p.Touched:connect(function(hit)
  1010. local ok = true
  1011. for i,v in pairs(hits) do
  1012. if hit.Parent == v then
  1013. ok = false
  1014. end
  1015. end
  1016. if ok and hurt(hit, 15) then
  1017. camshake("right", 0.5, 0.5)
  1018. soundeffect(soundlist.HardHit1, 1, 1, char.Torso)
  1019. table.insert(hits, hit.Parent)
  1020. knockback(hit, rootpart.CFrame.lookVector, 0.5)
  1021. for i = 1, 3 do
  1022. local p = Instance.new("Part")
  1023. p.CanCollide = false
  1024. p.Anchored = true
  1025. p.Material = "Neon"
  1026. p.Size = Vector3.new(0.5,3,0.5)
  1027. p.CFrame = hit.CFrame *randomangle()
  1028. setshape(p, "Sphere")
  1029. p.Parent = char
  1030. spawn(function()
  1031. local endcf = p.CFrame *CFrame.new(0,5,0)
  1032. for i = 1, 50 do
  1033. local cf = p.CFrame
  1034. p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
  1035. p.CFrame = cf
  1036. p.CFrame = cf:Lerp(endcf, 0.1)
  1037. p.Transparency = i/50
  1038. swait()
  1039. end
  1040. p:Destroy()
  1041. end)
  1042. end
  1043. end
  1044. end)
  1045. stabilizer(p)
  1046. soundeffect(soundlist.Woosh1, 1, 1, char.Torso)
  1047. for i = 0, 0.4, 0.1 do
  1048. p.CFrame = char["Left Arm"].CFrame
  1049. p.Stable.Position = p.Position
  1050. rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.765155435, 0.0656381845, -0.134758413, 0.690899074, 0.0384150855, 0.721929848, -0.71290642, -0.129681468, 0.689164102, 0.120095223, -0.990811288, -0.0622104444), 0.6)
  1051. ls2.C1 = ls2.C1:Lerp(CFrame.new(0.594711781, 1.414186, 0, -0.303172708, 0.0272964332, -0.95254457, 0.948707044, -0.0854178295, -0.304399073, -0.0896732956, -0.995971262, 3.66734874e-08), 0.6)
  1052. rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.678091764, 0.734977245, 0, 0, 0, 1, 0.734977245, 0.678091764, -0), 0.6)
  1053. swait()
  1054. end
  1055. p:Destroy()
  1056. attacking = false
  1057. spawn(function()
  1058. swait(10)
  1059. attacks = attacks - 1
  1060. if attacks == 0 then
  1061. fixalljoints()
  1062. lastattack = ""
  1063. end
  1064. end)
  1065. end)
  1066. addattack(Enum.KeyCode.E, function()
  1067. if attacking then
  1068. return
  1069. end
  1070. if lastattack == "right" then
  1071. return
  1072. else
  1073. lastattack = "right"
  1074. end
  1075. attacking = true
  1076. if attacks <= 0 then
  1077. rs2,ls2,rj2 = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
  1078. for i = 0, 2, 0.1 do
  1079. rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.66123569, -0.0759664774, 0, 0.836167634, 0.17217432, 0.520749211, -0.510048807, -0.105023548, 0.853709757, 0.201677814, -0.979451895, 8.81561668e-09), 0.2)
  1080. ls2.C1 = ls2.C1:Lerp(CFrame.new(0.500000119, 0.96661222, 0, 0.768523753, -0.0691948682, -0.636068642, 0.63350606, -0.0570384003, 0.771632493, -0.0896733478, -0.995971203, 3.91974631e-09), 0.2)
  1081. rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.557908654, 0.829902351, 0, 0, 0, 1, 0.829902351, 0.557908654, 0), 0.2)
  1082. swait()
  1083. end
  1084. end
  1085. attacks = attacks + 1
  1086. local hits = {}
  1087. local p = Instance.new("Part")
  1088. p.Anchored = false
  1089. p.CanCollide = false
  1090. p.Transparency = 1
  1091. p.Size = Vector3.new(1.5,2.5,1.5)
  1092. p.CFrame = char["Right Arm"].CFrame
  1093. p.Parent = workspace
  1094. p.Touched:connect(function(hit)
  1095. local ok = true
  1096. for i,v in pairs(hits) do
  1097. if hit.Parent == v then
  1098. ok = false
  1099. end
  1100. end
  1101. if ok and hurt(hit, 15) then
  1102. camshake("left", 0.5, 0.5)
  1103. soundeffect(soundlist.HardHit2, 1, 1, char.Torso)
  1104. table.insert(hits, hit.Parent)
  1105. knockback(hit, rootpart.CFrame.lookVector, 0.5)
  1106. for i = 1, 3 do
  1107. local p = Instance.new("Part")
  1108. p.CanCollide = false
  1109. p.Anchored = true
  1110. p.Material = "Neon"
  1111. p.Size = Vector3.new(0.5,3,0.5)
  1112. p.CFrame = hit.CFrame *randomangle()
  1113. setshape(p, "Sphere")
  1114. p.Parent = char
  1115. spawn(function()
  1116. local endcf = p.CFrame *CFrame.new(0,5,0)
  1117. for i = 1, 50 do
  1118. local cf = p.CFrame
  1119. p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
  1120. p.CFrame = cf
  1121. p.CFrame = cf:Lerp(endcf, 0.1)
  1122. p.Transparency = i/50
  1123. swait()
  1124. end
  1125. p:Destroy()
  1126. end)
  1127. end
  1128. end
  1129. end)
  1130. stabilizer(p)
  1131. soundeffect(soundlist.Woosh1, 1, 1.2, char.Torso)
  1132. for i = 0, 0.4, 0.1 do
  1133. p.CFrame = char["Right Arm"].CFrame
  1134. p.Stable.Position = p.Position
  1135. rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.300615489, 1.58357882, 0.112298936, -0.591086566, -0.121709943, 0.797372818, -0.797617614, -0.0589888841, -0.600272059, 0.120095201, -0.990811288, -0.0622104593), 0.6)
  1136. ls2.C1 = ls2.C1:Lerp(CFrame.new(0.737226963, 0.512096643, 0, 0.768523753, -0.0691948682, -0.636068642, 0.63350606, -0.0570384003, 0.771632493, -0.0896733478, -0.995971203, 3.91974631e-09), 0.6)
  1137. rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.550583005, -0.834780395, 0, 0, 0, 1, -0.834780395, 0.550583005, 0), 0.6)
  1138. swait()
  1139. end
  1140. p:Destroy()
  1141. attacking = false
  1142. spawn(function()
  1143. swait(10)
  1144. attacks = attacks - 1
  1145. if attacks == 0 then
  1146. lastattack = ""
  1147. fixalljoints()
  1148. end
  1149. end)
  1150. end)
  1151. addattack(Enum.KeyCode.R, function()
  1152. if attacking or attacks ~= 0 then
  1153. return
  1154. end
  1155. local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
  1156. attacking = true
  1157. for i = 0, 1.3, 0.1 do
  1158. rs.C1 = rs.C1:Lerp(CFrame.new(-0.496893436, 1.07596898, -0.312988698, 0.19853723, 0.499329865, 0.843357921, 0.169898286, -0.864994049, 0.472143799, 0.965255141, 0.0495468974, -0.256568819), 0.2)
  1159. ls.C1 = ls.C1:Lerp(CFrame.new(0.540391445, 1.0264194, -0.428114742, 0.327020317, -0.479398847, -0.81439209, -0.16517745, -0.877505124, 0.450223595, -0.930469871, -0.0127130449, -0.366147876), 0.2)
  1160. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.473837465, 0.880612314, 0, 0.880612314, -0.473837465), 0.2)
  1161. swait()
  1162. end
  1163. local hits = {}
  1164. local p = Instance.new("Part")
  1165. p.Anchored = false
  1166. p.CanCollide = false
  1167. p.Transparency = 1
  1168. p.Size = Vector3.new(2.5,2.5,2.5)
  1169. p.CFrame = char["Right Arm"].CFrame *CFrame.new(1,0,0)
  1170. p.Parent = workspace
  1171. p.Touched:connect(function(hit)
  1172. local ok = true
  1173. for i,v in pairs(hits) do
  1174. if hit.Parent == v then
  1175. ok = false
  1176. end
  1177. end
  1178. if ok and hurt(hit, 30) then
  1179. camshake("down", 0.7, 0.5)
  1180. soundeffect(soundlist.HardHit2, 1, 1, char.Torso)
  1181. table.insert(hits, hit.Parent)
  1182. knockback(hit, rootpart.CFrame.lookVector*Vector3.new(0.2,0,0.2)+Vector3.new(0,-1,0), 5)
  1183. for i = 1, 7 do
  1184. local p = Instance.new("Part")
  1185. p.CanCollide = false
  1186. p.Anchored = true
  1187. p.Material = "Neon"
  1188. p.Size = Vector3.new(0.5,3,0.5)
  1189. p.CFrame = hit.CFrame *randomangle()
  1190. setshape(p, "Sphere")
  1191. p.Parent = char
  1192. spawn(function()
  1193. local endcf = p.CFrame *CFrame.new(0,5,0)
  1194. for i = 1, 50 do
  1195. local cf = p.CFrame
  1196. p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
  1197. p.CFrame = cf
  1198. p.CFrame = cf:Lerp(endcf, 0.1)
  1199. p.Transparency = i/50
  1200. swait()
  1201. end
  1202. p:Destroy()
  1203. end)
  1204. end
  1205. end
  1206. end)
  1207. stabilizer(p)
  1208. soundeffect(soundlist.Woosh2, 1, 1, char.Torso)
  1209. for i = 0, 0.7, 0.1 do
  1210. p.CFrame = char["Right Arm"].CFrame *CFrame.new(1,0,0)
  1211. p.Stable.Position = p.Position
  1212. rs.C1 = rs.C1:Lerp(CFrame.new(-0.667285919, 0.998731434, 0.0985666513, 0.472356766, -0.245664522, 0.846479833, -0.662665009, 0.53425169, 0.52483356, -0.581166148, -0.808841228, 0.0895640329), 0.35)
  1213. ls.C1 = ls.C1:Lerp(CFrame.new(1.08004797, 1.00210166, 0.0862590671, 0.688671947, 0.329867661, -0.64569217, 0.477811068, 0.463347167, 0.746328354, 0.545369148, -0.822494209, 0.161479771), 0.35)
  1214. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.431734294, 0.902000785, 0, 0.902000785, 0.431734294), 0.35)
  1215. swait()
  1216. end
  1217. p:Destroy()
  1218. swait(10)
  1219. fixalljoints()
  1220. attacking = false
  1221. end)
  1222. addattack(Enum.KeyCode.Y, function()
  1223. if attacking or attacks ~= 0 then
  1224. return
  1225. end
  1226. attacking = true
  1227. local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
  1228. for i = 0, 1.5, 0.1 do
  1229. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.69189465, 0, -4.37113883e-08, 0, 1, -0.560839891, 0.827924252, -2.45150904e-08, -0.827924252, -0.560839891, -3.61897179e-08), 0.2)
  1230. ls.C1 = ls.C1:Lerp(CFrame.new(0.517904997, 0.547646105, 0.00405242294, 0.0622798949, -0.105018295, -0.992518127, -0.0215675589, 0.994074821, -0.106536403, 0.997825623, 0.0280412138, 0.0596458912), 0.2)
  1231. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), 0.2)
  1232. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), 0.2)
  1233. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.2)
  1234. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.301361054, 0.953510106, 0, 0.953510106, 0.301361054), 0.2)
  1235. swait()
  1236. end
  1237. local lastws = humanoid.WalkSpeed
  1238. humanoid.WalkSpeed = 0
  1239. rootpart.Velocity = Vector3.new(0,70,0)+rootpart.CFrame.lookVector
  1240. local hits = {}
  1241. local p = Instance.new("Part")
  1242. p.Anchored = false
  1243. p.CanCollide = false
  1244. p.Transparency = 1
  1245. p.Size = Vector3.new(2.5,2.5,2.5)
  1246. p.CFrame = char["Right Arm"].CFrame
  1247. p.Parent = workspace
  1248. p.Touched:connect(function(hit)
  1249. local ok = true
  1250. for i,v in pairs(hits) do
  1251. if hit.Parent == v then
  1252. ok = false
  1253. end
  1254. end
  1255. if ok and hurt(hit, 35) then
  1256. camshake("up", 0.7, 0.5)
  1257. soundeffect(soundlist.HardHit3, 1, 1, char.Torso)
  1258. table.insert(hits, hit.Parent)
  1259. knockback(hit, rootpart.CFrame.lookVector*Vector3.new(0.2,0,0.2)+Vector3.new(0,1,0), 6)
  1260. for i = 1, 7 do
  1261. local p = Instance.new("Part")
  1262. p.CanCollide = false
  1263. p.Anchored = true
  1264. p.Material = "Neon"
  1265. p.Size = Vector3.new(0.5,3,0.5)
  1266. p.CFrame = hit.CFrame *randomangle()
  1267. setshape(p, "Sphere")
  1268. p.Parent = char
  1269. spawn(function()
  1270. local endcf = p.CFrame *CFrame.new(0,5,0)
  1271. for i = 1, 50 do
  1272. local cf = p.CFrame
  1273. p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
  1274. p.CFrame = cf
  1275. p.CFrame = cf:Lerp(endcf, 0.1)
  1276. p.Transparency = i/50
  1277. swait()
  1278. end
  1279. p:Destroy()
  1280. end)
  1281. end
  1282. end
  1283. end)
  1284. stabilizer(p)
  1285. soundeffect(soundlist.Woosh2, 1, 0.9, char.Torso)
  1286. local rh,lh,neck = replacejoint("Right Hip"),replacejoint("Left Hip"),replacejoint("Neck")
  1287. for i = 0, 2, 0.1 do
  1288. p.CFrame = char["Right Arm"].CFrame
  1289. p.Stable.Position = p.Position
  1290. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.446216494, -0.361232638, -4.37113847e-08, 0, 0.99999994, -0.360836178, -0.932629287, -1.57726507e-08, 0.932629287, -0.360836178, 4.07665226e-08), 0.35)
  1291. ls.C1 = ls.C1:Lerp(CFrame.new(0.517904997, 0.547646105, 0.00405242294, 0.0622798949, -0.105018295, -0.992518127, -0.0215675589, 0.994074821, -0.106536403, 0.997825623, 0.0280412138, 0.0596458912), 0.35)
  1292. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.835349202, 0.549719632, 3.65142725e-08, -0.549719632, 0.835349202, -2.40290081e-08), 0.35)
  1293. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 5.96046448e-08, -4.37113883e-08, 0, -1, 0.934595525, 0.355712235, -4.08524663e-08, 0.355712235, -0.934595525, -1.55486752e-08), 0.35)
  1294. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0765283406, 0.997067392, 0, 0.997067392, -0.0765283406), 0.35)
  1295. rj.C1 = rj.C1:Lerp(CFrame.new(0, -0.439764589, 0.236440629, -1, 0, 0, 0, 0.186102957, 0.982530236, 0, 0.982530236, -0.186102957), 0.35)
  1296. swait()
  1297. end
  1298. fixalljoints()
  1299. attacking = false
  1300. humanoid.WalkSpeed = lastws
  1301. swait(20)
  1302. end)
  1303. addattack(Enum.KeyCode.F, function()
  1304. if attacking or attacks ~= 0 then
  1305. return
  1306. end
  1307. local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
  1308. attacking = true
  1309. for i = 0, 1.3, 0.1 do
  1310. rs.C1 = rs.C1:Lerp(CFrame.new(-0.49999994, -0.365668952, 0, 0.801226735, -0.011569812, 0.598249018, -0.598186672, 0.00863788743, 0.801310301, -0.0144386161, -0.999895751, -6.3113198e-10), 0.35)
  1311. ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, 0.810985923, -0.159224555, -0.562982619, 0.552435875, -0.108462237, 0.826468766, -0.192656472, -0.98126626, 8.42128145e-09), 0.35)
  1312. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -0.553187609, 0.833056748, 0, 0.426593065, 0.283277214, 0.858936787, 0.715543091, 0.475153178, -0.512081623), 0.35)
  1313. swait()
  1314. end
  1315. local hits = {}
  1316. local p = Instance.new("Part")
  1317. p.Anchored = false
  1318. p.CanCollide = false
  1319. p.Transparency = 1
  1320. p.Size = Vector3.new(2.5,2.5,2.5)
  1321. p.CFrame = char["Right Arm"].CFrame
  1322. p.Parent = workspace
  1323. p.Touched:connect(function(hit)
  1324. local ok = true
  1325. for i,v in pairs(hits) do
  1326. if hit.Parent == v then
  1327. ok = false
  1328. end
  1329. end
  1330. if ok and hurt(hit, 45) then
  1331. camshake("left", 0.7, 0.8)
  1332. soundeffect(soundlist.HardHit3, 1, 1, char.Torso)
  1333. table.insert(hits, hit.Parent)
  1334. knockback(hit, rootpart.CFrame.lookVector, 5)
  1335. for i = 1, 7 do
  1336. local p = Instance.new("Part")
  1337. p.CanCollide = false
  1338. p.Anchored = true
  1339. p.Material = "Neon"
  1340. p.Size = Vector3.new(0.5,3,0.5)
  1341. p.CFrame = hit.CFrame *randomangle()
  1342. setshape(p, "Sphere")
  1343. p.Parent = char
  1344. spawn(function()
  1345. local endcf = p.CFrame *CFrame.new(0,5,0)
  1346. for i = 1, 50 do
  1347. local cf = p.CFrame
  1348. p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
  1349. p.CFrame = cf
  1350. p.CFrame = cf:Lerp(endcf, 0.1)
  1351. p.Transparency = i/50
  1352. swait()
  1353. end
  1354. p:Destroy()
  1355. end)
  1356. end
  1357. end
  1358. end)
  1359. stabilizer(p)
  1360. soundeffect(soundlist.Woosh2, 1, 1, char.Torso)
  1361. for i = 0, 0.7, 0.1 do
  1362. p.CFrame = char["Right Arm"].CFrame
  1363. p.Stable.Position = p.Position
  1364. rs.C1 = rs.C1:Lerp(CFrame.new(-0.0815927088, 1.02625275, -0.263894349, -0.186050832, 0.00268659508, 0.982536495, -0.884674728, -0.435528874, -0.166329011, 0.427476168, -0.900170743, 0.083407253), 0.35)
  1365. ls.C1 = ls.C1:Lerp(CFrame.new(0.594317198, 0.0587400198, -0.128876805, 0.168223724, -0.0330281407, -0.985195339, 0.966738999, -0.189804256, 0.171435371, -0.192656472, -0.98126626, 8.42128145e-09), 0.35)
  1366. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0.227821022, -0.806821465, -0.590735316, -0.00842596591, 0.292753816, -0.412147343, 0.862803519, -0.513161182, 0.693661571, 0.505469382), 0.35)
  1367. swait()
  1368. end
  1369. p:Destroy()
  1370. swait(10)
  1371. fixalljoints()
  1372. attacking = false
  1373. end)
  1374.  
  1375. if settings.CustomAnim then
  1376. if char:FindFirstChild("Animate") then
  1377. char.Animate:Destroy()
  1378. end
  1379. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  1380. track:Stop()
  1381. end
  1382. humanoid.Running:connect(function(ws)
  1383. movespeed = ws
  1384. end)
  1385. end
  1386. local function landing()
  1387. if animpose == "Fall" then
  1388. local hit,pos = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4.1), char)
  1389. local p = Instance.new("Part")
  1390. p.Anchored = true
  1391. p.CanCollide = false
  1392. p.Material = "Neon"
  1393. p.Size = Vector3.new(0.1,0.1,0.1)
  1394. p.CFrame = CFrame.new(pos)
  1395. setshape(p, "Sphere")
  1396. p.Parent = char
  1397. spawn(function()
  1398. for i = 1, 50 do
  1399. local cf = p.CFrame
  1400. p.Size = p.Size:Lerp(Vector3.new(10,0.2,10), 0.1)
  1401. p.CFrame = cf
  1402. p.Transparency = i/50
  1403. swait()
  1404. end
  1405. p:Destroy()
  1406. end)
  1407. end
  1408. end
  1409. spawn(function()
  1410. local foot = "left"
  1411. local rate = 0
  1412. repeat swait()
  1413. if timestate == "Slow" then
  1414. local ws = humanoid.WalkSpeed
  1415. rootpart.Velocity = Vector3.new(humanoid.MoveDirection.X*ws,rootpart.Velocity.Y,humanoid.MoveDirection.Z*ws)
  1416. if not rootpart:FindFirstChild("Gravity") then
  1417. local force = Instance.new("BodyForce")
  1418. force.Name = "Gravity"
  1419. force.Force = Vector3.new(0,-196.2*playermass*10,0)
  1420. force.Parent = rootpart
  1421. end
  1422. if rate%2 == 0 then
  1423. local model = char:FindFirstChild("FakeModel") or Instance.new("Model")
  1424. model.Name = "FakeModel"
  1425. model.Parent = char
  1426. for _,v in pairs(char:GetChildren()) do
  1427. local ok = false
  1428. for _,nm in pairs({"Head", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg"}) do
  1429. if v.Name == nm then
  1430. ok = true
  1431. end
  1432. end
  1433. if v:IsA("BasePart") and v.Transparency < 1 and ok and v.Name ~= "effect" then
  1434. local v = v
  1435. if v:IsA("Accessory") then
  1436. v = v:FindFirstChild("Handle")
  1437. end
  1438. local new = v:Clone()
  1439. new.Size = new.Size-Vector3.new(0.1,0.1,0.1)
  1440. new.CFrame = v.CFrame *CFrame.new(math.random(-5,5)/100,math.random(-5,5)/100,math.random(-5,5)/100)
  1441. new.CanCollide = false
  1442. for _,face in pairs({"Front", "Back", "Top", "Bottom", "Left", "Right"}) do
  1443. new[face.."Surface"] = "SmoothNoOutlines"
  1444. end
  1445. new.Anchored = true
  1446. for _,e in pairs(new:GetChildren()) do
  1447. e:Destroy()
  1448. end
  1449. new.Parent = model
  1450. for _,e in pairs(v:GetDescendants()) do
  1451. if e:IsA("SpecialMesh") or e:IsA("Decal") and e.Transparency < 1 then
  1452. e:Clone().Parent = new
  1453. end
  1454. end
  1455. spawn(function()
  1456. for i = 1, 15 do
  1457. new.Transparency = i/15
  1458. if new:FindFirstChildOfClass("Decal") then
  1459. new:FindFirstChildOfClass("Decal").Transparency = i/15
  1460. end
  1461. swait()
  1462. end
  1463. new:Destroy()
  1464. end)
  1465. end
  1466. end
  1467. end
  1468. else
  1469. if rootpart:FindFirstChild("Gravity") then
  1470. rootpart.Gravity:Destroy()
  1471. end
  1472. if char:FindFirstChild("FakeModel") then
  1473. char.FakeModel:Destroy()
  1474. end
  1475. end
  1476. rate = rate + 1
  1477. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  1478. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  1479. local tvel = rootpart.Velocity
  1480. if air and tvel.Y > 0 then
  1481. animpose = "Jump"
  1482. end
  1483. if air and tvel.Y < 0 then
  1484. animpose = "Fall"
  1485. end
  1486. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  1487. landing()
  1488. animpose = "Walking"
  1489. end
  1490. if not air and animpose == "Walking" and humanoid.WalkSpeed >= 20 then
  1491. landing()
  1492. animpose = "Running"--or Running
  1493. end
  1494. if not air and movespeed == 0 then
  1495. landing()
  1496. animpose = "Idle"
  1497. end
  1498. if animpose == "Idle" and rate%35 == 0 then
  1499. local left,pos1 = workspace:FindPartOnRay(Ray.new((char["Left Leg"].CFrame*CFrame.new(0,0,0)).p, Vector3.new(0,-1,0).unit * 1.1), char)
  1500. local right,pos2 = workspace:FindPartOnRay(Ray.new((char["Right Leg"].CFrame*CFrame.new(0,0,0)).p, Vector3.new(0,-1,0).unit * 1.1), char)
  1501. for i,v in pairs({"Right Leg", "Left Leg"}) do
  1502. local bodypart = char[v]
  1503. local p = Instance.new("Part")
  1504. p.Anchored = true
  1505. p.CanCollide = false
  1506. p.Material = "Neon"
  1507. p.Size = Vector3.new(0.1,0.1,0.1)
  1508. p.CFrame = CFrame.new(v == "Left Leg" and pos1 or pos2)
  1509. setshape(p, "Sphere")
  1510. p.Parent = char
  1511. spawn(function()
  1512. for i = 1, 50 do
  1513. local cf = p.CFrame
  1514. p.Size = p.Size:Lerp(Vector3.new(5,0.2,5), 0.1)
  1515. p.CFrame = cf
  1516. p.Transparency = i/50
  1517. swait()
  1518. end
  1519. p:Destroy()
  1520. end)
  1521. end
  1522. end
  1523. if animpose == "Walking" or animpose == "Running" then
  1524. local left,pos1 = workspace:FindPartOnRay(Ray.new((char["Left Leg"].CFrame*CFrame.new(0,-0.95,0)).p, Vector3.new(0,-1,0).unit * 0.2), char)
  1525. local right,pos2 = workspace:FindPartOnRay(Ray.new((char["Right Leg"].CFrame*CFrame.new(0,-0.95,0)).p, Vector3.new(0,-1,0).unit * 0.2), char)
  1526. if left and foot == "right" then
  1527. foot = "left"
  1528. local p = Instance.new("Part")
  1529. p.Anchored = true
  1530. p.CanCollide = false
  1531. p.Material = "Neon"
  1532. p.Size = Vector3.new(0.2,0.2,0.2)
  1533. p.CFrame = CFrame.new(pos1)
  1534. setshape(p, "Sphere")
  1535. p.Parent = char
  1536. spawn(function()
  1537. for i = 1, 50 do
  1538. local cf = p.CFrame
  1539. p.Size = p.Size:Lerp(Vector3.new(20,0.2,20), 0.1)
  1540. p.CFrame = cf
  1541. p.Transparency = i/50
  1542. swait()
  1543. end
  1544. p:Destroy()
  1545. end)
  1546. end
  1547. if right and foot == "left" then
  1548. foot = "right"
  1549. local p = Instance.new("Part")
  1550. p.Anchored = true
  1551. p.CanCollide = false
  1552. p.Material = "Neon"
  1553. p.Size = Vector3.new(0.2,0.2,0.2)
  1554. p.CFrame = CFrame.new(pos2)
  1555. setshape(p, "Sphere")
  1556. p.Parent = char
  1557. spawn(function()
  1558. for i = 1, 50 do
  1559. local cf = p.CFrame
  1560. p.Size = p.Size:Lerp(Vector3.new(20,0.2,20), 0.1)
  1561. p.CFrame = cf
  1562. p.Transparency = i/50
  1563. swait()
  1564. end
  1565. p:Destroy()
  1566. end)
  1567. end
  1568. end
  1569. until not settings.CustomAnim
  1570. end)
  1571. local change = 5
  1572. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  1573. while swait() and settings.CustomAnim do
  1574. local num = tick()*change
  1575. if animpose == "Walking" and cananim then
  1576. change = (humanoid.WalkSpeed/16)*9
  1577. ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -45 + 0)), 0.35)
  1578. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 2 + -1) * 0.10000000149012 + 0.10000000149012) *ang(math.rad(cos(num * 2 + 0) * 3 + -10), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + -1) * 5 + 0)), 0.35)
  1579. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + -1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 5 + 0), math.rad(cos(num * 1 + 0) * 55 + -15)), 0.35)
  1580. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 1) * 2 + -5), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  1581. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * -5 + 0), math.rad(cos(num * 1 + 0) * 55 + 15)), 0.35)
  1582. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -45 + 0)), 0.35)
  1583. end
  1584. if animpose == "Running" and cananim then
  1585. change = (humanoid.WalkSpeed/24)*10
  1586. ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -60 + 0)), 0.35)
  1587. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 2 + -1) * 0.10000000149012 + 0.10000000149012) *ang(math.rad(cos(num * 2 + 0) * 3 + -20), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + -1) * 5 + 0)), 0.35)
  1588. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + -1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 5 + 0), math.rad(cos(num * 1 + 0) * 65 + -10)), 0.35)
  1589. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 1) * 2 + -5), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  1590. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * -5 + 0), math.rad(cos(num * 1 + 0) * 65 + 10)), 0.35)
  1591. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -60 + 0)), 0.35)
  1592. end
  1593. if animpose == "Fall" and cananim then
  1594. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.499999911, -2.98023224e-08, -4.37113847e-08, 0, 0.99999994, -0.848737478, 0.528814375, -3.70994933e-08, -0.528814375, -0.848737478, -2.31152111e-08), 0.03)
  1595. ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 2.98023224e-08, -4.37113883e-08, 0, -1, 0.751466334, 0.659771562, -3.28476375e-08, 0.659771562, -0.751466334, -2.88395317e-08), 0.03)
  1596. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.9062047, 0.422839224, 3.96114643e-08, -0.422839224, 0.9062047, -1.84828899e-08), 0.03)
  1597. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, -2.98023224e-08, -4.37113883e-08, 0, -1, 0.321224481, 0.947003067, -1.40411682e-08, 0.947003067, -0.321224481, -4.139482e-08), 0.03)
  1598. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.385730505, 0.922611475, 0, 0.922611475, 0.385730505), 0.03)
  1599. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.394207865, -0.0643720552, -1, 0, 0, 0, -0.191213459, 0.981548548, 0, 0.981548548, 0.191213459), 0.03)
  1600. end
  1601. if animpose == "Idle" and cananim then
  1602. change = 3
  1603. ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.050000000745058 + 0.10000000149012, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + 5), math.rad(cos(num * 0.5 + 0) * -5 + -5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  1604. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0.10000000149012 + 0.20000000298023) *ang(math.rad(cos(num * 1 + 0) * 1 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 10)), 0.35)
  1605. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *-0.10100000351667 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 2), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * -2 + -2)), 0.35)
  1606. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 1) * 2 + -3), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + -5)), 0.35)
  1607. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + -0.10100000351667, cos(num * 1 + 0) *-0.10100000351667 + -0.10199999809265, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 2), math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 2 + 0)), 0.35)
  1608. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.050000000745058 + 0.10000000149012, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + 5), math.rad(cos(num * 0.5 + 0) * 5 + 5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  1609. end
  1610. if animpose == "Jump" and cananim then
  1611. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, -0.665773153, -0.746154189, -2.91018694e-08, 0.746154189, -0.665773153, 3.26154357e-08), 0.25)
  1612. ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0.757894218, -0.652377486, -3.31286074e-08, -0.652377486, -0.757894218, 2.85163253e-08), 0.25)
  1613. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.751373947, 0.659876645, 3.28435981e-08, -0.659876645, 0.751373947, -2.88441235e-08), 0.25)
  1614. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0.429746985, 0.902949333, -1.87848368e-08, 0.902949333, -0.429746985, -3.94691675e-08), 0.25)
  1615. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.201922834, 0.97940141, 0, 0.97940141, 0.201922834), 0.25)
  1616. rj.C1 = rj.C1:Lerp(CFrame.new(0, -0.318411648, 0.10930454, -1, 0, 0, 0, 0.324682653, 0.945823014, 0, 0.945823014, -0.324682653), 0.25)
  1617. end
  1618. end
  1619.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement