Advertisement
Penien23

Test

Sep 14th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.42 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. local rp = RealPlayer
  9. script.Parent = rp.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent then
  35. for _,f in pairs(t.Functions) do
  36. f(...)
  37. end
  38. end
  39. end
  40. m.TrigEvent = te
  41. UIS.TrigEvent = te
  42.  
  43. Event.OnServerEvent:Connect(function(plr,io)
  44. if plr~=rp then return end
  45. m.Target = io.Target
  46. m.Hit = io.Hit
  47. if not io.isMouse then
  48. local b = io.UserInputState == Enum.UserInputState.Begin
  49. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  50. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  51. end
  52. for _,t in pairs(CAS.Actions) do
  53. for _,k in pairs(t.Keys) do
  54. if k==io.KeyCode then
  55. t.Function(t.Name,io.UserInputState,io)
  56. end
  57. end
  58. end
  59. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  60. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  61. end
  62. end)
  63. Event.Parent = NLS([==[
  64. local Player = game:GetService("Players").LocalPlayer
  65. local Event = script:WaitForChild("UserInput_Event")
  66.  
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76.  
  77. local h,t
  78. --Give the server mouse data 30 times every second, but only if the values changed
  79. --If player is not moving their mouse, client won't fire events
  80. while wait(1/30) do
  81. if h~=Mouse.Hit or t~=Mouse.Target then
  82. h,t=Mouse.Hit,Mouse.Target
  83. Event:FireServer({isMouse=true,Target=t,Hit=h})
  84. end
  85. end]==],Player.Character)
  86.  
  87. ----Sandboxed game object that allows the usage of client-side methods and services
  88. --Real game object
  89. local _rg = game
  90.  
  91. --Metatable for fake service
  92. local fsmt = {
  93. __index = function(self,k)
  94. local s = rawget(self,"_RealService")
  95. if s then return s[k] end
  96. end,
  97. __newindex = function(self,k,v)
  98. local s = rawget(self,"_RealService")
  99. if s then s[k]=v end
  100. end,
  101. __call = function(self,...)
  102. local s = rawget(self,"_RealService")
  103. if s then return s(...) end
  104. end
  105. }
  106. local function FakeService(t,RealService)
  107. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  108. return setmetatable(t,fsmt)
  109. end
  110.  
  111. --Fake game object
  112. local g = {
  113. GetService = function(self,s)
  114. return self[s]
  115. end,
  116. Players = FakeService({
  117. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  118. },"Players"),
  119. UserInputService = FakeService(UIS,"UserInputService"),
  120. ContextActionService = FakeService(CAS,"ContextActionService"),
  121. }
  122. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  123. g.service = g.GetService
  124.  
  125. g.RunService = FakeService({
  126. RenderStepped = _rg:GetService("RunService").Heartbeat,
  127. BindToRenderStep = function(self,name,_,fun)
  128. self._btrs[name] = self.Heartbeat:Connect(fun)
  129. end,
  130. UnbindFromRenderStep = function(self,name)
  131. self._btrs[name]:Disconnect()
  132. end,
  133. },"RunService")
  134.  
  135. setmetatable(g,{
  136. __index=function(self,s)
  137. return _rg:GetService(s) or typeof(_rg[s])=="function"
  138. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  139. end,
  140. __newindex = fsmt.__newindex,
  141. __call = fsmt.__call
  142. })
  143. --Changing owner to fake player object to support owner:GetMouse()
  144. game,owner = g,g.Players.LocalPlayer
  145. end
  146.  
  147. Player = game:GetService("Players").LocalPlayer
  148. PlayerGui = Player.PlayerGui
  149. Cam = workspace.CurrentCamera
  150. Backpack = Player.Backpack
  151. Character = Player.Character
  152. Humanoid = Character.Humanoid
  153. Mouse = Player:GetMouse()
  154. RootPart = Character["HumanoidRootPart"]
  155. Torso = Character["Torso"]
  156. Head = Character["Head"]
  157. RightArm = Character["Right Arm"]
  158. LeftArm = Character["Left Arm"]
  159. RightLeg = Character["Right Leg"]
  160. LeftLeg = Character["Left Leg"]
  161. RootJoint = RootPart["RootJoint"]
  162. Neck = Torso["Neck"]
  163. RightShoulder = Torso["Right Shoulder"]
  164. LeftShoulder = Torso["Left Shoulder"]
  165. RightHip = Torso["Right Hip"]
  166. LeftHip = Torso["Left Hip"]
  167. local sick = Instance.new("Sound",Character)
  168. sick.SoundId = "rbxassetid://733456981"
  169. sick.Looped = true
  170. sick.Pitch = 1
  171. sick.Volume = 10000
  172. sick:Play()
  173. Humanoid.DisplayDistanceType = "None"
  174.  
  175. local naeeym2 = Instance.new("BillboardGui",Character)
  176. naeeym2.AlwaysOnTop = true
  177. naeeym2.Size = UDim2.new(5,35,2,35)
  178. naeeym2.StudsOffset = Vector3.new(0,3,0)
  179. naeeym2.Adornee = Character.Head
  180. naeeym2.Name = "Name"
  181. local tecks2 = Instance.new("TextLabel",naeeym2)
  182. tecks2.BackgroundTransparency = 1
  183. tecks2.TextScaled = true
  184. tecks2.BorderSizePixel = 0
  185. tecks2.Text = "Karma"
  186. tecks2.Font = "Code"
  187. tecks2.TextSize = 30
  188. tecks2.TextTransparency = 1
  189. tecks2.TextStrokeTransparency = 1
  190. tecks2.TextColor3 = Color3.new(1/0,0/1,1/0)
  191. tecks2.Size = UDim2.new(1,0,0.5,0)
  192. tecks2.Parent = naeeym2
  193.  
  194.  
  195. IT = Instance.new
  196. CF = CFrame.new
  197. VT = Vector3.new
  198. RAD = math.rad
  199. C3 = Color3.new
  200. UD2 = UDim2.new
  201. BRICKC = BrickColor.Random
  202. ANGLES = CFrame.Angles
  203. EULER = CFrame.fromEulerAnglesXYZ
  204. COS = math.cos
  205. ACOS = math.acos
  206. SIN = math.sin
  207. ASIN = math.asin
  208. ABS = math.abs
  209. MRANDOM = math.random
  210. FLOOR = math.floor
  211.  
  212. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  213. local NEWMESH = IT(MESH)
  214. if MESH == "SpecialMesh" then
  215. NEWMESH.MeshType = MESHTYPE
  216. if MESHID ~= "nil" and MESHID ~= "" then
  217. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  218. end
  219. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  220. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  221. end
  222. end
  223. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  224. NEWMESH.Scale = SCALE
  225. NEWMESH.Parent = PARENT
  226. return NEWMESH
  227. end
  228.  
  229. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  230. local NEWPART = IT("Part")
  231. NEWPART.formFactor = FORMFACTOR
  232. NEWPART.Reflectance = REFLECTANCE
  233. NEWPART.Transparency = TRANSPARENCY
  234. NEWPART.CanCollide = false
  235. NEWPART.Locked = true
  236. NEWPART.Anchored = true
  237. if ANCHOR == false then
  238. NEWPART.Anchored = false
  239. end
  240. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  241. NEWPART.Name = NAME
  242. NEWPART.Size = SIZE
  243. NEWPART.Position = Torso.Position
  244. NEWPART.Material = MATERIAL
  245. NEWPART:BreakJoints()
  246. NEWPART.Parent = PARENT
  247. return NEWPART
  248. end
  249.  
  250. --//=================================\\
  251. --|| CUSTOMIZATION
  252. --\\=================================//
  253.  
  254. Player_Size = 1 --Size of the player.
  255. Animation_Speed = 3
  256. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  257.  
  258. local Speed = 20
  259. local Effects2 = {}
  260.  
  261. --//=================================\\
  262. --|| END OF CUSTOMIZATION
  263. --\\=================================//
  264.  
  265. local function weldBetween(a, b)
  266. local weldd = Instance.new("ManualWeld")
  267. weldd.Part0 = a
  268. weldd.Part1 = b
  269. weldd.C0 = CFrame.new()
  270. weldd.C1 = b.CFrame:inverse() * a.CFrame
  271. weldd.Parent = a
  272. return weldd
  273. end
  274.  
  275. --//=================================\\
  276. --|| USEFUL VALUES
  277. --\\=================================//
  278.  
  279. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  280. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  281. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  282. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  283. local CHANGEDEFENSE = 0
  284. local CHANGEDAMAGE = 0
  285. local CHANGEMOVEMENT = 0
  286. local ANIM = "Idle"
  287. local ATTACK = false
  288. local EQUIPPED = false
  289. local HOLD = false
  290. local COMBO = 1
  291. local Rooted = false
  292. local INTRO = false
  293. local SINE = 0
  294. local KEYHOLD = false
  295. local CHANGE = 2 / Animation_Speed
  296. local WALKINGANIM = false
  297. local WALK = 0
  298. local VALUE1 = false
  299. local VALUE2 = false
  300. local ROBLOXIDLEANIMATION = IT("Animation")
  301. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  302. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  303. --ROBLOXIDLEANIMATION.Parent = Humanoid
  304. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  305. WEAPONGUI.Name = "Weapon GUI"
  306. local Weapon = IT("Model")
  307. Weapon.Name = "Adds"
  308. local HITFLOOR = nil
  309. local Effects = IT("Folder", Weapon)
  310. Effects.Name = "Effects"
  311. local ANIMATOR = Humanoid.Animator
  312. local ANIMATE = Character.Animate
  313. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  314. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  315. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  316. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  317. local UNANCHOR = true
  318.  
  319. local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255)
  320.  
  321. --//=================================\\
  322. --\\=================================//
  323.  
  324.  
  325. --//=================================\\
  326. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  327. --\\=================================//
  328.  
  329. ArtificialHB = Instance.new("BindableEvent", script)
  330. ArtificialHB.Name = "ArtificialHB"
  331.  
  332. script:WaitForChild("ArtificialHB")
  333.  
  334. frame = Frame_Speed
  335. tf = 0
  336. allowframeloss = false
  337. tossremainder = false
  338. lastframe = tick()
  339. script.ArtificialHB:Fire()
  340.  
  341. game:GetService("RunService").Heartbeat:connect(function(s, p)
  342. tf = tf + s
  343. if tf >= frame then
  344. if allowframeloss then
  345. script.ArtificialHB:Fire()
  346. lastframe = tick()
  347. else
  348. for i = 1, math.floor(tf / frame) do
  349. script.ArtificialHB:Fire()
  350. end
  351. lastframe = tick()
  352. end
  353. if tossremainder then
  354. tf = 0
  355. else
  356. tf = tf - frame * math.floor(tf / frame)
  357. end
  358. end
  359. end)
  360.  
  361. --//=================================\\
  362. --\\=================================//
  363.  
  364.  
  365.  
  366.  
  367.  
  368. --//=================================\\
  369. --|| SOME FUNCTIONS
  370. --\\=================================//
  371.  
  372. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  373. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  374. end
  375.  
  376. function PositiveAngle(NUMBER)
  377. if NUMBER >= 0 then
  378. NUMBER = 0
  379. end
  380. return NUMBER
  381. end
  382.  
  383. function NegativeAngle(NUMBER)
  384. if NUMBER <= 0 then
  385. NUMBER = 0
  386. end
  387. return NUMBER
  388. end
  389.  
  390. function Swait(NUMBER)
  391. if NUMBER == 0 or NUMBER == nil then
  392. ArtificialHB.Event:wait()
  393. else
  394. for i = 1, NUMBER do
  395. ArtificialHB.Event:wait()
  396. end
  397. end
  398. end
  399.  
  400. function QuaternionFromCFrame(cf)
  401. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  402. local trace = m00 + m11 + m22
  403. if trace > 0 then
  404. local s = math.sqrt(1 + trace)
  405. local recip = 0.5 / s
  406. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  407. else
  408. local i = 0
  409. if m11 > m00 then
  410. i = 1
  411. end
  412. if m22 > (i == 0 and m00 or m11) then
  413. i = 2
  414. end
  415. if i == 0 then
  416. local s = math.sqrt(m00 - m11 - m22 + 1)
  417. local recip = 0.5 / s
  418. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  419. elseif i == 1 then
  420. local s = math.sqrt(m11 - m22 - m00 + 1)
  421. local recip = 0.5 / s
  422. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  423. elseif i == 2 then
  424. local s = math.sqrt(m22 - m00 - m11 + 1)
  425. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  426. end
  427. end
  428. end
  429.  
  430. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  431. local xs, ys, zs = x + x, y + y, z + z
  432. local wx, wy, wz = w * xs, w * ys, w * zs
  433. local xx = x * xs
  434. local xy = x * ys
  435. local xz = x * zs
  436. local yy = y * ys
  437. local yz = y * zs
  438. local zz = z * zs
  439. 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))
  440. end
  441.  
  442. function QuaternionSlerp(a, b, t)
  443. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  444. local startInterp, finishInterp;
  445. if cosTheta >= 0.0001 then
  446. if (1 - cosTheta) > 0.0001 then
  447. local theta = ACOS(cosTheta)
  448. local invSinTheta = 1 / SIN(theta)
  449. startInterp = SIN((1 - t) * theta) * invSinTheta
  450. finishInterp = SIN(t * theta) * invSinTheta
  451. else
  452. startInterp = 1 - t
  453. finishInterp = t
  454. end
  455. else
  456. if (1 + cosTheta) > 0.0001 then
  457. local theta = ACOS(-cosTheta)
  458. local invSinTheta = 1 / SIN(theta)
  459. startInterp = SIN((t - 1) * theta) * invSinTheta
  460. finishInterp = SIN(t * theta) * invSinTheta
  461. else
  462. startInterp = t - 1
  463. finishInterp = t
  464. end
  465. end
  466. 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
  467. end
  468.  
  469. function Clerp(a, b, t)
  470. local qa = {QuaternionFromCFrame(a)}
  471. local qb = {QuaternionFromCFrame(b)}
  472. local ax, ay, az = a.x, a.y, a.z
  473. local bx, by, bz = b.x, b.y, b.z
  474. local _t = 1 - t
  475. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  476. end
  477.  
  478. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  479. local frame = IT("Frame")
  480. frame.BackgroundTransparency = TRANSPARENCY
  481. frame.BorderSizePixel = BORDERSIZEPIXEL
  482. frame.Position = POSITION
  483. frame.Size = SIZE
  484. frame.BackgroundColor3 = COLOR
  485. frame.BorderColor3 = BORDERCOLOR
  486. frame.Name = NAME
  487. frame.Parent = PARENT
  488. return frame
  489. end
  490.  
  491. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  492. local label = IT("TextLabel")
  493. label.BackgroundTransparency = 1
  494. label.Size = UD2(1, 0, 1, 0)
  495. label.Position = UD2(0, 0, 0, 0)
  496. label.TextColor3 = TEXTCOLOR
  497. label.TextStrokeTransparency = STROKETRANSPARENCY
  498. label.TextTransparency = TRANSPARENCY
  499. label.FontSize = TEXTFONTSIZE
  500. label.Font = TEXTFONT
  501. label.BorderSizePixel = BORDERSIZEPIXEL
  502. label.TextScaled = false
  503. label.Text = TEXT
  504. label.Name = NAME
  505. label.Parent = PARENT
  506. return label
  507. end
  508.  
  509. function NoOutlines(PART)
  510. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  511. end
  512.  
  513.  
  514. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  515. local NEWWELD = IT(TYPE)
  516. NEWWELD.Part0 = PART0
  517. NEWWELD.Part1 = PART1
  518. NEWWELD.C0 = C0
  519. NEWWELD.C1 = C1
  520. NEWWELD.Parent = PARENT
  521. return NEWWELD
  522. end
  523.  
  524. function CreateSound(ID, PARENT, VOLUME, PITCH)
  525. local NEWSOUND = nil
  526. coroutine.resume(coroutine.create(function()
  527. NEWSOUND = IT("Sound", PARENT)
  528. NEWSOUND.Volume = VOLUME
  529. NEWSOUND.Pitch = PITCH
  530. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  531. Swait()
  532. NEWSOUND:play()
  533. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  534. end))
  535. return NEWSOUND
  536. end
  537.  
  538. function CFrameFromTopBack(at, top, back)
  539. local right = top:Cross(back)
  540. 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)
  541. end
  542.  
  543. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  544. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  545. local mesh = IT("SpecialMesh",wave)
  546. mesh.MeshType = "FileMesh"
  547. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  548. mesh.Scale = SIZE
  549. mesh.Offset = VT(0,0,-SIZE.X/8)
  550. wave.CFrame = CFRAME
  551. coroutine.resume(coroutine.create(function(PART)
  552. for i = 1, WAIT do
  553. Swait()
  554. mesh.Scale = mesh.Scale + GROW
  555. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  556. if DOESROT == true then
  557. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  558. end
  559. wave.Transparency = wave.Transparency + (0.5/WAIT)
  560. if wave.Transparency > 0.99 then
  561. wave:remove()
  562. end
  563. end
  564. end))
  565. end
  566.  
  567. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  568. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  569. local mesh = IT("SpecialMesh",wave)
  570. mesh.MeshType = "FileMesh"
  571. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  572. mesh.Scale = SIZE
  573. --mesh.Offset = VT(0,0,-SIZE.X/8)
  574. wave.CFrame = CFRAME
  575. coroutine.resume(coroutine.create(function(PART)
  576. for i = 1, WAIT do
  577. Swait()
  578. mesh.Scale = mesh.Scale + GROW
  579. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  580. if DOESROT == true then
  581. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  582. end
  583. wave.Transparency = wave.Transparency + (0.5/WAIT)
  584. if wave.Transparency > 0.99 then
  585. wave:remove()
  586. end
  587. end
  588. end))
  589. end
  590.  
  591. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  592. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  593. local mesh = IT("SpecialMesh",wave)
  594. mesh.MeshType = "FileMesh"
  595. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  596. mesh.Scale = SIZE
  597. wave.CFrame = CFRAME
  598. coroutine.resume(coroutine.create(function(PART)
  599. for i = 1, WAIT do
  600. Swait()
  601. mesh.Scale = mesh.Scale + GROW
  602. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  603. if DOESROT == true then
  604. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  605. end
  606. wave.Transparency = wave.Transparency + (0.5/WAIT)
  607. if wave.Transparency > 0.99 then
  608. wave:remove()
  609. end
  610. end
  611. end))
  612. end
  613.  
  614.  
  615. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  616. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  617. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  618. wave.CFrame = CFRAME
  619. coroutine.resume(coroutine.create(function(PART)
  620. for i = 1, WAIT do
  621. Swait()
  622. mesh.Scale = mesh.Scale * GROW
  623. wave.Transparency = wave.Transparency + (0.5/WAIT)
  624. if wave.Transparency > 0.99 then
  625. wave:remove()
  626. end
  627. end
  628. end))
  629. end
  630.  
  631. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  632. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  633. local mesh = IT("SpecialMesh",wave)
  634. mesh.MeshType = "Sphere"
  635. mesh.Scale = SIZE
  636. mesh.Offset = VT(0,0,0)
  637. wave.CFrame = CFRAME
  638. coroutine.resume(coroutine.create(function(PART)
  639. for i = 1, WAIT do
  640. Swait()
  641. mesh.Scale = mesh.Scale + GROW
  642. wave.Transparency = wave.Transparency + (1/WAIT)
  643. if wave.Transparency > 0.99 then
  644. wave:remove()
  645. end
  646. end
  647. end))
  648. end
  649.  
  650. function MakeForm(PART,TYPE)
  651. if TYPE == "Cyl" then
  652. local MSH = IT("CylinderMesh",PART)
  653. elseif TYPE == "Ball" then
  654. local MSH = IT("SpecialMesh",PART)
  655. MSH.MeshType = "Sphere"
  656. elseif TYPE == "Wedge" then
  657. local MSH = IT("SpecialMesh",PART)
  658. MSH.MeshType = "Wedge"
  659. end
  660. end
  661.  
  662. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  663. if FLOOR ~= nil then
  664. coroutine.resume(coroutine.create(function()
  665. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  666. PART.CFrame = CF(POSITION)
  667. for i = 1, 45 do
  668. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  669. RingPiece.Material = FLOOR.Material
  670. RingPiece.Color = FLOOR.Color
  671. 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)))
  672. Debris:AddItem(RingPiece,SWAIT/100)
  673. end
  674. PART:remove()
  675. end))
  676. end
  677. end
  678.  
  679. function CheckTableForString(Table, String)
  680. for i, v in pairs(Table) do
  681. if string.find(string.lower(String), string.lower(v)) then
  682. return true
  683. end
  684. end
  685. return false
  686. end
  687.  
  688. function CheckIntangible(Hit)
  689. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  690. if Hit and Hit.Parent then
  691. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  692. return true
  693. end
  694. end
  695. return false
  696. end
  697.  
  698. Debris = game:GetService("Debris")
  699.  
  700. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  701. local Direction = CFrame.new(StartPos, Vec).lookVector
  702. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  703. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  704. if RayHit and CheckIntangible(RayHit) then
  705. if DelayIfHit then
  706. wait()
  707. end
  708. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  709. end
  710. return RayHit, RayPos, RayNormal
  711. end
  712.  
  713. function turnto(position)
  714. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  715. end
  716.  
  717. --//=================================\\
  718. --|| WEAPON CREATION
  719. --\\=================================//
  720.  
  721. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
  722. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  723. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
  724. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  725.  
  726. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  727. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  728. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  729. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  730. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  731. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  732. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  733. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  734.  
  735. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
  736. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  737. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Gold", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
  738. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  739. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  740. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  741. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  742. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  743. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  744. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  745.  
  746. for _, c in pairs(Weapon:GetChildren()) do
  747. if c.ClassName == "Part" then
  748. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  749. end
  750. end
  751.  
  752. Weapon.Parent = Character
  753.  
  754. Humanoid.Died:connect(function()
  755. ATTACK = true
  756. end)
  757.  
  758. 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")
  759. 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")
  760. 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")
  761. 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")
  762.  
  763. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "%z} KaRmA pUnCH", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  764. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "^b} kArmA gRaSp", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  765. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "!c) kaRmA TElePoRt", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
  766. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "(X? KArmA U1t1maTe pUnCh", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4")
  767.  
  768. if INTRO == false and INSTANT == false then
  769. INTRO = true
  770. coroutine.resume(coroutine.create(function()
  771. sick:Play()
  772. Intro()
  773. end))
  774. end
  775.  
  776. --//=================================\\
  777. --|| DAMAGE FUNCTIONS
  778. --\\=================================//
  779.  
  780. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  781. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  782. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  783. local BODYGYRO = IT("BodyGyro", STATPART)
  784. local BODYPOSITION = IT("BodyPosition", STATPART)
  785. BODYPOSITION.P = 2000
  786. BODYPOSITION.D = 100
  787. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  788. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  789. game:GetService("Debris"):AddItem(STATPART ,5)
  790. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  791. BILLBOARDGUI.Adornee = STATPART
  792. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  793. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  794. BILLBOARDGUI.AlwaysOnTop = false
  795. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  796. TEXTLABEL.BackgroundTransparency = 1
  797. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  798. TEXTLABEL.Text = TEXT
  799. TEXTLABEL.Font = "SciFi"
  800. TEXTLABEL.FontSize="Size42"
  801. TEXTLABEL.TextColor3 = COLOR
  802. TEXTLABEL.TextStrokeTransparency = 1
  803. TEXTLABEL.TextScaled = true
  804. TEXTLABEL.TextWrapped = true
  805. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  806. if LABELTYPE == "Normal" then
  807. for i = 1, 30 do
  808. Swait()
  809. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  810. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  811. end
  812. elseif LABELTYPE == "Debuff" then
  813. for i = 1, 30 do
  814. Swait()
  815. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  816. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  817. end
  818. elseif LABELTYPE == "Shock" then
  819. local ORIGIN = STATPART.Position
  820. for i = 1, 30 do
  821. Swait()
  822. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  823. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  824. end
  825. end
  826. THEPART.Parent = nil
  827. end),STATPART, BODYPOSITION, TEXTLABEL)
  828. end
  829.  
  830. --//=================================\\
  831. --|| DAMAGING
  832. --\\=================================//
  833.  
  834. function killnearest(position,range,maxstrength,direction)
  835. for i,v in ipairs(workspace:GetChildren()) do
  836. local body = v:GetChildren()
  837. for part = 1, #body do
  838. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  839. if(body[part].Position - position).Magnitude < range then
  840. if v.ClassName == "Model" then
  841. --v:BreakJoints()
  842. end
  843. local POS = position
  844. coroutine.resume(coroutine.create(function()
  845. body[part].Anchored = true
  846. body[part].Parent = Effects
  847. body[part].CanCollide = true
  848. local SIZE = body[part].Size
  849. body[part].Material = "Neon"
  850. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  851. for i = 1, 75 do
  852. Swait()
  853. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  854. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  855. end
  856. coroutine.resume(coroutine.create(function()
  857. while true do
  858. Swait()
  859. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  860. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  861. end
  862. end))
  863. body[part].Anchored = false
  864. body[part].Velocity = direction.lookVector*maxstrength
  865. end))
  866. end
  867. end
  868. end
  869. if v.ClassName == "Part" then
  870. if v.Anchored == false and (v.Position - position).Magnitude < range then
  871. local POS = position
  872. coroutine.resume(coroutine.create(function()
  873. v.Anchored = true
  874. v.Parent = Effects
  875. local SIZE = v.Size
  876. v.Material = "Neon"
  877. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  878. for i = 1, 75 do
  879. Swait()
  880. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  881. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  882. end
  883. coroutine.resume(coroutine.create(function()
  884. while true do
  885. Swait()
  886. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  887. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  888. end
  889. end))
  890. v.Anchored = false
  891. v.Velocity = direction.lookVector*maxstrength
  892. end))
  893. end
  894. end
  895. end
  896. end
  897.  
  898. --//=================================\\
  899. --|| ATTACK FUNCTIONS AND STUFF
  900. --\\=================================//
  901. function Intro()
  902. ATTACK = true
  903. Rooted = true
  904. repeat
  905. Swait()
  906. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
  907. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  908. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  909. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  910. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  911. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed)
  912. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed)
  913. until sick.TimePosition > 114
  914. repeat
  915. Swait()
  916. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  917. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  918. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  919. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  920. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  921. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  922. until sick.TimePosition > 116
  923. repeat
  924. Swait()
  925. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0.2,0.2), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
  926. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  927. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  928. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(45), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  929. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-90), RAD(45), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  930. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  931. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  932. until sick.TimePosition >119
  933. Gun.Parent = Character
  934. tecks2.TextTransparency = 0
  935. for i = 1, 100 do
  936. Swait()
  937. for _, c in pairs(Character:GetChildren()) do
  938. if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
  939. c.Transparency = 0
  940. end
  941. end
  942. for _, c in pairs(Weapon:GetChildren()) do
  943. if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
  944. c.Transparency = 0
  945. end
  946. end
  947. for _, c in pairs(Weapon:GetDescendants()) do
  948. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  949. c.Material = "Glass"
  950. c.Color = C3(0,0,0)
  951. elseif c.ClassName == "Part" and c.Name == "Eye" then
  952. c.Color = C3(1,0,0)
  953. c.Material = "Neon"
  954. end
  955. end
  956. end
  957. TRANSFORMED = true
  958. ATTACK = false
  959. Rooted = false
  960. end
  961.  
  962.  
  963.  
  964.  
  965. function AttackTemplate()
  966. ATTACK = true
  967. Rooted = false
  968. for i=0, 1, 0.1 / Animation_Speed do
  969. Swait()
  970. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  971. 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.1 / Animation_Speed)
  972. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  973. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  974. 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)
  975. 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)
  976. end
  977. ATTACK = false
  978. Rooted = false
  979. end
  980.  
  981. function GoldenPunch()
  982. ATTACK = true
  983. Rooted = false
  984. local SPEED = Speed
  985. Speed = 8
  986. CreateSound("169445572", RightArm, 10, 1.1)
  987. for i=0, 4, 0.1 / Animation_Speed do
  988. Swait()
  989. turnto(Mouse.Hit.p)
  990. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Deep orange",VT(-1/15,-1/15,-1/15))
  991. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-2/15,-2/15,-2/15))
  992. 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)
  993. 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)
  994. 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)
  995. 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)
  996. 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)
  997. 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)
  998. end
  999. for i=0, 0.15, 0.1 / Animation_Speed do
  1000. Swait()
  1001. turnto(Mouse.Hit.p)
  1002. 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)
  1003. 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)
  1004. 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)
  1005. 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)
  1006. 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)
  1007. 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)
  1008. end
  1009. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Gold", "Punch", VT(50,50,50),false)
  1010. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1011. PART.Shape = "Ball"
  1012. local bv = Instance.new("BodyVelocity")
  1013. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1014. bv.velocity = RootPart.CFrame.lookVector*600
  1015. bv.Parent = PART
  1016. bv.Name = "PROJECTILEVELOCITY"
  1017. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2.5,0.2,2.5))
  1018. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(3,0.2,3))
  1019. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2,0.6,2))
  1020. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(2.2,0.6,2.2))
  1021. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1022. coroutine.resume(coroutine.create(function()
  1023. for i = 1, 10 do
  1024. Swait()
  1025. PART.Transparency = PART.Transparency + 0.2/10
  1026. PART.Size = PART.Size + VT(5,5,5)
  1027. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  1028. end
  1029. PART:Destroy()
  1030. end))
  1031. for i=0, 1, 0.1 / Animation_Speed do
  1032. Swait()
  1033. 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)
  1034. 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)
  1035. 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)
  1036. 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)
  1037. 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)
  1038. 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)
  1039. end
  1040. Speed = SPEED
  1041. ATTACK = false
  1042. Rooted = false
  1043. end
  1044.  
  1045. function GoldenGrasp()
  1046. ATTACK = true
  1047. Rooted = false
  1048. local HASGRABBED = false
  1049. local WELD = nil
  1050. local TORS = nil
  1051. local hitting = FIST.Touched:connect(function(hit)
  1052. if hit.Parent:FindFirstChild("Humanoid") then
  1053. if hit.Parent.Humanoid.Health ~= 0 then
  1054. UNANCHOR = false
  1055. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1056. TORS.Anchored = true
  1057. TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  1058. WELD = weldBetween(RightArm,TORS)
  1059. HASGRABBED = true
  1060. Rooted = true
  1061. end
  1062. end
  1063. end)
  1064. for i=0, 1, 0.1 / Animation_Speed do
  1065. Swait()
  1066. if HASGRABBED == true then
  1067. break
  1068. end
  1069. 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)
  1070. 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)
  1071. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1072. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1073. 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)
  1074. 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)
  1075. end
  1076. hitting:disconnect()
  1077. if HASGRABBED == true then
  1078. TORS.Anchored = false
  1079. RootPart.Anchored = true
  1080. for i=0, 2, 0.1 / Animation_Speed do
  1081. Swait()
  1082. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1083. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1084. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1085. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1086. 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)
  1087. 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)
  1088. end
  1089. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5))
  1090. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6))
  1091. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0))
  1092. SOUNDPART.CFrame = RootPart.CFrame
  1093. Debris:AddItem(SOUNDPART,5)
  1094. CreateSound("1295446488", SOUNDPART, 2, 1)
  1095. for i = 1, 15 do
  1096. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15)
  1097. end
  1098. for i=0, 2, 0.1 / Animation_Speed do
  1099. Swait()
  1100. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1101. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1102. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1103. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1104. 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)
  1105. 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)
  1106. end
  1107. for i=0, 0.25, 0.1 / Animation_Speed do
  1108. Swait()
  1109. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
  1110. 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)
  1111. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1112. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1113. 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)
  1114. 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)
  1115. end
  1116. if HITFLOOR ~= nil then
  1117. CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85)
  1118. end
  1119. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1120. WELD:remove()
  1121. for i = 1, 25 do
  1122. Swait()
  1123. killnearest(RootPart.Position,45,100,Torso.CFrame)
  1124. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3))
  1125. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Gold",VT(1,0.4,1))
  1126. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Gold",VT(2.3,0.3,2.3))
  1127. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5)
  1128. 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))),"Gold", 1 + MRANDOM(1,30)/15)
  1129. end
  1130. end
  1131. UNANCHOR = true
  1132. ATTACK = false
  1133. Rooted = false
  1134. end
  1135.  
  1136. function Mach20()
  1137. local ORIGIN = RootPart.Position
  1138. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1139. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1140. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0))
  1141. SOUNDPART.CFrame = RootPart.CFrame
  1142. Debris:AddItem(SOUNDPART,5)
  1143. CreateSound("1295446488", SOUNDPART, 2, 1)
  1144. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
  1145. Swait()
  1146. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1147. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1148. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0))
  1149. SOUNDPART.CFrame = RootPart.CFrame
  1150. Debris:AddItem(SOUNDPART,5)
  1151. CreateSound("1295446488", SOUNDPART, 2, 1)
  1152. if MRANDOM(1,8) == 1 then
  1153. ATTACK = true
  1154. Rooted = true
  1155. local FRUITSTABLE = {
  1156. {MeshId = "16190555", TextureId = "16190577", Color = "Really red"},
  1157. {MeshId = "119574562", TextureId = "64374853", Color = "New Yeller"},
  1158. {MeshId = "24394186", TextureId = "24394178", Color = "Brown"}
  1159. }
  1160. local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
  1161. local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
  1162. CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
  1163. FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0)
  1164. weldBetween(RightArm,FRUITMODEL)
  1165. for i=0, 4, 0.1 / Animation_Speed do
  1166. Swait()
  1167. 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)
  1168. 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)
  1169. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1170. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1171. 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)
  1172. 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)
  1173. end
  1174. CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
  1175. FRUITMODEL:remove()
  1176. for i = 1, 15 do
  1177. 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)
  1178. end
  1179. for i=0, 0.5, 0.1 / Animation_Speed do
  1180. Swait()
  1181. 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)
  1182. 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)
  1183. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1184. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1185. 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)
  1186. 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)
  1187. end
  1188. ATTACK = false
  1189. Rooted = false
  1190. end
  1191. end
  1192.  
  1193. function ImplosionCollision()
  1194. ATTACK = true
  1195. Rooted = true
  1196. CreateSound("169445572", RightArm, 10, 0.8)
  1197. for i=0, 8, 0.1 / Animation_Speed do
  1198. Swait()
  1199. turnto(Mouse.Hit.p)
  1200. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Gold",VT(0.2,0,0.2))
  1201. Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1.1)
  1202. 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),"New Yeller",VT(0.001,0.001,1),0)
  1203. 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),"Gold",VT(0.001,0.001,2),0)
  1204. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Deep orange",VT(-1/15,-1/15,-1/15))
  1205. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-2/15,-2/15,-2/15))
  1206. 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)
  1207. 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)
  1208. 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)
  1209. 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)
  1210. 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)
  1211. 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)
  1212. end
  1213. for i=0, 0.15, 0.1 / Animation_Speed do
  1214. Swait()
  1215. turnto(Mouse.Hit.p)
  1216. 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)
  1217. 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)
  1218. 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)
  1219. 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)
  1220. 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)
  1221. 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)
  1222. end
  1223. MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Gold",VT(-0.04,-0.04,-0.04))
  1224. MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035))
  1225. coroutine.resume(coroutine.create(function()
  1226. Swait(100)
  1227. for i = 1, 5 do
  1228. MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Gold",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i))))
  1229. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4.5*i,0.2,4.5*i))
  1230. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5*i,0.2,5*i))
  1231. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4*i,0.6,4*i))
  1232. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5.2*i,0.6,5.2*i))
  1233. end
  1234. killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame)
  1235. for i = 1, 5 do
  1236. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1237. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1238. end
  1239. coroutine.resume(coroutine.create(function()
  1240. for i = 1, 50 do
  1241. Swait()
  1242. for i = 1, 1 do
  1243. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5)
  1244. end
  1245. for i = 1, 2 do
  1246. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1 + MRANDOM(1,30)/3)
  1247. end
  1248. end
  1249. end))
  1250. end))
  1251. for i=0, 4, 0.1 / Animation_Speed do
  1252. Swait()
  1253. 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)
  1254. 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)
  1255. 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)
  1256. 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)
  1257. 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)
  1258. 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)
  1259. end
  1260. ATTACK = false
  1261. Rooted = false
  1262. end
  1263.  
  1264. --//=================================\\
  1265. --|| ASSIGN THINGS TO KEYS
  1266. --\\=================================//
  1267.  
  1268. function MouseDown(Mouse)
  1269. if ATTACK == false then
  1270. end
  1271. end
  1272.  
  1273. function MouseUp(Mouse)
  1274. HOLD = false
  1275. end
  1276.  
  1277. function KeyDown(Key)
  1278. KEYHOLD = true
  1279. if Key == "z" and ATTACK == false then
  1280. GoldenPunch()
  1281. end
  1282.  
  1283. if Key == "b" and ATTACK == false then
  1284. GoldenGrasp()
  1285. end
  1286.  
  1287. if Key == "c" and ATTACK == false then
  1288. Teleport()
  1289. end
  1290.  
  1291. if Key == "x" and ATTACK == false then
  1292. ImplosionCollision()
  1293. end
  1294.  
  1295. if Key == "p" and ATTACK == false then
  1296. if Speed == 20 then
  1297. Speed = 150
  1298. elseif Speed == 150 then
  1299. Speed = 20
  1300. end
  1301. end
  1302. end
  1303.  
  1304. function KeyUp(Key)
  1305. KEYHOLD = false
  1306. end
  1307.  
  1308. Mouse.Button1Down:connect(function(NEWKEY)
  1309. MouseDown(NEWKEY)
  1310. end)
  1311. Mouse.Button1Up:connect(function(NEWKEY)
  1312. MouseUp(NEWKEY)
  1313. end)
  1314. Mouse.KeyDown:connect(function(NEWKEY)
  1315. KeyDown(NEWKEY)
  1316. end)
  1317. Mouse.KeyUp:connect(function(NEWKEY)
  1318. KeyUp(NEWKEY)
  1319. end)
  1320.  
  1321. --//=================================\\
  1322. --\\=================================//
  1323.  
  1324.  
  1325. function unanchor()
  1326. if UNANCHOR == true then
  1327. g = Character:GetChildren()
  1328. for i = 1, #g do
  1329. if g[i].ClassName == "Part" then
  1330. g[i].Anchored = false
  1331. end
  1332. end
  1333. end
  1334. end
  1335.  
  1336.  
  1337. --//=================================\\
  1338. --|| WRAP THE WHOLE SCRIPT UP
  1339. --\\=================================//
  1340.  
  1341. Humanoid.Changed:connect(function(Jump)
  1342. if Jump == "Jump" and (Disable_Jump == true) then
  1343. Humanoid.Jump = false
  1344. end
  1345. end)
  1346.  
  1347. while true do
  1348. Swait()
  1349. ANIMATE.Parent = nil
  1350. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1351. IDLEANIMATION:Play()
  1352. SINE = SINE + CHANGE
  1353. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1354. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1355. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1356. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1357. local WALKSPEEDVALUE = 0
  1358. if Speed < 35 then
  1359. WALKSPEEDVALUE = 6
  1360. else
  1361. WALKSPEEDVALUE = 3
  1362. end
  1363. if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
  1364. 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)
  1365. 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)
  1366. if Speed < 35 then
  1367. 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)
  1368. 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)
  1369. else
  1370. 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)
  1371. 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)
  1372. end
  1373. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
  1374. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1375. 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)
  1376. 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)
  1377. 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)
  1378. end
  1379. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1380. ANIM = "Jump"
  1381. if ATTACK == false then
  1382. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1383. 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)
  1384. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1385. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1386. 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)
  1387. 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)
  1388. end
  1389. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1390. ANIM = "Fall"
  1391. if ATTACK == false then
  1392. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1393. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1394. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1395. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1396. 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)
  1397. 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)
  1398. end
  1399. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1400. ANIM = "Idle"
  1401. if ATTACK == false then
  1402. 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)
  1403. 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)
  1404. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1405. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1406. 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)
  1407. 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)
  1408. end
  1409. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
  1410. ANIM = "Walk"
  1411. WALK = WALK + 1 / Animation_Speed
  1412. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1413. WALK = 0
  1414. if WALKINGANIM == true then
  1415. WALKINGANIM = false
  1416. elseif WALKINGANIM == false then
  1417. WALKINGANIM = true
  1418. end
  1419. end
  1420. --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)
  1421. --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)
  1422. if ATTACK == false then
  1423. if Speed < 35 then
  1424. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1425. 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)
  1426. 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)
  1427. 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)
  1428. 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)
  1429. 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)
  1430. else
  1431. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1432. 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)
  1433. 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)
  1434. 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)
  1435. 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)
  1436. 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)
  1437. end
  1438. end
  1439. end
  1440. unanchor()
  1441. Humanoid.DisplayDistanceType = "None"
  1442. unanchor()
  1443. tecks2.TextColor3 = BrickColor.Random().Color
  1444. tecks2.TextStrokeColor3 = BrickColor.Random().Color
  1445. Humanoid.MaxHealth = "inf"
  1446. Humanoid.Health = "inf"
  1447. if Rooted == false then
  1448. Disable_Jump = false
  1449. Humanoid.WalkSpeed = Speed
  1450. elseif Rooted == true then
  1451. Disable_Jump = true
  1452. Humanoid.WalkSpeed = 0
  1453. end
  1454. if Head:FindFirstChild("face") then
  1455. Head.face.Texture = "rbxassetid://403870689"
  1456. end
  1457. local MATHS = {"0","1"}
  1458. 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)]
  1459. Humanoid.PlatformStand = false
  1460. if INTRO == false and INSTANT == false then
  1461. INTRO = true
  1462. coroutine.resume(coroutine.create(function()
  1463. sick:Play()
  1464. Intro()
  1465. end))
  1466. end
  1467. if INSTANT == true then
  1468. if TRANSFORMED == false then
  1469. sick.TimePosition = 60
  1470. sick:Play()
  1471. end
  1472. TRANSFORMED = true
  1473. end
  1474. script.Parent = PlayerGui
  1475. Character.Parent = workspace
  1476. Humanoid.Parent = Character
  1477. end
  1478.  
  1479. --//=================================\\
  1480. --\\=================================//
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486. --//====================================================\\--
  1487. --|| END OF SCRIPT
  1488. --\\====================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement