Advertisement
anonymous321313

Untitled

Apr 30th, 2019
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by Artkiller_exe
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by Arkiller_exe")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. --[[ Godspeed ]]--
  89. -------------------------------------------------------
  90. --[[
  91.  
  92. This script was created by WafflesAreVeryGood or Nobody#3907
  93.  
  94. --]]
  95. -------------------------------------------------------
  96. --[[ Reference ]]--
  97. --[[
  98. Burn Function
  99. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  100.  
  101. Freeze Function
  102. hurt(char.Head, 0, "Freeze", {char, 1})
  103.  
  104. Stun Function
  105. hurt(char.Head, 0, "Stun", {char, 0.2})
  106. --]]
  107. -------------------------------------------------------
  108. math.randomseed(tick())
  109. print("You are using a script created by WafflesAreVeryGood!")
  110. warn("--------Global Message--------")
  111. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  112. warn("------------------------------")
  113. --[[Changeable Variables]]--
  114. local settings = {}
  115. --ShowDamage settings
  116. settings.Damage = {
  117. Color = nil,
  118. StrokeColor = nil,
  119. Font = nil,
  120. }
  121. settings.ShowDamageEnabled = false
  122. settings.CustomAnim = true
  123. settings.Song = 1513216381
  124. local soundlist = {
  125. HardHit1 = "rbxassetid://565207203",
  126. HardHit2 = "rbxassetid://541909913",
  127. HardHit3 = "rbxassetid://541909983",
  128. WeakHit1 = "rbxassetid://558642292",
  129. WeakHit2 = "rbxassetid://541907812",
  130. Slice1 = "rbxassetid://260429964",
  131. Slice2 = "rbxassetid://260430015",
  132. Explosion1 = "rbxassetid://138186576",
  133. Explosion2 = "rbxassetid://157878578",
  134. Woosh1 = "rbxassetid://541909867",
  135. Woosh2 = "rbxassetid://541909763",
  136. Freeze = "rbxassetid://268249319",
  137. Thaw = "rbxassetid://1578580965",
  138. Burn = "rbxassetid://298181829",
  139.  
  140. }
  141. local attack_data = {
  142. {
  143. Name = "Godspeed",
  144. Description = "Enable the godspeed. [TOGGLE]",
  145. Key = "G",
  146. },
  147. {
  148. Name = "Left Punch",
  149. Description = "Punch.",
  150. Key = "Q",
  151. },
  152. {
  153. Name = "Right Punch",
  154. Description = "Punch again.",
  155. Key = "E",
  156. },
  157. {
  158. Name = "Slam",
  159. Description = "Slam downwards, good spike move.",
  160. Key = "R",
  161. },
  162. {
  163. Name = "Uppercut",
  164. Description = "Jump into the air and do an uppercut.",
  165. Key = "Y",
  166. },
  167. {
  168. Name = "Power Punch",
  169. Description = "Punch but stronger.",
  170. Key = "F",
  171. },
  172. {
  173. Name = "Run",
  174. Description = "Hold shift to gotta go fast.",
  175. Key = "Shift",
  176. },
  177.  
  178. }
  179.  
  180. --[[Important Variables]]--
  181. local plr = owner
  182. local char = plr.Character
  183. local input = game:GetService('UserInputService')
  184. ----
  185. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  186. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  187. local rs = torso["Right Shoulder"]
  188. local ls = torso["Left Shoulder"]
  189. local rh = torso["Right Hip"]
  190. local lh = torso["Left Hip"]
  191. local neck = torso.Neck
  192. local rj = rootpart["RootJoint"]
  193. local humanoid = char:FindFirstChildOfClass("Humanoid")
  194. ----
  195. local huge = Vector3.new(math.huge, math.huge, math.huge)
  196. local attacking = false
  197. local cananim = true
  198. local animpose = "Idle"
  199. local timestate = "None"
  200. local lastpose = animpose
  201. local movespeed = 0
  202. local playermass = 0
  203. for i,v in pairs(char:GetChildren()) do
  204. if v:IsA("BasePart") then
  205. playermass = playermass + v:GetMass()
  206. end
  207. end
  208. local timedata = {}
  209. ----
  210. --[[ Anti-Decompile ]]--
  211. script.Parent = workspace.CurrentCamera
  212. owner
  213. script:Destroy()
  214. end)
  215. --[[ Moves Gui ]]--
  216.  
  217. local mgui = Instance.new("ScreenGui")
  218. mgui.Name = "MovesGui"
  219. local bg = Instance.new("Frame")
  220. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  221. bg.Position = UDim2.new(0,504,0,164)
  222. bg.Name = "Background"
  223. bg.Size = UDim2.new(-0.035,379,0,225)
  224. bg.Visible = false
  225. bg.Parent = mgui
  226. local container = Instance.new("ScrollingFrame")
  227. container.Name = "Container"
  228. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  229. container.BorderSizePixel = 0
  230. container.Visible = true
  231. container.Position = UDim2.new(0,16,0,46)
  232. container.Size = UDim2.new(0,132,0,162)
  233. container.CanvasSize = UDim2.new(0,0,0,10)
  234. container.ScrollBarThickness = 4
  235. container.Parent = bg
  236. local copy = Instance.new("TextButton")
  237. copy.Name = "Move"
  238. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  239. copy.BorderSizePixel = 0
  240. copy.Position = UDim2.new(0,4,0,4)
  241. copy.Size = UDim2.new(0,118,0,29)
  242. copy.Font = "SourceSansLight"
  243. copy.Text = "Move Name"
  244. copy.TextColor3 = Color3.new(197/255,0,0)
  245. copy.TextSize = 20
  246. copy.Visible = false
  247. copy.Parent = container
  248. local atkinfo = container:Clone()
  249. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  250. atkinfo.Name = "AtkInfo"
  251. atkinfo.Visible = true
  252. atkinfo.Position = UDim2.new(0,167,0,50)
  253. atkinfo.Size = UDim2.new(0,159,0,165)
  254. atkinfo.Parent = bg
  255. local movename = Instance.new("TextLabel")
  256. movename.Name = "MoveName"
  257. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  258. movename.BorderSizePixel = 0
  259. movename.Position = UDim2.new(0,4,0,4)
  260. movename.Size = UDim2.new(0,150,0,30)
  261. movename.Font = "SourceSansLight"
  262. movename.TextColor3 = Color3.new(197/255,0,0)
  263. movename.TextSize = 20
  264. movename.Text = "same"
  265. movename.Parent = atkinfo
  266. local movedesc = movename:Clone()
  267. movedesc.Position = UDim2.new(0,4,0,47)
  268. movedesc.Size = UDim2.new(0,150,0,133)
  269. movedesc.Text = "Move Description"
  270. movedesc.TextSize = 18
  271. movedesc.Name = "MoveDesc"
  272. movedesc.TextXAlignment = "Left"
  273. movedesc.TextYAlignment = "Top"
  274. movedesc.TextWrapped = true
  275. movedesc.Parent = atkinfo
  276. local title = movedesc:Clone()
  277. title.Name = "Title"
  278. title.Font = "SourceSansLight"
  279. title.Text = "Moves List"
  280. title.TextSize = 28
  281. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  282. title.Position = UDim2.new(0,0,0,0)
  283. title.Size = UDim2.new(1,0,0,30)
  284. title.TextXAlignment = "Center"
  285. title.TextYAlignment = "Center"
  286. title.Parent = bg
  287. local toggle = copy:Clone()
  288. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  289. toggle.Position = UDim2.new(0,0,0,288)
  290. toggle.Size = UDim2.new(0,70,0,20)
  291. toggle.Visible = true
  292. toggle.Font = "SourceSans"
  293. toggle.Text = "Toggle Moves"
  294. toggle.Name = "Toggle"
  295. toggle.TextSize = 14
  296. toggle.Parent = mgui
  297. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  298. toggle.MouseButton1Click:connect(function()
  299. bg.Visible = not bg.Visible
  300. end)
  301. local pos = copy.Position -UDim2.new(0,0,0,29)
  302. for _,data in pairs(attack_data) do
  303. local new = copy:Clone()
  304. pos = pos +UDim2.new(0,0,0,29)
  305. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  306. new.Position = pos
  307. new.Text = data.Name.."["..data.Key.."]"
  308. new.Visible = true
  309. spawn(function()
  310. swait()
  311. if not new.TextFits then
  312. new.TextScaled = true
  313. end
  314. end)
  315. new.Parent = container
  316. new.MouseButton1Click:connect(function()
  317. movename.Text = data.Name
  318. movedesc.Text = data.Description
  319. spawn(function()
  320. swait()
  321. if not movename.TextFits then
  322. movename.TextScaled = true
  323. else
  324. movename.TextScaled = false
  325. end
  326. if not movedesc.TextFits then
  327. movename.TextScaled = true
  328. else
  329. movename.TextScaled = false
  330. end
  331. end)
  332. end)
  333. end
  334. --[[ Functions ]]--
  335.  
  336. function addattack(keycode, func)
  337. if keycode ~= "MouseClick" then
  338. input.InputBegan:connect(function(inp)
  339. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  340. func()
  341. end
  342. end)
  343. else
  344. mouse.Button1Down:connect(function()
  345. func()
  346. end)
  347. end
  348. end
  349. function attackend(keycode, func)
  350. input.InputEnded:connect(function(inp)
  351. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  352. func()
  353. end
  354. end)
  355. end
  356. function swait(t)
  357. if t then
  358. for i = 0, t do
  359. game:GetService('RunService').Stepped:wait(0)
  360. end
  361. else
  362. game:GetService('RunService').Stepped:wait(0)
  363. end
  364. return true
  365. end
  366. function fade(obj, dest, grow)
  367. spawn(function()
  368. local oldcf = obj.CFrame
  369. for i = 0, 10 do
  370. if grow then
  371. obj.Size = obj.Size +Vector3.new(1,1,1)
  372. obj.CFrame = oldcf
  373. end
  374. obj.Transparency = obj.Transparency +0.1
  375. swait()
  376. end
  377. if dest then
  378. obj:Destroy()
  379. end
  380. end)
  381. end
  382. function replacejoint(name)
  383. local j = torso:FindFirstChild(name)
  384. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  385. if j then
  386. if true then
  387. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  388. local new = Instance.new("Weld")
  389. local c0 = j.C0
  390. local c1 = j.C1
  391. new.Part0 = j.Part0
  392. j.Part0 = nil
  393. new.Name = j.Name.." Replacement"
  394. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  395. new.Parent = j.Parent
  396. new.Part1 = j.Part1
  397. new.C0 = c0
  398. new.C1 = c1
  399. return new
  400. end
  401. end
  402. end
  403. function removejoint(name, fast)
  404. local j = torso:FindFirstChild(name.." Replacement")
  405. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  406. if j then
  407. local p0 = j.Part0
  408. if p0 ~= nil then
  409. local c0 = j.C0
  410. local c1 = j.C1
  411. j:Destroy()
  412. local new = p0:FindFirstChild(name)
  413. local ac0 = new.C0
  414. local ac1 = new.C1
  415. new.Part0 = p0
  416. new.C0 = c0
  417. new.C1 = c1
  418. spawn(function()
  419. if name ~= "RootJoint" then
  420. if not fast then
  421. for i = 0, 0.6, 0.1 do
  422. new.C0 = new.C0:Lerp(ac0, 0.5)
  423. new.C1 = new.C1:lerp(ac1, 0.5)
  424. swait()
  425. end
  426. else
  427. new.C0 = new.C0:Lerp(ac0, 1)
  428. new.C1 = new.C1:lerp(ac1, 1)
  429. end
  430. end
  431. end)
  432. end
  433. end
  434. end
  435. function fixalljoints(fast)
  436. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  437. removejoint(v, fast)
  438. end
  439. end
  440. function getnewjoints()
  441. local rs = replacejoint("Right Shoulder")
  442. local ls = replacejoint("Left Shoulder")
  443. local rh = replacejoint("Right Hip")
  444. local lh = replacejoint("Left Hip")
  445. local neck = replacejoint("Neck")
  446. local rj = replacejoint("RootJoint")
  447. return rs,ls,rh,lh,neck,rj
  448. end
  449. function knockback(hit, dir, force)
  450. local bp = Instance.new("BodyPosition")
  451. bp.MaxForce = huge
  452. bp.D = 1000*(timestate == "Slow" and 0.9 or 1)
  453. bp.P = 20000*(force/5)
  454. bp.Position = (CFrame.new(hit.Position, hit.Position+dir)*CFrame.new(0,0,-force)).p
  455. bp.Parent = hit
  456. game:GetService('Debris'):AddItem(bp, force/5)
  457. end
  458. function soundeffect(id, volume, speed, parent, extra)
  459. extra = extra or {}
  460. local func = function()
  461. local s = LoadLibrary("RbxUtility").Create("Sound")()
  462. s.Name = "WSoundEffect"
  463. s.Volume = volume
  464. s.PlaybackSpeed = speed
  465. s.SoundId = id
  466. s.Looped = false
  467. if extra.Pitch then
  468. local ef = Instance.new("PitchShiftSoundEffect")
  469. ef.Octave = extra.Pitch or 1
  470. ef.Enabled = true
  471. ef.Priority = 0
  472. ef.Parent = s
  473. end
  474. s.Parent = parent
  475. if extra.Immune then
  476. Instance.new("StringValue", s).Name = "Immune"
  477. end
  478. s:Play()
  479. s.TimePosition = extra.Start or 0
  480. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  481. s:Destroy()
  482. return s
  483. end
  484. if extra.ForceWait then
  485. func()
  486. else
  487. return spawn(func)
  488. end
  489. end
  490. function getfunction(nm)
  491. if nm == "Burn" then
  492. return function(character, data)
  493. if character:FindFirstChild("Burn") then
  494. return
  495. end
  496. local val = Instance.new("StringValue")
  497. val.Name = "Burn"
  498. val.Parent = character
  499. for i = 1, data.Time*100 do
  500. if not character:FindFirstChild("Burn") then
  501. break
  502. end
  503. if i%data.Rate == 0 then
  504. local hum = character:FindFirstChildOfClass("Humanoid")
  505. if hum then
  506. hurt(torso, data.Damage)
  507. end
  508. soundeffect(soundlist.Burn, 1, 1, torso)
  509. spawn(function()
  510. for i = 1, 4 do
  511. spawn(function()
  512. local p = Instance.new("Part")
  513. p.Material = "Neon"
  514. p.CanCollide = false
  515. p.Anchored = true
  516. p.Size = Vector3.new(0.5,0.5,0.5)
  517. p.Name = "fireeffect"
  518. p.Color = data.Color or Color3.new(1,162/255,0)
  519. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  520. p.Parent = torso
  521. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  522. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  523. local opcf = p.CFrame
  524. local opsz = p.Size
  525. for i = 0, 1, 0.01 do
  526. p.Transparency = i/1
  527. local cf = p.CFrame
  528. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  529. p.CFrame = cf
  530. 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 )
  531. swait()
  532. end
  533. p:Destroy()
  534. swait(5)
  535. end)
  536. swait()
  537. end
  538. end)
  539. end
  540. swait()
  541. end
  542. val:Destroy()
  543. end
  544. end
  545. if nm == "Poison" then
  546. return function(character, data)
  547.  
  548. end
  549. end
  550. if nm == "Freeze" then
  551. return function(character, t)
  552. if not character:FindFirstChild("Frozen") then
  553. local val = Instance.new("StringValue")
  554. val.Name = "Frozen"
  555. val.Parent = character
  556. local unanchor = {}
  557. local freezeparts = {}
  558. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  559. for _,v in pairs(character:GetDescendants()) do
  560. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  561. if v.Transparency ~= 1 then
  562. if not v.Anchored then
  563. table.insert(unanchor, v)
  564. end
  565. v.Anchored = true
  566. local new = v:Clone()
  567. new:ClearAllChildren()
  568. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  569. if mesh then
  570. mesh = mesh:Clone()
  571. mesh.TextureId = ""
  572. if mesh.Scale ~= Vector3.new(1,1,1) then
  573. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  574. end
  575. mesh.Parent = new
  576. end
  577. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  578. new.CanCollide = false
  579. new.Anchored = true
  580. new.Name = "freezepart"
  581. new.Material = "Ice"
  582. new.BrickColor = BrickColor.new("Pastel light blue")
  583. new.TopSurface = "Smooth"
  584. new.BottomSurface = "Smooth"
  585. new.Transparency = 0
  586. new.CFrame = v.CFrame
  587. new.Parent = v
  588. table.insert(freezeparts, new)
  589. end
  590. end
  591. end
  592. swait(50*t)
  593. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  594. val:Destroy()
  595. for _,v in pairs(unanchor) do
  596. v.Anchored = false
  597. end
  598. for _,v in pairs(freezeparts) do
  599. v.Anchored = false
  600. v.CanCollide = true
  601. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  602. game:GetService('Debris'):AddItem(v, 5)
  603. end
  604. end
  605. end
  606. end
  607. if nm == "Stun" then
  608. return function(character, t)
  609. local humanoid = character:FindFirstChildOfClass("Humanoid")
  610. local val = Instance.new("StringValue")
  611. val.Name = "Stun"
  612. val.Parent = character
  613. if humanoid then
  614. humanoid.PlatformStand = true
  615. end
  616. for i = 1, t*100 do
  617. if humanoid then
  618. humanoid.PlatformStand = true
  619. end
  620. swait()
  621. end
  622. if humanoid then
  623. humanoid.PlatformStand = false
  624. end
  625. val:Destroy()
  626. end
  627. end
  628. if nm == "Paralyze" then
  629. return function(character, t)
  630.  
  631. end
  632. end
  633. return
  634. end
  635. function showdamage(cf, txtdata)
  636. --[[
  637. [Text Data]
  638. Font
  639. Text
  640. Color
  641. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  642. --]]
  643. local p = Instance.new("Part")
  644. p.Name = "DamagePart"
  645. p.CanCollide = false
  646. p.Anchored = true
  647. p.Transparency = 1
  648. p.Size = Vector3.new(0.1,0.1,0.1)
  649. p.CFrame = cf
  650. local gui = Instance.new("BillboardGui")
  651. gui.Name = "GUI"
  652. gui.Adornee = p
  653. gui.LightInfluence = 0
  654. gui.Size = UDim2.new(1.5,0,0.7,0)
  655. gui.StudsOffset = Vector3.new(0,0.5,0)
  656. local tl = Instance.new("TextLabel")
  657. tl.Name = "tl"
  658. tl.BackgroundTransparency = 1
  659. tl.Position = UDim2.new(0,0,0,0)
  660. tl.Size = UDim2.new(2,0,2,0)
  661. tl.Font = txtdata.Font or "SourceSans"
  662. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  663. tl.Text = txtdata.Text or ""
  664. tl.TextScaled = true
  665. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  666. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  667. tl.Rotation = math.random(-10,10)
  668. tl.Parent = gui
  669. gui.Parent = p
  670. local og = gui
  671. gui = og:Clone()
  672. gui.Parent = og.Parent
  673. tl = gui.tl
  674. og:Destroy()
  675. p.Parent = char
  676. spawn(function()
  677. for i = 1, 100 do
  678. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  679. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  680. if txtdata.StrokeColor then
  681. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  682. end
  683. swait()
  684. end
  685. p:Destroy()
  686. end)
  687. end
  688. function stabilizer(obj)
  689. local bp = Instance.new("BodyPosition")
  690. bp.MaxForce = huge
  691. bp.Position = obj.Position
  692. bp.Name = "Stable"
  693. bp.Parent = obj
  694. end
  695. function setshape(obj, typ)
  696. local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh")
  697. m.MeshId = typ == "Ring" and "rbxassetid://3270017" or ""
  698. m.TextureId = ""
  699. if typ == "Ring" then
  700. typ = "FileMesh"
  701. end
  702. m.MeshType = typ
  703. m.Parent = obj
  704. end
  705. function camshake(direction, intensity, duration)
  706. if direction:lower() == "inout" then
  707. workspace.CurrentCamera.FieldOfView = intensity
  708. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  709. elseif direction:lower() == "left" then
  710. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  711. game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  712. elseif direction:lower() == "right" then
  713. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  714. game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  715. elseif direction:lower() == "up" then
  716. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  717. game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  718. elseif direction:lower() == "down" then
  719. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  720. game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  721. end
  722. end
  723. function randomangle()
  724. return CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  725. end
  726. function hurt(hit, dmg, effect, args)
  727. --pcall(function()
  728. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  729. if hum and not hum:FindFirstChild("nostop") then
  730. if hum.Parent ~= char then
  731. if typeof(dmg) == "table" then
  732. dmg = math.random(dmg[1], dmg[2])
  733. end
  734. hum.Health = hum.Health - dmg
  735. if settings.ShowDamageEnabled then
  736. local dmgdata = {
  737. Color = settings.Damage.Color,
  738. StrokeColor = settings.Damage.StrokeColor,
  739. Font = settings.Damage.Font,
  740. Text = dmg,
  741. }
  742. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  743. end
  744. if effect then
  745. if typeof(effect) == "function" then
  746. local s,m = pcall(effect, hit.CFrame)
  747. if not s then
  748. warn("Error in function: "..m or "unknown")
  749. end
  750. end
  751. if typeof(effect) == "string" then
  752. local func = getfunction(effect)
  753. if func then
  754. local s,m
  755. if args then
  756. s,m = pcall(func, unpack(args))
  757. else
  758. s,m = pcall(func)
  759. end
  760. if not s then
  761. warn("Error in function: "..m or "unknown")
  762. end
  763. end
  764. end
  765. end
  766. return true
  767. end
  768. end
  769. --end)
  770. end
  771. --[[ uhhhhhhhhhhhhhhhh ]]--
  772. pcall(function()
  773. NS([[
  774. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Godspeed")
  775. store:UpdateAsync("y'all", function(old)
  776. old = old or {}
  777. if typeof(old) ~= "table" then
  778. old = {} --stop breaking my datastores
  779. end
  780. local ok = true
  781. for _,v in pairs(old) do
  782. if typeof(v) == "table" then
  783. if v.name == owner.Name or v.userid == owner.UserId then
  784. ok = false
  785. table.insert(v.uses, tick())
  786. end
  787. end
  788. end
  789. if ok then
  790. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  791. end
  792. return old
  793. end)
  794. script:Destroy()
  795. ]], workspace)
  796. end)
  797. --[[ Actual script :OOOOOOOOOO ]]--
  798.  
  799. local sound = Instance.new("Sound")
  800. sound.Volume = 0.5
  801. sound.SoundId = "rbxassetid://"..settings.Song
  802. sound.Looped = true
  803. sound.Name = "BGMusic"
  804. sound.Parent = char
  805. sound:Play()
  806. sound.Changed:connect(function()
  807. -- swait()
  808. -- sound.Volume = 0.5
  809. -- sound.SoundId = "rbxassetid://"..settings.Song
  810. -- sound.Looped = true
  811. -- sound.Name = "BGMusic"
  812. -- sound.Parent = char
  813. end)
  814. addattack(Enum.KeyCode.LeftShift, function()
  815. if humanoid.WalkSpeed > 0 then
  816. humanoid.WalkSpeed = 24
  817. end
  818. end)
  819. attackend(Enum.KeyCode.LeftShift, function()
  820. if humanoid.WalkSpeed > 0 then
  821. humanoid.WalkSpeed = 16
  822. end
  823. end)
  824. addattack(Enum.KeyCode.G, function()
  825. if timestate == "Slow" then
  826. pcall(function()
  827. timecon:disconnect()
  828. timecon = nil
  829. end)
  830. local blur = game:GetService('Lighting'):FindFirstChild("BlurE")
  831. if blur then
  832. spawn(function()
  833. for i = 1, 20 do
  834. blur.Size = 5-((i/20)*5)
  835. swait()
  836. end
  837. blur:Destroy()
  838. end)
  839. end
  840. if char:FindFirstChild("Ticking") then
  841. char.Ticking:Destroy()
  842. end
  843. if char:FindFirstChild("Ambience") then
  844. char.Ambience:Destroy()
  845. end
  846. timestate = "Busy"
  847. local s = Instance.new("Sound")
  848. s.Volume = 2
  849. s.Looped = false
  850. s.SoundId = "rbxassetid://1645362088"
  851. Instance.new("StringValue", s).Name = "Immune"
  852. s.Name = "s"
  853. s.Parent = char
  854. s:Play()
  855. spawn(function()
  856. repeat swait() until not s.Playing
  857. s:Destroy()
  858. end)
  859. spawn(function()
  860. workspace.Gravity = 196.2
  861. local humsfinished = false
  862. for _,data in pairs(timedata) do
  863. if typeof(data) ~= "RBXScriptConnection" then
  864. local obj = data.Object
  865. if obj:IsA("BasePart") then
  866. if obj:FindFirstChild("ANTIANTI") then
  867. obj.ANTIANTI:Destroy()
  868. end
  869. obj.Anchored = false
  870. end
  871. if obj:IsA("Humanoid") then
  872. local spd = data.WalkSpeed
  873. local jp = data.JumpPower
  874. spawn(function()
  875. for i = 1, 20 do
  876. obj.WalkSpeed = (i/20)*spd
  877. obj.JumpPower = (i/20)*jp
  878. swait()
  879. end
  880. end)
  881. end
  882. if obj:IsA("BodyPosition") then
  883. local p = data.P
  884. spawn(function()
  885. for i = 1, 20 do
  886. obj.P = (i/20)*p
  887. swait()
  888. end
  889. end)
  890. end
  891. if obj:IsA("BodyForce") then
  892. local frc = data.Force
  893. spawn(function()
  894. for i = 1, 20 do
  895. obj.Force = (i/20)*frc
  896. swait()
  897. end
  898. end)
  899. end
  900. if obj:IsA("BodyVelocity") then
  901. local vel = data.Velocity
  902. spawn(function()
  903. for i = 1, 20 do
  904. obj.Velocity = (i/20)*vel
  905. swait()
  906. end
  907. end)
  908. end
  909. if obj:IsA("Sound") then
  910. local spd = data.PlaybackSpeed
  911. spawn(function()
  912. for i = 1, 20 do
  913. obj.PlaybackSpeed = (i/20)*spd
  914. swait()
  915. end
  916. end)
  917. end
  918. else
  919. pcall(function()
  920. data:disconnect()
  921. end)
  922. end
  923. end
  924. timedata = {}
  925. swait(20)
  926. timestate = "None"
  927. end)
  928. workspace.CurrentCamera.FieldOfView = 120
  929. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(0.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  930. elseif timestate == "None" then
  931. workspace.Gravity = 2
  932. local blur = Instance.new("BlurEffect")
  933. blur.Size = 0
  934. blur.Name = "BlurE"
  935. blur.Parent = game:GetService('Lighting')
  936. spawn(function()
  937. for i = 1, 20 do
  938. blur.Size = (i/20)*5
  939. swait()
  940. end
  941. end)
  942. timestate = "Busy"
  943. soundeffect("rbxassetid://909142508", 0.5, 2, char.Torso, {Immune = true, Pitch = 0.5})
  944. spawn(function()
  945. local humsfinished = false
  946. local function bind(obj)
  947. local data = {Object = obj}
  948. if obj:IsA("BasePart") and not obj:IsDescendantOf(char) then
  949. obj.Velocity = obj.Velocity/10
  950. end
  951. if obj:IsA("Sound") and not obj:FindFirstChild("Immune") then
  952. local spd = obj.PlaybackSpeed
  953. local data = {Object = obj, PlaybackSpeed = spd}
  954. spawn(function()
  955. if not humsfinished then
  956. for i = 1, 20 do
  957. obj.PlaybackSpeed = ((i/20)*spd)/2
  958. swait()
  959. end
  960. else
  961. obj.PlaybackSpeed = spd/2
  962. end
  963. humsfinished = true
  964. end)
  965. table.insert(timedata, data)
  966. end
  967. if obj:IsA("BodyVelocity") then
  968. local vel = obj.Velocity
  969. local data = {Object = obj, Velocity = vel}
  970. spawn(function()
  971. if not humsfinished then
  972. for i = 1, 20 do
  973. obj.Velocity = ((i/20)*vel)/10
  974. swait()
  975. end
  976. else
  977. obj.Velocity = vel/10
  978. end
  979. humsfinished = true
  980. end)
  981. table.insert(timedata, data)
  982. end
  983. if obj:IsA("BodyForce") then
  984. local frc = obj.Force
  985. local data = {Object = obj, Force = frc}
  986. spawn(function()
  987. if not humsfinished then
  988. for i = 1, 20 do
  989. obj.Force = ((i/20)*frc)/10
  990. swait()
  991. end
  992. else
  993. obj.Force = frc/10
  994. end
  995. humsfinished = true
  996. end)
  997. table.insert(timedata, data)
  998. end
  999. if obj:IsA("BodyPosition") then
  1000. local p = obj.P
  1001. local data = {Object = obj, P = p}
  1002. spawn(function()
  1003. if not humsfinished then
  1004. for i = 1, 20 do
  1005. obj.P = ((i/20)*p)/10
  1006. swait()
  1007. end
  1008. else
  1009. obj.P = p/10
  1010. end
  1011. humsfinished = true
  1012. end)
  1013. table.insert(timedata, data)
  1014. end
  1015. if obj:IsA("Humanoid") and obj ~= humanoid then
  1016. local ws = obj.WalkSpeed
  1017. local jp = obj.JumpPower
  1018. local data = {Object = obj, WalkSpeed = ws, JumpPower = jp}
  1019. spawn(function()
  1020. if not humsfinished then
  1021. for i = 1, 20 do
  1022. obj.JumpPower = ((i/20)*jp)/10
  1023. obj.WalkSpeed = ((i/20)*ws)/10
  1024. swait()
  1025. end
  1026. else
  1027. obj.WalkSpeed = jp/10
  1028. obj.JumpPower = ws/10
  1029. end
  1030. humsfinished = true
  1031. end)
  1032. table.insert(timedata, data)
  1033. end
  1034. end
  1035. timecon = workspace.DescendantAdded:connect(function(obj)
  1036. bind(obj)
  1037. end)
  1038. for _,obj in pairs(workspace:GetDescendants()) do
  1039. bind(obj)
  1040. end
  1041. repeat swait() until humsfinished
  1042. local sound = Instance.new("Sound")
  1043. sound.Name = "Ticking"
  1044. sound.Looped = true
  1045. sound.Volume = 0.2
  1046. sound.PlaybackSpeed = 0.5
  1047. Instance.new("StringValue", sound).Name = "Immune"
  1048. sound.SoundId = "rbxassetid://850256806"
  1049. sound.Parent = char
  1050. sound:Play()
  1051. local sound2 = sound:Clone()
  1052. sound2.Name = "Ambience"
  1053. sound2.SoundId = "rbxassetid://225115422"
  1054. sound2.TimePosition = 30
  1055. sound2.PlaybackSpeed = 0.05
  1056. sound2:Play()
  1057. timestate = "Slow"
  1058. end)
  1059. workspace.CurrentCamera.FieldOfView = 120
  1060. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(1.8, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  1061. end
  1062. end)
  1063. local attacks = 0
  1064. local lastattack = ""
  1065. local rs2,ls2,rj2
  1066. addattack(Enum.KeyCode.Q, function()
  1067. if attacking then
  1068. return
  1069. end
  1070. if lastattack == "left" then
  1071. return
  1072. else
  1073. lastattack = "left"
  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.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)
  1080. 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)
  1081. 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)
  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["Left 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("right", 0.5, 0.5)
  1103. soundeffect(soundlist.HardHit1, 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, char.Torso)
  1132. for i = 0, 0.4, 0.1 do
  1133. p.CFrame = char["Left Arm"].CFrame
  1134. p.Stable.Position = p.Position
  1135. 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)
  1136. 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)
  1137. 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)
  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. fixalljoints()
  1147. lastattack = ""
  1148. end
  1149. end)
  1150. end)
  1151. addattack(Enum.KeyCode.E, function()
  1152. if attacking then
  1153. return
  1154. end
  1155. if lastattack == "right" then
  1156. return
  1157. else
  1158. lastattack = "right"
  1159. end
  1160. attacking = true
  1161. if attacks <= 0 then
  1162. rs2,ls2,rj2 = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
  1163. for i = 0, 2, 0.1 do
  1164. 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)
  1165. 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)
  1166. 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)
  1167. swait()
  1168. end
  1169. end
  1170. attacks = attacks + 1
  1171. local hits = {}
  1172. local p = Instance.new("Part")
  1173. p.Anchored = false
  1174. p.CanCollide = false
  1175. p.Transparency = 1
  1176. p.Size = Vector3.new(1.5,2.5,1.5)
  1177. p.CFrame = char["Right Arm"].CFrame
  1178. p.Parent = workspace
  1179. p.Touched:connect(function(hit)
  1180. local ok = true
  1181. for i,v in pairs(hits) do
  1182. if hit.Parent == v then
  1183. ok = false
  1184. end
  1185. end
  1186. if ok and hurt(hit, 15) then
  1187. camshake("left", 0.5, 0.5)
  1188. soundeffect(soundlist.HardHit2, 1, 1, char.Torso)
  1189. table.insert(hits, hit.Parent)
  1190. knockback(hit, rootpart.CFrame.lookVector, 0.5)
  1191. for i = 1, 3 do
  1192. local p = Instance.new("Part")
  1193. p.CanCollide = false
  1194. p.Anchored = true
  1195. p.Material = "Neon"
  1196. p.Size = Vector3.new(0.5,3,0.5)
  1197. p.CFrame = hit.CFrame *randomangle()
  1198. setshape(p, "Sphere")
  1199. p.Parent = char
  1200. spawn(function()
  1201. local endcf = p.CFrame *CFrame.new(0,5,0)
  1202. for i = 1, 50 do
  1203. local cf = p.CFrame
  1204. p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
  1205. p.CFrame = cf
  1206. p.CFrame = cf:Lerp(endcf, 0.1)
  1207. p.Transparency = i/50
  1208. swait()
  1209. end
  1210. p:Destroy()
  1211. end)
  1212. end
  1213. end
  1214. end)
  1215. stabilizer(p)
  1216. soundeffect(soundlist.Woosh1, 1, 1.2, char.Torso)
  1217. for i = 0, 0.4, 0.1 do
  1218. p.CFrame = char["Right Arm"].CFrame
  1219. p.Stable.Position = p.Position
  1220. 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)
  1221. 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)
  1222. 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)
  1223. swait()
  1224. end
  1225. p:Destroy()
  1226. attacking = false
  1227. spawn(function()
  1228. swait(10)
  1229. attacks = attacks - 1
  1230. if attacks == 0 then
  1231. lastattack = ""
  1232. fixalljoints()
  1233. end
  1234. end)
  1235. end)
  1236. addattack(Enum.KeyCode.R, function()
  1237. if attacking or attacks ~= 0 then
  1238. return
  1239. end
  1240. local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
  1241. attacking = true
  1242. for i = 0, 1.3, 0.1 do
  1243. 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)
  1244. 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)
  1245. 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)
  1246. swait()
  1247. end
  1248. local hits = {}
  1249. local p = Instance.new("Part")
  1250. p.Anchored = false
  1251. p.CanCollide = false
  1252. p.Transparency = 1
  1253. p.Size = Vector3.new(2.5,2.5,2.5)
  1254. p.CFrame = char["Right Arm"].CFrame *CFrame.new(1,0,0)
  1255. p.Parent = workspace
  1256. p.Touched:connect(function(hit)
  1257. local ok = true
  1258. for i,v in pairs(hits) do
  1259. if hit.Parent == v then
  1260. ok = false
  1261. end
  1262. end
  1263. if ok and hurt(hit, 30) then
  1264. camshake("down", 0.7, 0.5)
  1265. soundeffect(soundlist.HardHit2, 1, 1, char.Torso)
  1266. table.insert(hits, hit.Parent)
  1267. knockback(hit, rootpart.CFrame.lookVector*Vector3.new(0.2,0,0.2)+Vector3.new(0,-1,0), 5)
  1268. for i = 1, 7 do
  1269. local p = Instance.new("Part")
  1270. p.CanCollide = false
  1271. p.Anchored = true
  1272. p.Material = "Neon"
  1273. p.Size = Vector3.new(0.5,3,0.5)
  1274. p.CFrame = hit.CFrame *randomangle()
  1275. setshape(p, "Sphere")
  1276. p.Parent = char
  1277. spawn(function()
  1278. local endcf = p.CFrame *CFrame.new(0,5,0)
  1279. for i = 1, 50 do
  1280. local cf = p.CFrame
  1281. p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
  1282. p.CFrame = cf
  1283. p.CFrame = cf:Lerp(endcf, 0.1)
  1284. p.Transparency = i/50
  1285. swait()
  1286. end
  1287. p:Destroy()
  1288. end)
  1289. end
  1290. end
  1291. end)
  1292. stabilizer(p)
  1293. soundeffect(soundlist.Woosh2, 1, 1, char.Torso)
  1294. for i = 0, 0.7, 0.1 do
  1295. p.CFrame = char["Right Arm"].CFrame *CFrame.new(1,0,0)
  1296. p.Stable.Position = p.Position
  1297. 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)
  1298. 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)
  1299. 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)
  1300. swait()
  1301. end
  1302. p:Destroy()
  1303. swait(10)
  1304. fixalljoints()
  1305. attacking = false
  1306. end)
  1307. addattack(Enum.KeyCode.Y, function()
  1308. if attacking or attacks ~= 0 then
  1309. return
  1310. end
  1311. attacking = true
  1312. local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
  1313. for i = 0, 1.5, 0.1 do
  1314. 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)
  1315. 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)
  1316. 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)
  1317. 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)
  1318. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.2)
  1319. 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)
  1320. swait()
  1321. end
  1322. local lastws = humanoid.WalkSpeed
  1323. humanoid.WalkSpeed = 0
  1324. rootpart.Velocity = Vector3.new(0,70,0)+rootpart.CFrame.lookVector
  1325. local hits = {}
  1326. local p = Instance.new("Part")
  1327. p.Anchored = false
  1328. p.CanCollide = false
  1329. p.Transparency = 1
  1330. p.Size = Vector3.new(2.5,2.5,2.5)
  1331. p.CFrame = char["Right Arm"].CFrame
  1332. p.Parent = workspace
  1333. p.Touched:connect(function(hit)
  1334. local ok = true
  1335. for i,v in pairs(hits) do
  1336. if hit.Parent == v then
  1337. ok = false
  1338. end
  1339. end
  1340. if ok and hurt(hit, 35) then
  1341. camshake("up", 0.7, 0.5)
  1342. soundeffect(soundlist.HardHit3, 1, 1, char.Torso)
  1343. table.insert(hits, hit.Parent)
  1344. knockback(hit, rootpart.CFrame.lookVector*Vector3.new(0.2,0,0.2)+Vector3.new(0,1,0), 6)
  1345. for i = 1, 7 do
  1346. local p = Instance.new("Part")
  1347. p.CanCollide = false
  1348. p.Anchored = true
  1349. p.Material = "Neon"
  1350. p.Size = Vector3.new(0.5,3,0.5)
  1351. p.CFrame = hit.CFrame *randomangle()
  1352. setshape(p, "Sphere")
  1353. p.Parent = char
  1354. spawn(function()
  1355. local endcf = p.CFrame *CFrame.new(0,5,0)
  1356. for i = 1, 50 do
  1357. local cf = p.CFrame
  1358. p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
  1359. p.CFrame = cf
  1360. p.CFrame = cf:Lerp(endcf, 0.1)
  1361. p.Transparency = i/50
  1362. swait()
  1363. end
  1364. p:Destroy()
  1365. end)
  1366. end
  1367. end
  1368. end)
  1369. stabilizer(p)
  1370. soundeffect(soundlist.Woosh2, 1, 0.9, char.Torso)
  1371. local rh,lh,neck = replacejoint("Right Hip"),replacejoint("Left Hip"),replacejoint("Neck")
  1372. for i = 0, 2, 0.1 do
  1373. p.CFrame = char["Right Arm"].CFrame
  1374. p.Stable.Position = p.Position
  1375. 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)
  1376. 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)
  1377. 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)
  1378. 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)
  1379. 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)
  1380. 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)
  1381. swait()
  1382. end
  1383. fixalljoints()
  1384. attacking = false
  1385. humanoid.WalkSpeed = lastws
  1386. swait(20)
  1387. end)
  1388. addattack(Enum.KeyCode.F, function()
  1389. if attacking or attacks ~= 0 then
  1390. return
  1391. end
  1392. local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
  1393. attacking = true
  1394. for i = 0, 1.3, 0.1 do
  1395. 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)
  1396. 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)
  1397. 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)
  1398. swait()
  1399. end
  1400. local hits = {}
  1401. local p = Instance.new("Part")
  1402. p.Anchored = false
  1403. p.CanCollide = false
  1404. p.Transparency = 1
  1405. p.Size = Vector3.new(2.5,2.5,2.5)
  1406. p.CFrame = char["Right Arm"].CFrame
  1407. p.Parent = workspace
  1408. p.Touched:connect(function(hit)
  1409. local ok = true
  1410. for i,v in pairs(hits) do
  1411. if hit.Parent == v then
  1412. ok = false
  1413. end
  1414. end
  1415. if ok and hurt(hit, 45) then
  1416. camshake("left", 0.7, 0.8)
  1417. soundeffect(soundlist.HardHit3, 1, 1, char.Torso)
  1418. table.insert(hits, hit.Parent)
  1419. knockback(hit, rootpart.CFrame.lookVector, 5)
  1420. for i = 1, 7 do
  1421. local p = Instance.new("Part")
  1422. p.CanCollide = false
  1423. p.Anchored = true
  1424. p.Material = "Neon"
  1425. p.Size = Vector3.new(0.5,3,0.5)
  1426. p.CFrame = hit.CFrame *randomangle()
  1427. setshape(p, "Sphere")
  1428. p.Parent = char
  1429. spawn(function()
  1430. local endcf = p.CFrame *CFrame.new(0,5,0)
  1431. for i = 1, 50 do
  1432. local cf = p.CFrame
  1433. p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1)
  1434. p.CFrame = cf
  1435. p.CFrame = cf:Lerp(endcf, 0.1)
  1436. p.Transparency = i/50
  1437. swait()
  1438. end
  1439. p:Destroy()
  1440. end)
  1441. end
  1442. end
  1443. end)
  1444. stabilizer(p)
  1445. soundeffect(soundlist.Woosh2, 1, 1, char.Torso)
  1446. for i = 0, 0.7, 0.1 do
  1447. p.CFrame = char["Right Arm"].CFrame
  1448. p.Stable.Position = p.Position
  1449. 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)
  1450. 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)
  1451. 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)
  1452. swait()
  1453. end
  1454. p:Destroy()
  1455. swait(10)
  1456. fixalljoints()
  1457. attacking = false
  1458. end)
  1459.  
  1460. if settings.CustomAnim then
  1461. if char:FindFirstChild("Animate") then
  1462. char.Animate:Destroy()
  1463. end
  1464. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  1465. track:Stop()
  1466. end
  1467. humanoid.Running:connect(function(ws)
  1468. movespeed = ws
  1469. end)
  1470. end
  1471. local function landing()
  1472. if animpose == "Fall" then
  1473. local hit,pos = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4.1), char)
  1474. local p = Instance.new("Part")
  1475. p.Anchored = true
  1476. p.CanCollide = false
  1477. p.Material = "Neon"
  1478. p.Size = Vector3.new(0.1,0.1,0.1)
  1479. p.CFrame = CFrame.new(pos)
  1480. setshape(p, "Sphere")
  1481. p.Parent = char
  1482. spawn(function()
  1483. for i = 1, 50 do
  1484. local cf = p.CFrame
  1485. p.Size = p.Size:Lerp(Vector3.new(10,0.2,10), 0.1)
  1486. p.CFrame = cf
  1487. p.Transparency = i/50
  1488. swait()
  1489. end
  1490. p:Destroy()
  1491. end)
  1492. end
  1493. end
  1494. spawn(function()
  1495. local foot = "left"
  1496. local rate = 0
  1497. repeat swait()
  1498. if timestate == "Slow" then
  1499. local ws = humanoid.WalkSpeed
  1500. rootpart.Velocity = Vector3.new(humanoid.MoveDirection.X*ws,rootpart.Velocity.Y,humanoid.MoveDirection.Z*ws)
  1501. if not rootpart:FindFirstChild("Gravity") then
  1502. local force = Instance.new("BodyForce")
  1503. force.Name = "Gravity"
  1504. force.Force = Vector3.new(0,-196.2*playermass*10,0)
  1505. force.Parent = rootpart
  1506. end
  1507. if rate%2 == 0 then
  1508. local model = char:FindFirstChild("FakeModel") or Instance.new("Model")
  1509. model.Name = "FakeModel"
  1510. model.Parent = char
  1511. for _,v in pairs(char:GetChildren()) do
  1512. local ok = false
  1513. for _,nm in pairs({"Head", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg"}) do
  1514. if v.Name == nm then
  1515. ok = true
  1516. end
  1517. end
  1518. if v:IsA("BasePart") and v.Transparency < 1 and ok and v.Name ~= "effect" then
  1519. local v = v
  1520. if v:IsA("Accessory") then
  1521. v = v:FindFirstChild("Handle")
  1522. end
  1523. local new = v:Clone()
  1524. new.Size = new.Size-Vector3.new(0.1,0.1,0.1)
  1525. new.CFrame = v.CFrame *CFrame.new(math.random(-5,5)/100,math.random(-5,5)/100,math.random(-5,5)/100)
  1526. new.CanCollide = false
  1527. for _,face in pairs({"Front", "Back", "Top", "Bottom", "Left", "Right"}) do
  1528. new[face.."Surface"] = "SmoothNoOutlines"
  1529. end
  1530. new.Anchored = true
  1531. for _,e in pairs(new:GetChildren()) do
  1532. e:Destroy()
  1533. end
  1534. new.Parent = model
  1535. for _,e in pairs(v:GetDescendants()) do
  1536. if e:IsA("SpecialMesh") or e:IsA("Decal") and e.Transparency < 1 then
  1537. e:Clone().Parent = new
  1538. end
  1539. end
  1540. spawn(function()
  1541. for i = 1, 15 do
  1542. new.Transparency = i/15
  1543. if new:FindFirstChildOfClass("Decal") then
  1544. new:FindFirstChildOfClass("Decal").Transparency = i/15
  1545. end
  1546. swait()
  1547. end
  1548. new:Destroy()
  1549. end)
  1550. end
  1551. end
  1552. end
  1553. else
  1554. if rootpart:FindFirstChild("Gravity") then
  1555. rootpart.Gravity:Destroy()
  1556. end
  1557. if char:FindFirstChild("FakeModel") then
  1558. char.FakeModel:Destroy()
  1559. end
  1560. end
  1561. rate = rate + 1
  1562. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  1563. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  1564. local tvel = rootpart.Velocity
  1565. if air and tvel.Y > 0 then
  1566. animpose = "Jump"
  1567. end
  1568. if air and tvel.Y < 0 then
  1569. animpose = "Fall"
  1570. end
  1571. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  1572. landing()
  1573. animpose = "Walking"
  1574. end
  1575. if not air and animpose == "Walking" and humanoid.WalkSpeed >= 20 then
  1576. landing()
  1577. animpose = "Running"--or Running
  1578. end
  1579. if not air and movespeed == 0 then
  1580. landing()
  1581. animpose = "Idle"
  1582. end
  1583. if animpose == "Idle" and rate%35 == 0 then
  1584. 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)
  1585. 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)
  1586. for i,v in pairs({"Right Leg", "Left Leg"}) do
  1587. local bodypart = char[v]
  1588. local p = Instance.new("Part")
  1589. p.Anchored = true
  1590. p.CanCollide = false
  1591. p.Material = "Neon"
  1592. p.Size = Vector3.new(0.1,0.1,0.1)
  1593. p.CFrame = CFrame.new(v == "Left Leg" and pos1 or pos2)
  1594. setshape(p, "Sphere")
  1595. p.Parent = char
  1596. spawn(function()
  1597. for i = 1, 50 do
  1598. local cf = p.CFrame
  1599. p.Size = p.Size:Lerp(Vector3.new(5,0.2,5), 0.1)
  1600. p.CFrame = cf
  1601. p.Transparency = i/50
  1602. swait()
  1603. end
  1604. p:Destroy()
  1605. end)
  1606. end
  1607. end
  1608. if animpose == "Walking" or animpose == "Running" then
  1609. 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)
  1610. 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)
  1611. if left and foot == "right" then
  1612. foot = "left"
  1613. local p = Instance.new("Part")
  1614. p.Anchored = true
  1615. p.CanCollide = false
  1616. p.Material = "Neon"
  1617. p.Size = Vector3.new(0.2,0.2,0.2)
  1618. p.CFrame = CFrame.new(pos1)
  1619. setshape(p, "Sphere")
  1620. p.Parent = char
  1621. spawn(function()
  1622. for i = 1, 50 do
  1623. local cf = p.CFrame
  1624. p.Size = p.Size:Lerp(Vector3.new(20,0.2,20), 0.1)
  1625. p.CFrame = cf
  1626. p.Transparency = i/50
  1627. swait()
  1628. end
  1629. p:Destroy()
  1630. end)
  1631. end
  1632. if right and foot == "left" then
  1633. foot = "right"
  1634. local p = Instance.new("Part")
  1635. p.Anchored = true
  1636. p.CanCollide = false
  1637. p.Material = "Neon"
  1638. p.Size = Vector3.new(0.2,0.2,0.2)
  1639. p.CFrame = CFrame.new(pos2)
  1640. setshape(p, "Sphere")
  1641. p.Parent = char
  1642. spawn(function()
  1643. for i = 1, 50 do
  1644. local cf = p.CFrame
  1645. p.Size = p.Size:Lerp(Vector3.new(20,0.2,20), 0.1)
  1646. p.CFrame = cf
  1647. p.Transparency = i/50
  1648. swait()
  1649. end
  1650. p:Destroy()
  1651. end)
  1652. end
  1653. end
  1654. until not settings.CustomAnim
  1655. end)
  1656. local change = 5
  1657. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  1658. while swait() and settings.CustomAnim do
  1659. local num = tick()*change
  1660. if animpose == "Walking" and cananim then
  1661. change = (humanoid.WalkSpeed/16)*9
  1662. 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)
  1663. 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)
  1664. 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)
  1665. 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)
  1666. 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)
  1667. 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)
  1668. end
  1669. if animpose == "Running" and cananim then
  1670. change = (humanoid.WalkSpeed/24)*10
  1671. 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)
  1672. 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)
  1673. 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)
  1674. 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)
  1675. 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)
  1676. 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)
  1677. end
  1678. if animpose == "Fall" and cananim then
  1679. 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)
  1680. 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)
  1681. 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)
  1682. 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)
  1683. 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)
  1684. 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)
  1685. end
  1686. if animpose == "Idle" and cananim then
  1687. change = 3
  1688. 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)
  1689. 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)
  1690. 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)
  1691. 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)
  1692. 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)
  1693. 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)
  1694. end
  1695. if animpose == "Jump" and cananim then
  1696. 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)
  1697. 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)
  1698. 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)
  1699. 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)
  1700. 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)
  1701. 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)
  1702. end
  1703. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement