Advertisement
samuelrichter66

godspees

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