Advertisement
Gotmilk0086

Deku

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