Advertisement
Ganz_the_Skeleton

Script Killer V2

Sep 28th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.92 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. --Edited by TheDevilPro1234
  8. ---NO TOOLS
  9. plr = game.Players.LocalPlayer
  10. repeat
  11. wait(0.4)
  12. until plr.Character
  13. chr = plr.Character
  14. human = chr:FindFirstChild("Humanoid")
  15. chr.Humanoid.MaxHealth = 50000
  16. mouse = plr:GetMouse()
  17. equipd = false
  18. tors = chr.Torso
  19. rarm = chr["Right Arm"]
  20. larm = chr["Left Arm"]
  21. rleg = chr["Right Leg"]
  22. lleg = chr["Left Leg"]
  23. chr.Head.face.Texture = "rbxassetid://126198982"
  24. local txt = Instance.new("BillboardGui", chr)
  25. CV="Lime green"
  26. txt.Adornee = chr .Head
  27. txt.Name = "_status"
  28. txt.Size = UDim2.new(2, 0, 1.2, 0)
  29. txt.StudsOffset = Vector3.new(-9, 8, 0)
  30. local text = Instance.new("TextLabel", txt)
  31. text.Size = UDim2.new(10, 0, 7, 0)
  32. text.FontSize = "Size24"
  33. text.TextScaled = true
  34. text.TextTransparency = 0
  35. text.BackgroundTransparency = 1
  36. text.TextTransparency = 0
  37. text.TextStrokeTransparency = 0
  38. text.Font = "Bodoni"
  39. text.TextStrokeColor3 = Color3.new(0,0,0)
  40. text.TextColor3 = Color3.new(0,1,0)
  41. text.Text = "Izuku Midoriya"
  42. v=Instance.new("Part")
  43. v.Name = "ColorBrick"
  44. v.Parent= plr.Character
  45. v.FormFactor="Symmetric"
  46. v.Anchored=true
  47. v.CanCollide=false
  48. v.BottomSurface="Smooth"
  49. v.TopSurface="Smooth"
  50. v.Size=Vector3.new(10,5,3)
  51. v.Transparency=1
  52. v.CFrame=chr.Torso.CFrame
  53. v.BrickColor=BrickColor.new("Lime green")
  54. v.Transparency=1
  55. v.Shape="Block"
  56. chr.Shirt.ShirtTemplate = "rbxassetid://846519063"
  57. chr.Pants.PantsTemplate = "rbxassetid://848613245"
  58. for i,v in pairs(chr:children()) do
  59. if v:IsA("Hat") then
  60. v:Destroy()
  61. end
  62. end
  63. for i,v in pairs(chr:children()) do
  64. if v:IsA("Accessory") then
  65. v:Destroy()
  66. end
  67. end
  68. for i,v in pairs(chr:children()) do
  69. if v:IsA("Hair") then
  70. v:Destroy()
  71. end
  72. end
  73. local Part = Instance.new("Part",chr)
  74. Part.BrickColor = BrickColor.new("Royal blue")
  75. Part.Size = Vector3.new(1,1,1)
  76. Part.CanCollide = false
  77. Part.Material = "Neon"
  78. local M = Instance.new("SpecialMesh",Part)
  79. M.MeshId = "rbxassetid://212966179"
  80. M.Scale = Vector3.new(1.2,1.2,1.2)
  81. M.TextureId = "rbxassetid://431984628"
  82. local Part2 = Instance.new("Weld",Part)
  83. Part2.Part0 = chr.Head
  84. Part2.Part1 = Part
  85. Part2.C0 = CFrame.new(0,0.2,0)*CFrame.Angles(0,0,0)
  86. local Part1 = Instance.new("Part",chr)
  87. Part1.BrickColor = BrickColor.new("Really black")
  88. Part1.Size = Vector3.new(1,1,1)
  89. Part1.CanCollide = false
  90. Part1.Material = "Neon"
  91. local M1 = Instance.new("SpecialMesh",Part1)
  92. M1.MeshId = "rbxassetid://212966179"
  93. M1.Scale = Vector3.new(1.1,1.1,1.1)
  94. local Part21 = Instance.new("Weld",Part1)
  95. Part21.Part0 = chr.Head
  96. Part21.Part1 = Part1
  97. Part21.C0 = CFrame.new(0,0.1,0)*CFrame.Angles(0,0,0)
  98. hrp = chr.HumanoidRootPart
  99. head = chr.Head
  100. anim = human.Animator
  101. activu = false
  102. Heartbeat = Instance.new("BindableEvent")
  103. Heartbeat.Name = "Heartbeat"
  104. Heartbeat.Parent = script
  105. frame = 0.03333333333333333
  106. tf = 0
  107.  
  108. --//====================================================\\--
  109. --|| TRAIL.... ( EDIT BY Penien23 )
  110. --\\====================================================//--
  111.  
  112. wait(0)
  113.  
  114. local p = game.Players.localPlayer
  115. local char = p.Character
  116. local mouse=p:GetMouse()
  117. local larm = char["Left Arm"]
  118. local rarm = char["Right Arm"]
  119. local lleg = char["Left Leg"]
  120. local rleg = char["Right Leg"]
  121. local torso = char.Torso
  122. local root = char.HumanoidRootPart
  123. local hed = char.Head
  124. ---------------------------------------------
  125.  
  126. local PE1 = Instance.new("ParticleEmitter",rleg)
  127. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  128. PE1.LightEmission = NumberSequence.new(0.2)
  129. PE1.Size = NumberSequence.new(1.2)
  130. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  131. PE1.Lifetime = NumberRange.new(.5)
  132. PE1.Rate = 10
  133. PE1.Transparency = NumberSequence.new(0.2)
  134. PE1.LightEmission = NumberSequence.new(0.2)
  135. PE1.Rotation = NumberRange.new(260)
  136. PE1.Speed = NumberRange.new(0)
  137. PE1.RotSpeed = NumberRange.new(100)
  138.  
  139. ----------------------------------------------------
  140. local PE1 = Instance.new("ParticleEmitter",rarm)
  141. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  142. PE1.LightEmission = NumberSequence.new(0.2)
  143. PE1.Size = NumberSequence.new(1.2)
  144. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  145. PE1.Lifetime = NumberRange.new(.5)
  146. PE1.Rate = 10
  147. PE1.Transparency = NumberSequence.new(0.2)
  148. PE1.LightEmission = NumberSequence.new(0.2)
  149. PE1.Rotation = NumberRange.new(260)
  150. PE1.Speed = NumberRange.new(0)
  151. PE1.RotSpeed = NumberRange.new(100)
  152. ---------------------------------------------
  153.  
  154. local PE1 = Instance.new("ParticleEmitter",lleg)
  155. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  156. PE1.LightEmission = NumberSequence.new(0.2)
  157. PE1.Size = NumberSequence.new(1.2)
  158. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  159. PE1.Lifetime = NumberRange.new(.5)
  160. PE1.Rate = 10
  161. PE1.Transparency = NumberSequence.new(0.2)
  162. PE1.LightEmission = NumberSequence.new(0.2)
  163. PE1.Rotation = NumberRange.new(260)
  164. PE1.Speed = NumberRange.new(0)
  165. PE1.RotSpeed = NumberRange.new(100)
  166. ---------------------------------------------
  167.  
  168. local PE1 = Instance.new("ParticleEmitter",larm)
  169. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  170. PE1.LightEmission = NumberSequence.new(0.2)
  171. PE1.Size = NumberSequence.new(1.2)
  172. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  173. PE1.Lifetime = NumberRange.new(.5)
  174. PE1.Rate = 10
  175. PE1.Transparency = NumberSequence.new(0.2)
  176. PE1.LightEmission = NumberSequence.new(0.2)
  177. PE1.Rotation = NumberRange.new(260)
  178. PE1.Speed = NumberRange.new(0)
  179. PE1.RotSpeed = NumberRange.new(100)
  180. ---------------------------------------------
  181.  
  182. local PE1 = Instance.new("ParticleEmitter",torso)
  183. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  184. PE1.LightEmission = NumberSequence.new(0.2)
  185. PE1.Size = NumberSequence.new(1.2)
  186. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  187. PE1.Lifetime = NumberRange.new(.5)
  188. PE1.Rate = 10
  189. PE1.Transparency = NumberSequence.new(0.2)
  190. PE1.LightEmission = NumberSequence.new(0.2)
  191. PE1.Rotation = NumberRange.new(260)
  192. PE1.Speed = NumberRange.new(0)
  193. PE1.RotSpeed = NumberRange.new(100)
  194. ---------------------------------------------
  195.  
  196. local PE1 = Instance.new("ParticleEmitter",head)
  197. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  198. PE1.LightEmission = NumberSequence.new(0.2)
  199. PE1.Size = NumberSequence.new(1.2)
  200. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  201. PE1.Lifetime = NumberRange.new(.5)
  202. PE1.Rate = 10
  203. PE1.Transparency = NumberSequence.new(0.2)
  204. PE1.LightEmission = NumberSequence.new(0.2)
  205. PE1.Rotation = NumberRange.new(260)
  206. PE1.Speed = NumberRange.new(0)
  207. PE1.RotSpeed = NumberRange.new(100)
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216. --
  217. local Player = game:GetService('Players').LocalPlayer
  218. repeat wait() until Player.Character
  219. local Character = Player.Character
  220.  
  221. --All The Settings for Trails in this Script
  222. TrailSettings = {
  223. Lifetime = 0.7,
  224. Texture = 'rbxassetid://31270182',
  225. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  226. Color1 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color),
  227. Color2 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color),
  228. AllBody = true,
  229. UpperBodyOnly = false,
  230. LowerBodyOnly = false,
  231. Accessories = false,
  232. Extras = true,
  233. R15 = false, --Change to true if you're using R15
  234. R15Parts = {
  235. 'UpperTorso',
  236. 'LowerTorso',
  237. }
  238. }
  239.  
  240. local Trail; --Making other Trails uses this in this Script
  241.  
  242. --UpperBody Function
  243. UpperBody = function()
  244. if TrailSettings.R15 == false then
  245. A0 = Instance.new('Attachment',Character.Torso)
  246. A1 = Instance.new('Attachment',Character.Head)
  247. A2 = Instance.new('Attachment',Character['Right Arm'])
  248. A3 = Instance.new('Attachment',Character['Left Arm'])
  249. Trail = Instance.new('Trail',Character)
  250. Trail.Attachment0 = A0
  251. Trail.Attachment1 = A1
  252. Trail.Texture = TrailSettings.Texture
  253. Trail.Color = TrailSettings.Color1
  254. Trail.Lifetime = TrailSettings.Lifetime
  255. local Trail2 = Trail:Clone()
  256. Trail2.Parent = Character
  257. Trail2.Attachment1 = A2
  258. local Trail3 = Trail:Clone()
  259. Trail3.Parent = Character
  260. Trail3.Attachment1 = A3
  261. local Trail6 = Trail:Clone()
  262. Trail6.Parent = Character
  263. Trail6.Attachment0 = A1
  264. Trail6.Attachment1 = A2
  265. local Trail7 = Trail:Clone()
  266. Trail7.Parent = Character
  267. Trail7.Attachment0 = A1
  268. Trail7.Attachment1 = A3
  269. else
  270. A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
  271. A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
  272. A1 = Instance.new('Attachment',Character.Head)
  273. A2 = Instance.new('Attachment',Character['RightUpperArm'])
  274. A2R = Instance.new('Attachment',Character['RightLowerArm'])
  275. A3 = Instance.new('Attachment',Character['LeftUpperArm'])
  276. A3R = Instance.new('Attachment',Character['LeftLowerArm'])
  277. Trail = Instance.new('Trail',Character)
  278. Trail.Attachment0 = A0
  279. Trail.Attachment1 = A1
  280. Trail.Texture = TrailSettings.Texture
  281. Trail.Color = TrailSettings.Color1
  282. Trail.Lifetime = TrailSettings.Lifetime
  283. local Trail2 = Trail:Clone()
  284. Trail2.Parent = Character
  285. Trail2.Attachment1 = A2
  286. local Trail3 = Trail:Clone()
  287. Trail3.Parent = Character
  288. Trail3.Attachment1 = A3
  289. local Trail6 = Trail:Clone()
  290. Trail6.Parent = Character
  291. Trail6.Attachment0 = A1
  292. Trail6.Attachment1 = A2
  293. local Trail7 = Trail:Clone()
  294. Trail7.Parent = Character
  295. Trail7.Attachment0 = A1
  296. Trail7.Attachment1 = A3
  297. --R15 Trails
  298. local Trail1R = Trail:Clone()
  299. Trail1R.Parent = Character
  300. Trail1R.Attachment1 = A2R
  301. local Trail2R = Trail:Clone()
  302. Trail2R.Parent = Character
  303. Trail2R.Attachment1 = A3R
  304. local Trail6R = Trail:Clone()
  305. Trail6.Parent = Character
  306. Trail6.Attachment0 = A1
  307. Trail6.Attachment1 = A2R
  308. local Trail7R = Trail:Clone()
  309. Trail7.Parent = Character
  310. Trail7.Attachment0 = A1
  311. Trail7.Attachment1 = A3R
  312. end
  313. end
  314.  
  315. --Lower Body Function
  316. LowerBody = function()
  317. if TrailSettings.R15 == false then
  318. A4 = Instance.new('Attachment',Character['Right Leg'])
  319. A5 = Instance.new('Attachment',Character['Left Leg'])
  320. local Trail4 = Trail:Clone()
  321. Trail4.Parent = Character
  322. Trail4.Attachment1 = A4
  323. local Trail5 = Trail:Clone()
  324. Trail5.Parent = Character
  325. Trail5.Attachment1 = A5
  326. local Trail8 = Trail:Clone()
  327. Trail8.Parent = Character
  328. Trail8.Attachment0 = A2
  329. Trail8.Attachment1 = A4
  330. Trail8.Color = TrailSettings.Color2
  331. local Trail9 = Trail:Clone()
  332. Trail9.Parent = Character
  333. Trail9.Attachment0 = A3
  334. Trail9.Attachment1 = A5
  335. Trail9.Color = TrailSettings.Color2
  336. local FT = Trail:Clone()
  337. FT.Parent = Character
  338. FT.Attachment0 = A4
  339. FT.Attachment1 = A5
  340. FT.Color = TrailSettings.Color2
  341. else
  342. A4 = Instance.new('Attachment',Character['RightLowerLeg'])
  343. A4R = Instance.new('Attachment',Character['RightUpperLeg'])
  344. A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
  345. A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
  346. local Trail4 = Trail:Clone()
  347. Trail4.Parent = Character
  348. Trail4.Attachment1 = A4
  349. local Trail5 = Trail:Clone()
  350. Trail5.Parent = Character
  351. Trail5.Attachment1 = A5
  352. local Trail8 = Trail:Clone()
  353. Trail8.Parent = Character
  354. Trail8.Attachment0 = A2
  355. Trail8.Attachment1 = A4
  356. Trail8.Color = TrailSettings.Color2
  357. local Trail9 = Trail:Clone()
  358. Trail9.Parent = Character
  359. Trail9.Attachment0 = A3
  360. Trail9.Attachment1 = A5
  361. Trail9.Color = TrailSettings.Color2
  362. local FT = Trail:Clone()
  363. FT.Parent = Character
  364. FT.Attachment0 = A4
  365. FT.Attachment1 = A5
  366. FT.Color = TrailSettings.Color2
  367. --R15 Trails
  368. local Trail3R = Trail:Clone()
  369. Trail3R.Parent = Character
  370. Trail3R.Attachment1 = A4R
  371. local Trail4R = Trail:Clone()
  372. Trail4R.Parent = Character
  373. Trail4R.Attachment1 = A5R
  374. local Trail8 = Trail:Clone()
  375. Trail8.Parent = Character
  376. Trail8.Attachment0 = A2R
  377. Trail8.Attachment1 = A4R
  378. Trail8.Color = TrailSettings.Color2
  379. local Trail9 = Trail:Clone()
  380. Trail9.Parent = Character
  381. Trail9.Attachment0 = A3R
  382. Trail9.Attachment1 = A5R
  383. Trail9.Color = TrailSettings.Color2
  384. local FT2R = Trail:Clone()
  385. FT2R.Parent = Character
  386. FT2R.Attachment0 = A4R
  387. FT2R.Attachment1 = A5R
  388. FT2R.Color = TrailSettings.Color2
  389. end
  390. end
  391.  
  392. --All Body Function calling Both Functions
  393. AllBody = function()
  394. UpperBody()
  395. LowerBody()
  396. end
  397.  
  398. --Checking to make sure that Only some Variables are Selected else do All Body
  399. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  400. TrailSettings.UpperBodyOnly = false
  401. TrailSettings.LowerBodyOnly = false
  402. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  403. TrailSettings.UpperBodyOnly = false
  404. TrailSettings.LowerBodyOnly = false
  405. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  406. TrailSettings.UpperBodyOnly = false
  407. TrailSettings.LowerBodyOnly = false
  408. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  409. TrailSettings.AllBody = true
  410. TrailSettings.UpperBodyOnly = false
  411. TrailSettings.LowerBodyOnly = false
  412. end
  413.  
  414. --Call Trail Functions
  415. if TrailSettings.UpperBodyOnly == true then
  416. UpperBody()
  417. print('Called Upper Body Trail')
  418. elseif TrailSettings.LowerBodyOnly == true then
  419. LowerBody()
  420. print('Called Lower Body Trail')
  421. elseif TrailSettings.AllBody == true then
  422. AllBody()
  423. print('Called Full Body Trail')
  424. end
  425.  
  426. --Trails for Accessories
  427. if TrailSettings.Accessories == true then
  428. for Index,Item in pairs(Character:GetChildren()) do
  429. if Item:IsA'Accessory' then
  430. local AA = Instance.new('Attachment',Item.Handle)
  431. local ATrail = Trail:Clone()
  432. ATrail.Parent = Character
  433. ATrail.Attachment1 = AA
  434. end
  435. end
  436. end
  437.  
  438. --Extras
  439. if TrailSettings.Extras == true then
  440. --Making an Invisible Platform Part
  441. local a = Instance.new('Part',Character)
  442. a.CanCollide = false
  443. a.Size = Vector3.new(2,.2,2)
  444. a.Transparency = 1
  445.  
  446. --Constantly putting it under your feet
  447. if TrailSettings.R15 == false then
  448. spawn(function()
  449. game:GetService('RunService').RenderStepped:connect(function()
  450. a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0)
  451. end)
  452. end)
  453. else
  454. spawn(function()
  455. game:GetService('RunService').RenderStepped:connect(function()
  456. a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0)
  457. end)
  458. end)
  459. end
  460.  
  461. --Make a Trail from both feet to the Platform
  462. spawn(function()
  463. repeat wait() until Trail
  464. local AB = Instance.new('Attachment',a)
  465. local ABT = Trail:Clone()
  466. ABT.Parent = Character
  467. ABT.Attachment0 = A4
  468. ABT.Attachment1 = AB
  469. ABT.Color = TrailSettings.Color2
  470. local ABT2 = Trail:Clone()
  471. ABT2.Parent = Character
  472. ABT2.Attachment0 = A5
  473. ABT2.Attachment1 = AB
  474. ABT2.Color = TrailSettings.Color2
  475. end)
  476. end
  477. --
  478.  
  479. --//====================================================\\--
  480. --|| CREATED BY SHACKLUSTER
  481. --\\====================================================//--
  482.  
  483.  
  484.  
  485. wait(0.2)
  486.  
  487.  
  488.  
  489. Player = game:GetService("Players").LocalPlayer
  490. PlayerGui = Player.PlayerGui
  491. Cam = workspace.CurrentCamera
  492. Backpack = Player.Backpack
  493. Character = Player.Character
  494. Humanoid = Character.Humanoid
  495. Mouse = Player:GetMouse()
  496. RootPart = Character["HumanoidRootPart"]
  497. Torso = Character["Torso"]
  498. Head = Character["Head"]
  499. RightArm = Character["Right Arm"]
  500. LeftArm = Character["Left Arm"]
  501. RightLeg = Character["Right Leg"]
  502. LeftLeg = Character["Left Leg"]
  503. RootJoint = RootPart["RootJoint"]
  504. Neck = Torso["Neck"]
  505. RightShoulder = Torso["Right Shoulder"]
  506. LeftShoulder = Torso["Left Shoulder"]
  507. RightHip = Torso["Right Hip"]
  508. LeftHip = Torso["Left Hip"]
  509. local sick = Instance.new("Sound",Character)
  510. sick.SoundId = "rbxassetid://450783524"
  511. sick.Looped = true
  512. sick.Pitch = 1
  513. sick.Volume = 50
  514. sick:Play()
  515.  
  516. IT = Instance.new
  517. CF = CFrame.new
  518. VT = Vector3.new
  519. RAD = math.rad
  520. C3 = Color3.new
  521. UD2 = UDim2.new
  522. BRICKC = BrickColor.new
  523. ANGLES = CFrame.Angles
  524. EULER = CFrame.fromEulerAnglesXYZ
  525. COS = math.cos
  526. ACOS = math.acos
  527. SIN = math.sin
  528. ASIN = math.asin
  529. ABS = math.abs
  530. MRANDOM = math.random
  531. FLOOR = math.floor
  532.  
  533. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  534. local NEWMESH = IT(MESH)
  535. if MESH == "SpecialMesh" then
  536. NEWMESH.MeshType = MESHTYPE
  537. if MESHID ~= "nil" and MESHID ~= "" then
  538. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  539. end
  540. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  541. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  542. end
  543. end
  544. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  545. NEWMESH.Scale = SCALE
  546. NEWMESH.Parent = PARENT
  547. return NEWMESH
  548. end
  549.  
  550. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  551. local NEWPART = IT("Part")
  552. NEWPART.formFactor = FORMFACTOR
  553. NEWPART.Reflectance = REFLECTANCE
  554. NEWPART.Transparency = TRANSPARENCY
  555. NEWPART.CanCollide = false
  556. NEWPART.Locked = true
  557. NEWPART.Anchored = true
  558. if ANCHOR == false then
  559. NEWPART.Anchored = false
  560. end
  561. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  562. NEWPART.Name = NAME
  563. NEWPART.Size = SIZE
  564. NEWPART.Position = Torso.Position
  565. NEWPART.Material = MATERIAL
  566. NEWPART:BreakJoints()
  567. NEWPART.Parent = PARENT
  568. return NEWPART
  569. end
  570.  
  571. --//=================================\\
  572. --|| CUSTOMIZATION
  573. --\\=================================//
  574.  
  575. Player_Size = 1 --Size of the player.
  576. Animation_Speed = 3
  577. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  578.  
  579. local Speed = 16
  580. local Effects2 = {}
  581.  
  582. --//=================================\\
  583. --|| END OF CUSTOMIZATION
  584. --\\=================================//
  585.  
  586. local function weldBetween(a, b)
  587. local weldd = Instance.new("ManualWeld")
  588. weldd.Part0 = a
  589. weldd.Part1 = b
  590. weldd.C0 = CFrame.new()
  591. weldd.C1 = b.CFrame:inverse() * a.CFrame
  592. weldd.Parent = a
  593. return weldd
  594. end
  595.  
  596. --//=================================\\
  597. --|| USEFUL VALUES
  598. --\\=================================//
  599.  
  600. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  601. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  602. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  603. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  604. local CHANGEDEFENSE = 0
  605. local CHANGEDAMAGE = 0
  606. local CHANGEMOVEMENT = 0
  607. local ANIM = "Idle"
  608. local ATTACK = false
  609. local EQUIPPED = false
  610. local HOLD = false
  611. local COMBO = 1
  612. local Rooted = false
  613. local SINE = 0
  614. local KEYHOLD = false
  615. local CHANGE = 2 / Animation_Speed
  616. local WALKINGANIM = false
  617. local WALK = 0
  618. local VALUE1 = false
  619. local VALUE2 = false
  620. local ROBLOXIDLEANIMATION = IT("Animation")
  621. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  622. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  623. --ROBLOXIDLEANIMATION.Parent = Humanoid
  624. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  625. WEAPONGUI.Name = "Weapon GUI"
  626. local Weapon = IT("Model")
  627. Weapon.Name = "Adds"
  628. local HITFLOOR = nil
  629. local Effects = IT("Folder", Weapon)
  630. Effects.Name = "Effects"
  631. local ANIMATOR = Humanoid.Animator
  632. local ANIMATE = Character.Animate
  633. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  634. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  635. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  636. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  637. local UNANCHOR = true
  638.  
  639. local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255)
  640.  
  641. --//=================================\\
  642. --\\=================================//
  643.  
  644.  
  645. --//=================================\\
  646. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  647. --\\=================================//
  648.  
  649. ArtificialHB = Instance.new("BindableEvent", script)
  650. ArtificialHB.Name = "ArtificialHB"
  651.  
  652. script:WaitForChild("ArtificialHB")
  653.  
  654. frame = Frame_Speed
  655. tf = 0
  656. allowframeloss = false
  657. tossremainder = false
  658. lastframe = tick()
  659. script.ArtificialHB:Fire()
  660.  
  661. game:GetService("RunService").Heartbeat:connect(function(s, p)
  662. tf = tf + s
  663. if tf >= frame then
  664. if allowframeloss then
  665. script.ArtificialHB:Fire()
  666. lastframe = tick()
  667. else
  668. for i = 1, math.floor(tf / frame) do
  669. script.ArtificialHB:Fire()
  670. end
  671. lastframe = tick()
  672. end
  673. if tossremainder then
  674. tf = 0
  675. else
  676. tf = tf - frame * math.floor(tf / frame)
  677. end
  678. end
  679. end)
  680.  
  681. --//=================================\\
  682. --\\=================================//
  683.  
  684.  
  685.  
  686.  
  687.  
  688. --//=================================\\
  689. --|| SOME FUNCTIONS
  690. --\\=================================//
  691.  
  692. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  693. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  694. end
  695.  
  696. function PositiveAngle(NUMBER)
  697. if NUMBER >= 0 then
  698. NUMBER = 0
  699. end
  700. return NUMBER
  701. end
  702.  
  703. function NegativeAngle(NUMBER)
  704. if NUMBER <= 0 then
  705. NUMBER = 0
  706. end
  707. return NUMBER
  708. end
  709.  
  710. function Swait(NUMBER)
  711. if NUMBER == 0 or NUMBER == nil then
  712. ArtificialHB.Event:wait()
  713. else
  714. for i = 1, NUMBER do
  715. ArtificialHB.Event:wait()
  716. end
  717. end
  718. end
  719.  
  720. function QuaternionFromCFrame(cf)
  721. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  722. local trace = m00 + m11 + m22
  723. if trace > 0 then
  724. local s = math.sqrt(1 + trace)
  725. local recip = 0.5 / s
  726. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  727. else
  728. local i = 0
  729. if m11 > m00 then
  730. i = 1
  731. end
  732. if m22 > (i == 0 and m00 or m11) then
  733. i = 2
  734. end
  735. if i == 0 then
  736. local s = math.sqrt(m00 - m11 - m22 + 1)
  737. local recip = 0.5 / s
  738. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  739. elseif i == 1 then
  740. local s = math.sqrt(m11 - m22 - m00 + 1)
  741. local recip = 0.5 / s
  742. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  743. elseif i == 2 then
  744. local s = math.sqrt(m22 - m00 - m11 + 1)
  745. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  746. end
  747. end
  748. end
  749.  
  750. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  751. local xs, ys, zs = x + x, y + y, z + z
  752. local wx, wy, wz = w * xs, w * ys, w * zs
  753. local xx = x * xs
  754. local xy = x * ys
  755. local xz = x * zs
  756. local yy = y * ys
  757. local yz = y * zs
  758. local zz = z * zs
  759. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  760. end
  761.  
  762. function QuaternionSlerp(a, b, t)
  763. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  764. local startInterp, finishInterp;
  765. if cosTheta >= 0.0001 then
  766. if (1 - cosTheta) > 0.0001 then
  767. local theta = ACOS(cosTheta)
  768. local invSinTheta = 1 / SIN(theta)
  769. startInterp = SIN((1 - t) * theta) * invSinTheta
  770. finishInterp = SIN(t * theta) * invSinTheta
  771. else
  772. startInterp = 1 - t
  773. finishInterp = t
  774. end
  775. else
  776. if (1 + cosTheta) > 0.0001 then
  777. local theta = ACOS(-cosTheta)
  778. local invSinTheta = 1 / SIN(theta)
  779. startInterp = SIN((t - 1) * theta) * invSinTheta
  780. finishInterp = SIN(t * theta) * invSinTheta
  781. else
  782. startInterp = t - 1
  783. finishInterp = t
  784. end
  785. end
  786. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  787. end
  788.  
  789. function Clerp(a, b, t)
  790. local qa = {QuaternionFromCFrame(a)}
  791. local qb = {QuaternionFromCFrame(b)}
  792. local ax, ay, az = a.x, a.y, a.z
  793. local bx, by, bz = b.x, b.y, b.z
  794. local _t = 1 - t
  795. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  796. end
  797.  
  798. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  799. local frame = IT("Frame")
  800. frame.BackgroundTransparency = TRANSPARENCY
  801. frame.BorderSizePixel = BORDERSIZEPIXEL
  802. frame.Position = POSITION
  803. frame.Size = SIZE
  804. frame.BackgroundColor3 = COLOR
  805. frame.BorderColor3 = BORDERCOLOR
  806. frame.Name = NAME
  807. frame.Parent = PARENT
  808. return frame
  809. end
  810.  
  811. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  812. local label = IT("TextLabel")
  813. label.BackgroundTransparency = 1
  814. label.Size = UD2(1, 0, 1, 0)
  815. label.Position = UD2(0, 0, 0, 0)
  816. label.TextColor3 = TEXTCOLOR
  817. label.TextStrokeTransparency = STROKETRANSPARENCY
  818. label.TextTransparency = TRANSPARENCY
  819. label.FontSize = TEXTFONTSIZE
  820. label.Font = TEXTFONT
  821. label.BorderSizePixel = BORDERSIZEPIXEL
  822. label.TextScaled = false
  823. label.Text = TEXT
  824. label.Name = NAME
  825. label.Parent = PARENT
  826. return label
  827. end
  828.  
  829. function NoOutlines(PART)
  830. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  831. end
  832.  
  833.  
  834. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  835. local NEWWELD = IT(TYPE)
  836. NEWWELD.Part0 = PART0
  837. NEWWELD.Part1 = PART1
  838. NEWWELD.C0 = C0
  839. NEWWELD.C1 = C1
  840. NEWWELD.Parent = PARENT
  841. return NEWWELD
  842. end
  843.  
  844. function CreateSound(ID, PARENT, VOLUME, PITCH)
  845. local NEWSOUND = nil
  846. coroutine.resume(coroutine.create(function()
  847. NEWSOUND = IT("Sound", PARENT)
  848. NEWSOUND.Volume = VOLUME
  849. NEWSOUND.Pitch = PITCH
  850. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  851. Swait()
  852. NEWSOUND:play()
  853. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  854. end))
  855. return NEWSOUND
  856. end
  857.  
  858. function CFrameFromTopBack(at, top, back)
  859. local right = top:Cross(back)
  860. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  861. end
  862.  
  863. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  864. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  865. local mesh = IT("SpecialMesh",wave)
  866. mesh.MeshType = "FileMesh"
  867. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  868. mesh.Scale = SIZE
  869. mesh.Offset = VT(0,0,-SIZE.X/8)
  870. wave.CFrame = CFRAME
  871. coroutine.resume(coroutine.create(function(PART)
  872. for i = 1, WAIT do
  873. Swait()
  874. mesh.Scale = mesh.Scale + GROW
  875. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  876. if DOESROT == true then
  877. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  878. end
  879. wave.Transparency = wave.Transparency + (0.5/WAIT)
  880. if wave.Transparency > 0.99 then
  881. wave:remove()
  882. end
  883. end
  884. end))
  885. end
  886.  
  887. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  888. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  889. local mesh = IT("SpecialMesh",wave)
  890. mesh.MeshType = "FileMesh"
  891. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  892. mesh.Scale = SIZE
  893. --mesh.Offset = VT(0,0,-SIZE.X/8)
  894. wave.CFrame = CFRAME
  895. coroutine.resume(coroutine.create(function(PART)
  896. for i = 1, WAIT do
  897. Swait()
  898. mesh.Scale = mesh.Scale + GROW
  899. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  900. if DOESROT == true then
  901. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  902. end
  903. wave.Transparency = wave.Transparency + (0.5/WAIT)
  904. if wave.Transparency > 0.99 then
  905. wave:remove()
  906. end
  907. end
  908. end))
  909. end
  910.  
  911. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  912. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  913. local mesh = IT("SpecialMesh",wave)
  914. mesh.MeshType = "FileMesh"
  915. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  916. mesh.Scale = SIZE
  917. wave.CFrame = CFRAME
  918. coroutine.resume(coroutine.create(function(PART)
  919. for i = 1, WAIT do
  920. Swait()
  921. mesh.Scale = mesh.Scale + GROW
  922. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  923. if DOESROT == true then
  924. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  925. end
  926. wave.Transparency = wave.Transparency + (0.5/WAIT)
  927. if wave.Transparency > 0.99 then
  928. wave:remove()
  929. end
  930. end
  931. end))
  932. end
  933.  
  934.  
  935. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  936. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  937. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  938. wave.CFrame = CFRAME
  939. coroutine.resume(coroutine.create(function(PART)
  940. for i = 1, WAIT do
  941. Swait()
  942. mesh.Scale = mesh.Scale * GROW
  943. wave.Transparency = wave.Transparency + (0.5/WAIT)
  944. if wave.Transparency > 0.99 then
  945. wave:remove()
  946. end
  947. end
  948. end))
  949. end
  950.  
  951. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  952. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  953. local mesh = IT("SpecialMesh",wave)
  954. mesh.MeshType = "Sphere"
  955. mesh.Scale = SIZE
  956. mesh.Offset = VT(0,0,0)
  957. wave.CFrame = CFRAME
  958. coroutine.resume(coroutine.create(function(PART)
  959. for i = 1, WAIT do
  960. Swait()
  961. mesh.Scale = mesh.Scale + GROW
  962. wave.Transparency = wave.Transparency + (1/WAIT)
  963. if wave.Transparency > 0.99 then
  964. wave:remove()
  965. end
  966. end
  967. end))
  968. end
  969.  
  970. function MakeForm(PART,TYPE)
  971. if TYPE == "Cyl" then
  972. local MSH = IT("CylinderMesh",PART)
  973. elseif TYPE == "Ball" then
  974. local MSH = IT("SpecialMesh",PART)
  975. MSH.MeshType = "Sphere"
  976. elseif TYPE == "Wedge" then
  977. local MSH = IT("SpecialMesh",PART)
  978. MSH.MeshType = "Wedge"
  979. end
  980. end
  981.  
  982. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  983. if FLOOR ~= nil then
  984. coroutine.resume(coroutine.create(function()
  985. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  986. PART.CFrame = CF(POSITION)
  987. for i = 1, 45 do
  988. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  989. RingPiece.Material = FLOOR.Material
  990. RingPiece.Color = FLOOR.Color
  991. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  992. Debris:AddItem(RingPiece,SWAIT/100)
  993. end
  994. PART:remove()
  995. end))
  996. end
  997. end
  998.  
  999. function CheckTableForString(Table, String)
  1000. for i, v in pairs(Table) do
  1001. if string.find(string.lower(String), string.lower(v)) then
  1002. return true
  1003. end
  1004. end
  1005. return false
  1006. end
  1007.  
  1008. function CheckIntangible(Hit)
  1009. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1010. if Hit and Hit.Parent then
  1011. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1012. return true
  1013. end
  1014. end
  1015. return false
  1016. end
  1017.  
  1018. Debris = game:GetService("Debris")
  1019.  
  1020. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1021. local Direction = CFrame.new(StartPos, Vec).lookVector
  1022. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1023. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1024. if RayHit and CheckIntangible(RayHit) then
  1025. if DelayIfHit then
  1026. wait()
  1027. end
  1028. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1029. end
  1030. return RayHit, RayPos, RayNormal
  1031. end
  1032.  
  1033. function turnto(position)
  1034. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1035. end
  1036.  
  1037. --//=================================\\
  1038. --|| WEAPON CREATION
  1039. --\\=================================//
  1040.  
  1041. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "White", "Neon Gauntlet Part", VT(1.01*0.1,1.4*0.1,1.01*0.1),false)
  1042. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * 0.1, -0.25 * 0.1, 0 * 0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1043.  
  1044.  
  1045. for _, c in pairs(Weapon:GetChildren()) do
  1046. if c.ClassName == "Part" then
  1047. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1048. end
  1049. end
  1050.  
  1051. Weapon.Parent = Character
  1052.  
  1053. Humanoid.Died:connect(function()
  1054. ATTACK = true
  1055. end)
  1056.  
  1057. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1058. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1059. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1060. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1061. local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  1062.  
  1063. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] SMASH!", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  1064. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] DETROIT SMASH!", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  1065. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] TELEPORT!", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
  1066. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] TEAXS SMASH!", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4")
  1067. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[P] ONE FOR ALL FULL COWL!!!!!", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 7")
  1068.  
  1069. --//=================================\\
  1070. --|| DAMAGE FUNCTIONS
  1071. --\\=================================//
  1072.  
  1073. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1074. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1075. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1076. local BODYGYRO = IT("BodyGyro", STATPART)
  1077. local BODYPOSITION = IT("BodyPosition", STATPART)
  1078. BODYPOSITION.P = 2000
  1079. BODYPOSITION.D = 100
  1080. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1081. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1082. game:GetService("Debris"):AddItem(STATPART ,5)
  1083. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1084. BILLBOARDGUI.Adornee = STATPART
  1085. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1086. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1087. BILLBOARDGUI.AlwaysOnTop = false
  1088. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1089. TEXTLABEL.BackgroundTransparency = 1
  1090. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1091. TEXTLABEL.Text = TEXT
  1092. TEXTLABEL.Font = "SciFi"
  1093. TEXTLABEL.FontSize="Size42"
  1094. TEXTLABEL.TextColor3 = COLOR
  1095. TEXTLABEL.TextStrokeTransparency = 1
  1096. TEXTLABEL.TextScaled = true
  1097. TEXTLABEL.TextWrapped = true
  1098. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1099. if LABELTYPE == "Normal" then
  1100. for i = 1, 30 do
  1101. Swait()
  1102. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  1103. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1104. end
  1105. elseif LABELTYPE == "Debuff" then
  1106. for i = 1, 30 do
  1107. Swait()
  1108. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  1109. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1110. end
  1111. elseif LABELTYPE == "Shock" then
  1112. local ORIGIN = STATPART.Position
  1113. for i = 1, 30 do
  1114. Swait()
  1115. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  1116. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1117. end
  1118. end
  1119. THEPART.Parent = nil
  1120. end),STATPART, BODYPOSITION, TEXTLABEL)
  1121. end
  1122.  
  1123. --//=================================\\
  1124. --|| DAMAGING
  1125. --\\=================================//
  1126.  
  1127. function killnearest(position,range,maxstrength,direction)
  1128. for i,v in ipairs(workspace:GetChildren()) do
  1129. local body = v:GetChildren()
  1130. for part = 1, #body do
  1131. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1132. if(body[part].Position - position).Magnitude < range then
  1133. if v.ClassName == "Model" then
  1134. --v:BreakJoints()
  1135. end
  1136. local POS = position
  1137. coroutine.resume(coroutine.create(function()
  1138. body[part].Anchored = true
  1139. body[part].Parent = Effects
  1140. body[part].CanCollide = true
  1141. local SIZE = body[part].Size
  1142. body[part].Material = "Neon"
  1143. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1144. for i = 1, 75 do
  1145. Swait()
  1146. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1147. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1148. end
  1149. coroutine.resume(coroutine.create(function()
  1150. while true do
  1151. Swait()
  1152. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1153. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1154. end
  1155. end))
  1156. body[part].Anchored = false
  1157. body[part].Velocity = direction.lookVector*maxstrength
  1158. end))
  1159. end
  1160. end
  1161. end
  1162. if v.ClassName == "Part" then
  1163. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1164. local POS = position
  1165. coroutine.resume(coroutine.create(function()
  1166. v.Anchored = true
  1167. v.Parent = Effects
  1168. local SIZE = v.Size
  1169. v.Material = "Neon"
  1170. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1171. for i = 1, 75 do
  1172. Swait()
  1173. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1174. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1175. end
  1176. coroutine.resume(coroutine.create(function()
  1177. while true do
  1178. Swait()
  1179. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1180. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1181. end
  1182. end))
  1183. v.Anchored = false
  1184. v.Velocity = direction.lookVector*maxstrength
  1185. end))
  1186. end
  1187. end
  1188. end
  1189. end
  1190.  
  1191. --//=================================\\
  1192. --|| ATTACK FUNCTIONS AND STUFF
  1193. --\\=================================//
  1194.  
  1195. function AttackTemplate()
  1196. ATTACK = true
  1197. Rooted = false
  1198. for i=0, 1, 0.1 / Animation_Speed do
  1199. Swait()
  1200. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1201. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1202. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1203. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1204. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1205. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1206. end
  1207. ATTACK = false
  1208. Rooted = false
  1209. end
  1210.  
  1211. function GoldenPunch()
  1212. ATTACK = true
  1213. Rooted = false
  1214. local SPEED = Speed
  1215. Speed = 8
  1216. CreateSound("169445572", RightArm, 10, 1.1)
  1217. for i=0, 4, 0.1 / Animation_Speed do
  1218. Swait()
  1219. turnto(Mouse.Hit.p)
  1220. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"White",VT(-1/15,-1/15,-1/15))
  1221. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"White",VT(-2/15,-2/15,-2/15))
  1222. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1223. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1224. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1225. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1226. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1227. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1228. end
  1229. for i=0, 0.15, 0.1 / Animation_Speed do
  1230. Swait()
  1231. turnto(Mouse.Hit.p)
  1232. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1233. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1234. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1235. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1236. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1237. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1238. end
  1239. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "White", "Punch", VT(50,50,50),false)
  1240. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1241. PART.Shape = "Ball"
  1242. local bv = Instance.new("BodyVelocity")
  1243. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1244. bv.velocity = RootPart.CFrame.lookVector*600
  1245. bv.Parent = PART
  1246. bv.Name = "PROJECTILEVELOCITY"
  1247. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(2.5,0.2,2.5))
  1248. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(3,0.2,3))
  1249. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(2,0.6,2))
  1250. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(2.2,0.6,2.2))
  1251. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1252. coroutine.resume(coroutine.create(function()
  1253. for i = 1, 10 do
  1254. Swait()
  1255. PART.Transparency = PART.Transparency + 0.2/10
  1256. PART.Size = PART.Size + VT(5,5,5)
  1257. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  1258. end
  1259. PART:Destroy()
  1260. end))
  1261. for i=0, 1, 0.1 / Animation_Speed do
  1262. Swait()
  1263. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1264. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1265. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1266. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1267. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1268. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1269. end
  1270. Speed = SPEED
  1271. ATTACK = false
  1272. Rooted = false
  1273. end
  1274.  
  1275. function GoldenGrasp()
  1276. ATTACK = true
  1277. Rooted = false
  1278. local HASGRABBED = false
  1279. local WELD = nil
  1280. local TORS = nil
  1281. local hitting = FIST.Touched:connect(function(hit)
  1282. if hit.Parent:FindFirstChild("Humanoid") then
  1283. if hit.Parent.Humanoid.Health ~= 0 then
  1284. UNANCHOR = false
  1285. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1286. TORS.Anchored = true
  1287. TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  1288. WELD = weldBetween(RightArm,TORS)
  1289. HASGRABBED = true
  1290. Rooted = true
  1291. end
  1292. end
  1293. end)
  1294. for i=0, 1, 0.1 / Animation_Speed do
  1295. Swait()
  1296. if HASGRABBED == true then
  1297. break
  1298. end
  1299. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed)
  1300. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed)
  1301. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1302. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1303. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1304. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1305. end
  1306. hitting:disconnect()
  1307. if HASGRABBED == true then
  1308. TORS.Anchored = false
  1309. RootPart.Anchored = true
  1310. for i=0, 2, 0.1 / Animation_Speed do
  1311. Swait()
  1312. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1313. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1314. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1315. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1316. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1317. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1318. end
  1319. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.5,0.3,0.5))
  1320. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"White",VT(0.6,0.3,0.6))
  1321. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "White", "Sound", VT(0,0,0))
  1322. SOUNDPART.CFrame = RootPart.CFrame
  1323. Debris:AddItem(SOUNDPART,5)
  1324. CreateSound("1295446488", SOUNDPART, 2, 1)
  1325. for i = 1, 15 do
  1326. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"White", 1 + MRANDOM(1,30)/15)
  1327. end
  1328. for i=0, 2, 0.1 / Animation_Speed do
  1329. Swait()
  1330. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1331. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1332. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1333. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1334. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1335. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1336. end
  1337. for i=0, 0.25, 0.1 / Animation_Speed do
  1338. Swait()
  1339. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
  1340. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1341. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1342. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1343. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1344. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1345. end
  1346. if HITFLOOR ~= nil then
  1347. CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85)
  1348. end
  1349. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1350. WELD:remove()
  1351. for i = 1, 25 do
  1352. Swait()
  1353. killnearest(RootPart.Position,45,100,Torso.CFrame)
  1354. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"White",VT(0.3,3,0.3))
  1355. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(1,0.4,1))
  1356. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"White",VT(2.3,0.3,2.3))
  1357. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"White", 1 + MRANDOM(1,30)/5)
  1358. Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"White", 1 + MRANDOM(1,30)/15)
  1359. end
  1360. end
  1361. UNANCHOR = true
  1362. ATTACK = false
  1363. Rooted = false
  1364. end
  1365.  
  1366. function Mach20()
  1367. local ORIGIN = RootPart.Position
  1368. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3,0.4))
  1369. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3.1,0.6))
  1370. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0))
  1371. SOUNDPART.CFrame = RootPart.CFrame
  1372. Debris:AddItem(SOUNDPART,5)
  1373. CreateSound("1295446488", SOUNDPART, 2, 1)
  1374. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
  1375. Swait()
  1376. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3,0.4))
  1377. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3.1,0.6))
  1378. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "White", "Sound", VT(0,0,0))
  1379. SOUNDPART.CFrame = RootPart.CFrame
  1380. Debris:AddItem(SOUNDPART,5)
  1381. CreateSound("1295446488", SOUNDPART, 2, 1)
  1382. if MRANDOM(1,8) == 1 then
  1383. ATTACK = true
  1384. Rooted = true
  1385. local FRUITSTABLE = {
  1386. {MeshId = "0", TextureId = "0", Color = "White"},
  1387. {MeshId = "0", TextureId = "0", Color = "White"},
  1388. {MeshId = "0", TextureId = "0", Color = "White"}
  1389. }
  1390. local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
  1391. local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
  1392. CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
  1393. FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0)
  1394. weldBetween(RightArm,FRUITMODEL)
  1395. for i=0, 4, 0.1 / Animation_Speed do
  1396. Swait()
  1397. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1398. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1399. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1400. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1401. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1402. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1403. end
  1404. CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
  1405. FRUITMODEL:remove()
  1406. for i = 1, 15 do
  1407. Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15)
  1408. end
  1409. for i=0, 0.5, 0.1 / Animation_Speed do
  1410. Swait()
  1411. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1412. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1413. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1414. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1415. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1416. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1417. end
  1418. ATTACK = false
  1419. Rooted = false
  1420. end
  1421. end
  1422.  
  1423. function ImplosionCollision()
  1424. ATTACK = true
  1425. Rooted = true
  1426. CreateSound("169445572", RightArm, 10, 0.8)
  1427. for i=0, 8, 0.1 / Animation_Speed do
  1428. Swait()
  1429. turnto(Mouse.Hit.p)
  1430. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"White",VT(0.2,0,0.2))
  1431. MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"White",VT(0.001,0.001,1),0)
  1432. MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"White",VT(0.001,0.001,2),0)
  1433. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"White",VT(-1/15,-1/15,-1/15)) RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1434. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1435. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1436. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1437. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1438. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1439. end
  1440. for i=0, 0.15, 0.1 / Animation_Speed do
  1441. Swait()
  1442. turnto(Mouse.Hit.p)
  1443. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1444. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1445. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1446. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1447. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1448. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1449. end
  1450. MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"White",VT(-0.04,-0.04,-0.04))
  1451. MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"White",VT(-0.035,-0.035,-0.035))
  1452. coroutine.resume(coroutine.create(function()
  1453. Swait(100)
  1454. for i = 1, 5 do
  1455. MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"White",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i))))
  1456. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(4.5*i,0.2,4.5*i))
  1457. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(5*i,0.2,5*i))
  1458. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(4*i,0.6,4*i))
  1459. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(5.2*i,0.6,5.2*i))
  1460. end
  1461. killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame)
  1462. for i = 1, 5 do
  1463. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1464. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1465. end
  1466. coroutine.resume(coroutine.create(function()
  1467. for i = 1, 50 do
  1468. Swait()
  1469. for i = 1, 1 do
  1470. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"White", 1 + MRANDOM(1,30)/5)
  1471. end
  1472. end
  1473. end))
  1474. end))
  1475. for i=0, 4, 0.1 / Animation_Speed do
  1476. Swait()
  1477. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1478. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1479. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1480. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1481. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1482. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1483. end
  1484. ATTACK = false
  1485. Rooted = false
  1486. end
  1487.  
  1488. --//=================================\\
  1489. --|| ASSIGN THINGS TO KEYS
  1490. --\\=================================//
  1491.  
  1492. function MouseDown(Mouse)
  1493. if ATTACK == false then
  1494. end
  1495. end
  1496.  
  1497. function MouseUp(Mouse)
  1498. HOLD = false
  1499. end
  1500.  
  1501. function KeyDown(Key)
  1502. KEYHOLD = true
  1503. if Key == "z" and ATTACK == false then
  1504. GoldenPunch()
  1505. end
  1506.  
  1507. if Key == "b" and ATTACK == false then
  1508. GoldenGrasp()
  1509. end
  1510.  
  1511. if Key == "c" and ATTACK == false then
  1512. Mach20()
  1513. end
  1514.  
  1515. if Key == "x" and ATTACK == false then
  1516. ImplosionCollision()
  1517. end
  1518.  
  1519. if Key == "p" and ATTACK == false then
  1520. if Speed == 16 then
  1521. Speed = 150
  1522. elseif Speed == 150 then
  1523. Speed = 16
  1524. end
  1525. end
  1526. end
  1527.  
  1528. function KeyUp(Key)
  1529. KEYHOLD = false
  1530. end
  1531.  
  1532. Mouse.Button1Down:connect(function(NEWKEY)
  1533. MouseDown(NEWKEY)
  1534. end)
  1535. Mouse.Button1Up:connect(function(NEWKEY)
  1536. MouseUp(NEWKEY)
  1537. end)
  1538. Mouse.KeyDown:connect(function(NEWKEY)
  1539. KeyDown(NEWKEY)
  1540. end)
  1541. Mouse.KeyUp:connect(function(NEWKEY)
  1542. KeyUp(NEWKEY)
  1543. end)
  1544.  
  1545. --//=================================\\
  1546. --\\=================================//
  1547.  
  1548.  
  1549. function unanchor()
  1550. if UNANCHOR == true then
  1551. g = Character:GetChildren()
  1552. for i = 1, #g do
  1553. if g[i].ClassName == "Part" then
  1554. g[i].Anchored = false
  1555. end
  1556. end
  1557. end
  1558. end
  1559.  
  1560.  
  1561. --//=================================\\
  1562. --|| WRAP THE WHOLE SCRIPT UP
  1563. --\\=================================//
  1564.  
  1565. Humanoid.Changed:connect(function(Jump)
  1566. if Jump == "Jump" and (Disable_Jump == true) then
  1567. Humanoid.Jump = false
  1568. end
  1569. end)
  1570.  
  1571. while true do
  1572. Swait()
  1573. ANIMATE.Parent = nil
  1574. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1575. IDLEANIMATION:Play()
  1576. SINE = SINE + CHANGE
  1577. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1578. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1579. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1580. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1581. local WALKSPEEDVALUE = 0
  1582. if Speed < 35 then
  1583. WALKSPEEDVALUE = 6
  1584. else
  1585. WALKSPEEDVALUE = 3
  1586. end
  1587. if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
  1588. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed)
  1589. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1590. if Speed < 35 then
  1591. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1592. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1593. else
  1594. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1595. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1596. end
  1597. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
  1598. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1599. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1600. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1601. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1602. end
  1603. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1604. ANIM = "Jump"
  1605. if ATTACK == false then
  1606. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1607. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1608. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1609. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1610. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1611. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1612. end
  1613. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1614. ANIM = "Fall"
  1615. if ATTACK == false then
  1616. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1617. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1618. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1619. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1620. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1621. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1622. end
  1623. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1624. ANIM = "Idle"
  1625. if ATTACK == false then
  1626. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1627. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1628. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1629. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1630. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1631. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1632. end
  1633. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
  1634. ANIM = "Walk"
  1635. WALK = WALK + 1 / Animation_Speed
  1636. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1637. WALK = 0
  1638. if WALKINGANIM == true then
  1639. WALKINGANIM = false
  1640. elseif WALKINGANIM == false then
  1641. WALKINGANIM = true
  1642. end
  1643. end
  1644. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1645. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1646. if ATTACK == false then
  1647. if Speed < 35 then
  1648. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1649. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1650. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1651. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1652. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1653. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1654. else
  1655. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1656. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1657. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1658. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1659. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1660. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1661. end
  1662. end
  1663. end
  1664. unanchor()
  1665. Humanoid.MaxHealth = "inf"
  1666. Humanoid.Health = "inf"
  1667. if Rooted == false then
  1668. Disable_Jump = false
  1669. Humanoid.WalkSpeed = Speed
  1670. elseif Rooted == true then
  1671. Disable_Jump = true
  1672. Humanoid.WalkSpeed = 0
  1673. end
  1674. local MATHS = {"0","1"}
  1675. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1676. Humanoid.PlatformStand = false
  1677. end
  1678.  
  1679. --//=================================\\
  1680. --\\=================================//
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686. --//====================================================\\--
  1687. --|| END OF SCRIPT
  1688. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement