wamandnj

Untitled

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