Advertisement
Xxhax4prosxX

God Speed fe

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