PerpetualZblack

Untitled

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