Advertisement
AOM-GU-PRO

FEEEE

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