Advertisement
mattysaechao123

Untitled

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