sneakydodge123

godspeed v2

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