Advertisement
Guest User

Hi

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