Advertisement
sneakydodge123

godspeed

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