Advertisement
Christoffer07700Extr

Chris's Hopeful Gloves

Aug 24th, 2019
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 93.37 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. return RealPlayer[Index]
  88. end
  89. end;
  90. __tostring = function(self)
  91. return RealPlayer.Name
  92. end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. if Service:lower() == "players" then
  102. return setmetatable({},{
  103. __index = function (self2,Index2)
  104. local RealService = RealGame:GetService(Service)
  105. local Type2 = type(Index2)
  106. if Type2 == "function" then
  107. return function (self,...)
  108. return RealService[Index2](RealService,...)
  109. end
  110. else
  111. if Index2:lower() == "localplayer" then
  112. return Sandbox(owner)
  113. end
  114. return RealService[Index2]
  115. end
  116. end;
  117. __tostring = function(self)
  118. return RealGame:GetService(Service).Name
  119. end
  120. })
  121. elseif Service:lower() == "contextactionservice" then
  122. return InternalData["ContextActionService"]
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["UserInputService"]
  125. elseif Service:lower() == "runservice" then
  126. return setmetatable({},{
  127. __index = function(self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...)
  132. return RealService[Index2](RealService,...)
  133. end
  134. else
  135. if Index2:lower() == "bindtorenderstep" then
  136. return function (self,Name,Priority,Function)
  137. return RealGame:GetService("RunService").Stepped:Connect(Function)
  138. end
  139. end
  140. if Index2:lower() == "renderstepped" then
  141. return RealService["Stepped"]
  142. end
  143. return RealService[Index2]
  144. end
  145. end
  146. })
  147. else
  148. return RealGame:GetService(Service)
  149. end
  150. end
  151. end
  152. return function (self,...)
  153. return RealGame[Index](RealGame,...)
  154. end
  155. else
  156. if game:GetService(Index) then
  157. return game:GetService(Index)
  158. end
  159. return RealGame[Index]
  160. end
  161. else
  162. return nil
  163. end
  164. end
  165. });Game = game;owner = game:GetService("Players").LocalPlayer
  166. print("Complete! Running...")
  167.  
  168.  
  169. Player = game.Players.LocalPlayer
  170. Character = Player.Character
  171. local txt = Instance.new("BillboardGui", Character)
  172. txt.Adornee = Character.Head
  173. txt.Name = "_status"
  174. txt.Size = UDim2.new(2, 0, 1.2, 0)
  175. txt.StudsOffset = Vector3.new(-9, 8, 0)
  176. local text = Instance.new("TextLabel", txt)
  177. text.Size = UDim2.new(10, 0, 7, 0)
  178. text.FontSize = "Size24"
  179. text.TextScaled = true
  180. text.TextTransparency = 0
  181. text.BackgroundTransparency = 1
  182. text.TextTransparency = 0
  183. text.TextStrokeTransparency = 0
  184. text.Font = "Antique"
  185. text.TextStrokeColor3 = Color3.new(249,233,153)
  186. text.Text = "Chris's Hopeful Gloves"
  187.  
  188. --//====================================================\\--
  189. --|| CREATED BY SHACKLUSTER
  190. --\\====================================================//--
  191.  
  192.  
  193.  
  194. wait(0.2)
  195.  
  196.  
  197.  
  198. Player = game:GetService("Players").LocalPlayer
  199. PlayerGui = Player.PlayerGui
  200. Cam = workspace.CurrentCamera
  201. Backpack = Player.Backpack
  202. Character = Player.Character
  203. Humanoid = Character.Humanoid
  204. Mouse = Player:GetMouse()
  205. RootPart = Character["HumanoidRootPart"]
  206. Torso = Character["Torso"]
  207. Head = Character["Head"]
  208. RightArm = Character["Right Arm"]
  209. LeftArm = Character["Left Arm"]
  210. RightLeg = Character["Right Leg"]
  211. LeftLeg = Character["Left Leg"]
  212. RootJoint = RootPart["RootJoint"]
  213. Neck = Torso["Neck"]
  214. RightShoulder = Torso["Right Shoulder"]
  215. LeftShoulder = Torso["Left Shoulder"]
  216. RightHip = Torso["Right Hip"]
  217. LeftHip = Torso["Left Hip"]
  218. local sick = Instance.new("Sound",Character)
  219. sick.SoundId = "rbxassetid://1235012307"
  220. sick.Looped = true
  221. sick.Pitch = 1
  222. sick.Volume = 0.3
  223. sick:Play()
  224.  
  225. IT = Instance.new
  226. CF = CFrame.new
  227. VT = Vector3.new
  228. RAD = math.rad
  229. C3 = Color3.new
  230. UD2 = UDim2.new
  231. BRICKC = BrickColor.new
  232. ANGLES = CFrame.Angles
  233. EULER = CFrame.fromEulerAnglesXYZ
  234. COS = math.cos
  235. ACOS = math.acos
  236. SIN = math.sin
  237. ASIN = math.asin
  238. ABS = math.abs
  239. MRANDOM = math.random
  240. FLOOR = math.floor
  241. local FORCEWINGS = false
  242.  
  243. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  244. local NEWMESH = IT(MESH)
  245. if MESH == "SpecialMesh" then
  246. NEWMESH.MeshType = MESHTYPE
  247. if MESHID ~= "nil" and MESHID ~= "" then
  248. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  249. end
  250. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  251. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  252. end
  253. end
  254. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  255. NEWMESH.Scale = SCALE
  256. NEWMESH.Parent = PARENT
  257. return NEWMESH
  258. end
  259.  
  260. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  261. local NEWPART = IT("Part")
  262. NEWPART.formFactor = FORMFACTOR
  263. NEWPART.Reflectance = REFLECTANCE
  264. NEWPART.Transparency = TRANSPARENCY
  265. NEWPART.CanCollide = false
  266. NEWPART.Locked = true
  267. NEWPART.Anchored = true
  268. if ANCHOR == false then
  269. NEWPART.Anchored = false
  270. end
  271. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  272. NEWPART.Name = NAME
  273. NEWPART.Size = SIZE
  274. NEWPART.Position = Torso.Position
  275. NEWPART.Material = MATERIAL
  276. NEWPART:BreakJoints()
  277. NEWPART.Parent = PARENT
  278. return NEWPART
  279. end
  280.  
  281. --//=================================\\
  282. --|| CUSTOMIZATION
  283. --\\=================================//
  284.  
  285. Player_Size = 1 --Size of the player.
  286. Animation_Speed = 3
  287. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  288.  
  289. local Speed = 27
  290. local Effects2 = {}
  291.  
  292. ---//=================================\\
  293. --|| END OF CUSTOMIZATION
  294. --\\=================================//
  295.  
  296. local function weldBetween(a, b)
  297. local weldd = Instance.new("ManualWeld")
  298. weldd.Part0 = a
  299. weldd.Part1 = b
  300. weldd.C0 = CFrame.new()
  301. weldd.C1 = b.CFrame:inverse() * a.CFrame
  302. weldd.Parent = a
  303. return weldd
  304. end
  305.  
  306. --//=================================\\
  307. --|| USEFUL VALUES
  308. --\\=================================//
  309.  
  310. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  311. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  312. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  313. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  314. local CHANGEDEFENSE = 0
  315. local CHANGEDAMAGE = 0
  316. local CHANGEMOVEMENT = 0
  317. local ANIM = "Idle"
  318. local ATTACK = false
  319. local EQUIPPED = false
  320. local HOLD = false
  321. local COMBO = 1
  322. local Rooted = false
  323. local SINE = 0
  324. local KEYHOLD = false
  325. local CHANGE = 2 / Animation_Speed
  326. local WALKINGANIM = false
  327. local WALK = 0
  328. local VALUE1 = false
  329. local VALUE2 = false
  330. local ROBLOXIDLEANIMATION = IT("Animation")
  331. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  332. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  333. --ROBLOXIDLEANIMATION.Parent = Humanoid
  334. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  335. WEAPONGUI.Name = "Weapon GUI"
  336. local Weapon = IT("Model")
  337. Weapon.Name = "Adds"
  338. local HITFLOOR = nil
  339. local Effects = IT("Folder", Weapon)
  340. Effects.Name = "Effects"
  341. local ANIMATOR = Humanoid.Animator
  342. local ANIMATE = Character.Animate
  343. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  344. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  345. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  346. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  347. local UNANCHOR = true
  348.  
  349. local SKILLTEXTCOLOR = C3(0,255/255,0)
  350.  
  351. --//=================================\\
  352. --\\=================================//
  353.  
  354.  
  355. --//=================================\\
  356. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  357. --\\=================================//
  358.  
  359. ArtificialHB = Instance.new("BindableEvent", script)
  360. ArtificialHB.Name = "ArtificialHB"
  361.  
  362. script:WaitForChild("ArtificialHB")
  363.  
  364. frame = Frame_Speed
  365. tf = 0
  366. allowframeloss = false
  367. tossremainder = false
  368. lastframe = tick()
  369. script.ArtificialHB:Fire()
  370.  
  371. game:GetService("RunService").Heartbeat:connect(function(s, p)
  372. tf = tf + s
  373. if tf >= frame then
  374. if allowframeloss then
  375. script.ArtificialHB:Fire()
  376. lastframe = tick()
  377. else
  378. for i = 1, math.floor(tf / frame) do
  379. script.ArtificialHB:Fire()
  380. end
  381. lastframe = tick()
  382. end
  383. if tossremainder then
  384. tf = 0
  385. else
  386. tf = tf - frame * math.floor(tf / frame)
  387. end
  388. end
  389. end)
  390.  
  391. --//=================================\\
  392. --\\=================================//
  393.  
  394.  
  395.  
  396.  
  397.  
  398. --//=================================\\
  399. --|| SOME FUNCTIONS
  400. --\\=================================//
  401.  
  402. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  403. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  404. end
  405.  
  406. function PositiveAngle(NUMBER)
  407. if NUMBER >= 0 then
  408. NUMBER = 0
  409. end
  410. return NUMBER
  411. end
  412.  
  413. function NegativeAngle(NUMBER)
  414. if NUMBER <= 0 then
  415. NUMBER = 0
  416. end
  417. return NUMBER
  418. end
  419.  
  420. function Swait(NUMBER)
  421. if NUMBER == 0 or NUMBER == nil then
  422. ArtificialHB.Event:wait()
  423. else
  424. for i = 1, NUMBER do
  425. ArtificialHB.Event:wait()
  426. end
  427. end
  428. end
  429.  
  430. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  431. local NEWMESH = IT(MESH)
  432. if MESH == "SpecialMesh" then
  433. NEWMESH.MeshType = MESHTYPE
  434. if MESHID ~= "nil" and MESHID ~= "" then
  435. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  436. end
  437. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  438. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  439. end
  440. end
  441. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  442. NEWMESH.Scale = SCALE
  443. NEWMESH.Parent = PARENT
  444. return NEWMESH
  445. end
  446.  
  447. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  448. local NEWPART = IT("Part")
  449. NEWPART.formFactor = FORMFACTOR
  450. NEWPART.Reflectance = REFLECTANCE
  451. NEWPART.Transparency = TRANSPARENCY
  452. NEWPART.CanCollide = false
  453. NEWPART.Locked = true
  454. NEWPART.Anchored = true
  455. if ANCHOR == false then
  456. NEWPART.Anchored = false
  457. end
  458. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  459. NEWPART.Name = NAME
  460. NEWPART.Size = SIZE
  461. NEWPART.Position = Torso.Position
  462. NEWPART.Material = MATERIAL
  463. NEWPART:BreakJoints()
  464. NEWPART.Parent = PARENT
  465. return NEWPART
  466. end
  467.  
  468. local function weldBetween(a, b)
  469. local weldd = Instance.new("ManualWeld")
  470. weldd.Part0 = a
  471. weldd.Part1 = b
  472. weldd.C0 = CFrame.new()
  473. weldd.C1 = b.CFrame:inverse() * a.CFrame
  474. weldd.Parent = a
  475. return weldd
  476. end
  477.  
  478.  
  479. function QuaternionFromCFrame(cf)
  480. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  481. local trace = m00 + m11 + m22
  482. if trace > 0 then
  483. local s = math.sqrt(1 + trace)
  484. local recip = 0.5 / s
  485. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  486. else
  487. local i = 0
  488. if m11 > m00 then
  489. i = 1
  490. end
  491. if m22 > (i == 0 and m00 or m11) then
  492. i = 2
  493. end
  494. if i == 0 then
  495. local s = math.sqrt(m00 - m11 - m22 + 1)
  496. local recip = 0.5 / s
  497. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  498. elseif i == 1 then
  499. local s = math.sqrt(m11 - m22 - m00 + 1)
  500. local recip = 0.5 / s
  501. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  502. elseif i == 2 then
  503. local s = math.sqrt(m22 - m00 - m11 + 1)
  504. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  505. end
  506. end
  507. end
  508.  
  509. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  510. local xs, ys, zs = x + x, y + y, z + z
  511. local wx, wy, wz = w * xs, w * ys, w * zs
  512. local xx = x * xs
  513. local xy = x * ys
  514. local xz = x * zs
  515. local yy = y * ys
  516. local yz = y * zs
  517. local zz = z * zs
  518. 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))
  519. end
  520.  
  521. function QuaternionSlerp(a, b, t)
  522. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  523. local startInterp, finishInterp;
  524. if cosTheta >= 0.0001 then
  525. if (1 - cosTheta) > 0.0001 then
  526. local theta = ACOS(cosTheta)
  527. local invSinTheta = 1 / SIN(theta)
  528. startInterp = SIN((1 - t) * theta) * invSinTheta
  529. finishInterp = SIN(t * theta) * invSinTheta
  530. else
  531. startInterp = 1 - t
  532. finishInterp = t
  533. end
  534. else
  535. if (1 + cosTheta) > 0.0001 then
  536. local theta = ACOS(-cosTheta)
  537. local invSinTheta = 1 / SIN(theta)
  538. startInterp = SIN((t - 1) * theta) * invSinTheta
  539. finishInterp = SIN(t * theta) * invSinTheta
  540. else
  541. startInterp = t - 1
  542. finishInterp = t
  543. end
  544. end
  545. 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
  546. end
  547.  
  548. function Clerp(a, b, t)
  549. local qa = {QuaternionFromCFrame(a)}
  550. local qb = {QuaternionFromCFrame(b)}
  551. local ax, ay, az = a.x, a.y, a.z
  552. local bx, by, bz = b.x, b.y, b.z
  553. local _t = 1 - t
  554. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  555. end
  556.  
  557. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  558. local frame = IT("Frame")
  559. frame.BackgroundTransparency = TRANSPARENCY
  560. frame.BorderSizePixel = BORDERSIZEPIXEL
  561. frame.Position = POSITION
  562. frame.Size = SIZE
  563. frame.BackgroundColor3 = COLOR
  564. frame.BorderColor3 = BORDERCOLOR
  565. frame.Name = NAME
  566. frame.Parent = PARENT
  567. return frame
  568. end
  569.  
  570. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  571. local label = IT("TextLabel")
  572. label.BackgroundTransparency = 1
  573. label.Size = UD2(1, 0, 1, 0)
  574. label.Position = UD2(0, 0, 0, 0)
  575. label.TextColor3 = TEXTCOLOR
  576. label.TextStrokeTransparency = STROKETRANSPARENCY
  577. label.TextTransparency = TRANSPARENCY
  578. label.FontSize = TEXTFONTSIZE
  579. label.Font = TEXTFONT
  580. label.BorderSizePixel = BORDERSIZEPIXEL
  581. label.TextScaled = false
  582. label.Text = TEXT
  583. label.Name = NAME
  584. label.Parent = PARENT
  585. return label
  586. end
  587.  
  588. function NoOutlines(PART)
  589. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  590. end
  591.  
  592. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  593. local NEWWELD = IT(TYPE)
  594. NEWWELD.Part0 = PART0
  595. NEWWELD.Part1 = PART1
  596. NEWWELD.C0 = C0
  597. NEWWELD.C1 = C1
  598. NEWWELD.Parent = PARENT
  599. return NEWWELD
  600. end
  601.  
  602. local S = IT("Sound")
  603. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  604. local NEWSOUND = nil
  605. coroutine.resume(coroutine.create(function()
  606. NEWSOUND = S:Clone()
  607. NEWSOUND.Parent = PARENT
  608. NEWSOUND.Volume = VOLUME
  609. NEWSOUND.Pitch = PITCH
  610. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  611. NEWSOUND:play()
  612. if DOESLOOP == true then
  613. NEWSOUND.Looped = true
  614. else
  615. repeat wait(1) until NEWSOUND.Playing == false
  616. NEWSOUND:remove()
  617. end
  618. end))
  619. return NEWSOUND
  620. end
  621.  
  622. function CFrameFromTopBack(at, top, back)
  623. local right = top:Cross(back)
  624. 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)
  625. end
  626.  
  627. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(248,17,109), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  628. function WACKYEFFECT(Table)
  629. local TYPE = (Table.EffectType or "Sphere")
  630. local SIZE = (Table.Size or VT(1,1,1))
  631. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  632. local TRANSPARENCY = (Table.Transparency or 0)
  633. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  634. local CFRAME = (Table.CFrame or Torso.CFrame)
  635. local MOVEDIRECTION = (Table.MoveToPos or nil)
  636. local ROTATION1 = (Table.RotationX or 0)
  637. local ROTATION2 = (Table.RotationY or 0)
  638. local ROTATION3 = (Table.RotationZ or 0)
  639. local MATERIAL = (Table.Material or "Neon")
  640. local COLOR = (Table.Color or C3(1,1,1))
  641. local TIME = (Table.Time or 45)
  642. local SOUNDID = (Table.SoundID or nil)
  643. local SOUNDPITCH = (Table.SoundPitch or nil)
  644. local SOUNDVOLUME = (Table.SoundVolume or nil)
  645. coroutine.resume(coroutine.create(function()
  646. local PLAYSSOUND = false
  647. local SOUND = nil
  648. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  649. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  650. PLAYSSOUND = true
  651. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  652. end
  653. EFFECT.Color = COLOR
  654. local MSH = nil
  655. if TYPE == "Sphere" then
  656. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  657. elseif TYPE == "Block" then
  658. MSH = IT("BlockMesh",EFFECT)
  659. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  660. elseif TYPE == "Wave" then
  661. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  662. elseif TYPE == "Ring" then
  663. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  664. elseif TYPE == "Slash" then
  665. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  666. elseif TYPE == "Round Slash" then
  667. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  668. elseif TYPE == "Swirl" then
  669. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  670. elseif TYPE == "Skull" then
  671. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  672. elseif TYPE == "Crystal" then
  673. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  674. end
  675. if MSH ~= nil then
  676. local MOVESPEED = nil
  677. if MOVEDIRECTION ~= nil then
  678. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  679. end
  680. local GROWTH = SIZE - ENDSIZE
  681. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  682. if TYPE == "Block" then
  683. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  684. else
  685. EFFECT.CFrame = CFRAME
  686. end
  687. for LOOP = 1, TIME+1 do
  688. Swait()
  689. MSH.Scale = MSH.Scale - GROWTH/TIME
  690. if TYPE == "Wave" then
  691. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  692. end
  693. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  694. if TYPE == "Block" then
  695. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  696. else
  697. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  698. end
  699. if MOVEDIRECTION ~= nil then
  700. local ORI = EFFECT.Orientation
  701. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  702. EFFECT.Orientation = ORI
  703. end
  704. end
  705. if PLAYSSOUND == false then
  706. EFFECT:remove()
  707. else
  708. repeat Swait() until SOUND.Playing == false
  709. EFFECT:remove()
  710. end
  711. else
  712. if PLAYSSOUND == false then
  713. EFFECT:remove()
  714. else
  715. repeat Swait() until SOUND.Playing == false
  716. EFFECT:remove()
  717. end
  718. end
  719. end))
  720. end
  721. function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
  722. for _, c in pairs(PARENT:GetChildren()) do
  723. if c.ClassName == "Model" then
  724. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  725. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  726. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  727. if DIST > (TORSO.Position - FROM).Magnitude then
  728. table.insert(TABLE, c)
  729. end
  730. AddChildrenToTable(FROM, c, DIST, TABLE)
  731. elseif c.ClassName == "Folder" then
  732. AddChildrenToTable(FROM, c, DIST, TABLE)
  733. end
  734. end
  735. end
  736. end
  737. function MakeForm(PART,TYPE)
  738. if TYPE == "Cyl" then
  739. local MSH = IT("CylinderMesh",PART)
  740. elseif TYPE == "Ball" then
  741. local MSH = IT("SpecialMesh",PART)
  742. MSH.MeshType = "Sphere"
  743. elseif TYPE == "Wedge" then
  744. local MSH = IT("SpecialMesh",PART)
  745. MSH.MeshType = "Wedge"
  746. end
  747. end
  748.  
  749. Debris = game:GetService("Debris")
  750.  
  751. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  752. local DIRECTION = CF(StartPos,EndPos).lookVector
  753. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  754. end
  755.  
  756. function turnto(position)
  757. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  758. end
  759. function MagicSpheres(SIZE,WAIT,CFRAME,COLOR,GROW)
  760. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  761. local mesh = IT("SpecialMesh",wave)
  762. mesh.MeshType = "Sphere"
  763. mesh.Scale = SIZE
  764. mesh.Offset = VT(0,0,0)
  765. wave.CFrame = CFRAME
  766. coroutine.resume(coroutine.create(function(PART)
  767. for i = 1, WAIT do
  768. Swait()
  769. mesh.Scale = mesh.Scale + GROW
  770. wave.Transparency = wave.Transparency + (1/WAIT)
  771. if wave.Transparency > 0.99 then
  772. wave:remove()
  773. end
  774. end
  775. end))
  776. end
  777. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  778. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  779. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  780. wave.CFrame = CFRAME
  781. coroutine.resume(coroutine.create(function(PART)
  782. for i = 1, WAIT do
  783. Swait()
  784. mesh.Scale = mesh.Scale + GROW
  785. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  786. if DOESROT == true then
  787. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  788. end
  789. wave.Transparency = wave.Transparency + 0.5 / WAIT
  790. if wave.Transparency > 0.99 then
  791. wave:remove()
  792. end
  793. end
  794. end))
  795. end
  796. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  797. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  798. wave.Color = COLOR
  799. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
  800. wave.CFrame = CFRAME
  801. coroutine.resume(coroutine.create(function(PART)
  802. for i = 1, WAIT do
  803. Swait()
  804. mesh.Scale = mesh.Scale + GROW
  805. wave.Transparency = wave.Transparency + 1 / WAIT
  806. if wave.Transparency > 0.99 then
  807. wave:remove()
  808. end
  809. end
  810. end))
  811. end
  812. function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  813. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  814. local mesh
  815. if KIND == "Base" then
  816. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  817. elseif KIND == "Thin" then
  818. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  819. elseif KIND == "Round" then
  820. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  821. end
  822. wave.CFrame = CFRAME
  823. coroutine.resume(coroutine.create(function(PART)
  824. for i = 1, WAIT do
  825. Swait()
  826. mesh.Scale = mesh.Scale + GROW / 10
  827. wave.Transparency = wave.Transparency + 0.5 / WAIT
  828. if wave.Transparency > 0.99 then
  829. wave:remove()
  830. end
  831. end
  832. end))
  833. end
  834.  
  835. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  836. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  837. end
  838.  
  839. function PositiveAngle(NUMBER)
  840. if NUMBER >= 0 then
  841. NUMBER = 0
  842. end
  843. return NUMBER
  844. end
  845.  
  846. function NegativeAngle(NUMBER)
  847. if NUMBER <= 0 then
  848. NUMBER = 0
  849. end
  850. return NUMBER
  851. end
  852.  
  853. function Swait(NUMBER)
  854. if NUMBER == 0 or NUMBER == nil then
  855. ArtificialHB.Event:wait()
  856. else
  857. for i = 1, NUMBER do
  858. ArtificialHB.Event:wait()
  859. end
  860. end
  861. end
  862.  
  863. function QuaternionFromCFrame(cf)
  864. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  865. local trace = m00 + m11 + m22
  866. if trace > 0 then
  867. local s = math.sqrt(1 + trace)
  868. local recip = 0.5 / s
  869. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  870. else
  871. local i = 0
  872. if m11 > m00 then
  873. i = 1
  874. end
  875. if m22 > (i == 0 and m00 or m11) then
  876. i = 2
  877. end
  878. if i == 0 then
  879. local s = math.sqrt(m00 - m11 - m22 + 1)
  880. local recip = 0.5 / s
  881. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  882. elseif i == 1 then
  883. local s = math.sqrt(m11 - m22 - m00 + 1)
  884. local recip = 0.5 / s
  885. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  886. elseif i == 2 then
  887. local s = math.sqrt(m22 - m00 - m11 + 1)
  888. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  889. end
  890. end
  891. end
  892.  
  893. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  894. local xs, ys, zs = x + x, y + y, z + z
  895. local wx, wy, wz = w * xs, w * ys, w * zs
  896. local xx = x * xs
  897. local xy = x * ys
  898. local xz = x * zs
  899. local yy = y * ys
  900. local yz = y * zs
  901. local zz = z * zs
  902. 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))
  903. end
  904.  
  905. function QuaternionSlerp(a, b, t)
  906. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  907. local startInterp, finishInterp;
  908. if cosTheta >= 0.0001 then
  909. if (1 - cosTheta) > 0.0001 then
  910. local theta = ACOS(cosTheta)
  911. local invSinTheta = 1 / SIN(theta)
  912. startInterp = SIN((1 - t) * theta) * invSinTheta
  913. finishInterp = SIN(t * theta) * invSinTheta
  914. else
  915. startInterp = 1 - t
  916. finishInterp = t
  917. end
  918. else
  919. if (1 + cosTheta) > 0.0001 then
  920. local theta = ACOS(-cosTheta)
  921. local invSinTheta = 1 / SIN(theta)
  922. startInterp = SIN((t - 1) * theta) * invSinTheta
  923. finishInterp = SIN(t * theta) * invSinTheta
  924. else
  925. startInterp = t - 1
  926. finishInterp = t
  927. end
  928. end
  929. 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
  930. end
  931.  
  932. function Clerp(a, b, t)
  933. local qa = {QuaternionFromCFrame(a)}
  934. local qb = {QuaternionFromCFrame(b)}
  935. local ax, ay, az = a.x, a.y, a.z
  936. local bx, by, bz = b.x, b.y, b.z
  937. local _t = 1 - t
  938. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  939. end
  940.  
  941. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  942. local frame = IT("Frame")
  943. frame.BackgroundTransparency = TRANSPARENCY
  944. frame.BorderSizePixel = BORDERSIZEPIXEL
  945. frame.Position = POSITION
  946. frame.Size = SIZE
  947. frame.BackgroundColor3 = COLOR
  948. frame.BorderColor3 = BORDERCOLOR
  949. frame.Name = NAME
  950. frame.Parent = PARENT
  951. return frame
  952. end
  953.  
  954. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  955. local label = IT("TextLabel")
  956. label.BackgroundTransparency = 1
  957. label.Size = UD2(1, 0, 1, 0)
  958. label.Position = UD2(0, 0, 0, 0)
  959. label.TextColor3 = TEXTCOLOR
  960. label.TextStrokeTransparency = STROKETRANSPARENCY
  961. label.TextTransparency = TRANSPARENCY
  962. label.FontSize = TEXTFONTSIZE
  963. label.Font = TEXTFONT
  964. label.BorderSizePixel = BORDERSIZEPIXEL
  965. label.TextScaled = false
  966. label.Text = TEXT
  967. label.Name = NAME
  968. label.Parent = PARENT
  969. return label
  970. end
  971.  
  972. function NoOutlines(PART)
  973. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  974. end
  975.  
  976.  
  977. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  978. local NEWWELD = IT(TYPE)
  979. NEWWELD.Part0 = PART0
  980. NEWWELD.Part1 = PART1
  981. NEWWELD.C0 = C0
  982. NEWWELD.C1 = C1
  983. NEWWELD.Parent = PARENT
  984. return NEWWELD
  985. end
  986.  
  987. function CreateSound(ID, PARENT, VOLUME, PITCH)
  988. local NEWSOUND = nil
  989. coroutine.resume(coroutine.create(function()
  990. NEWSOUND = IT("Sound", PARENT)
  991. NEWSOUND.Volume = VOLUME
  992. NEWSOUND.Pitch = PITCH
  993. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  994. Swait()
  995. NEWSOUND:play()
  996. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  997. end))
  998. return NEWSOUND
  999. end
  1000.  
  1001. function CFrameFromTopBack(at, top, back)
  1002. local right = top:Cross(back)
  1003. 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)
  1004. end
  1005.  
  1006. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1007. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Daisy orange"), "Effect", VT(0,0,0))
  1008. local mesh = IT("SpecialMesh",wave)
  1009. mesh.MeshType = "FileMesh"
  1010. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1011. mesh.Scale = SIZE
  1012. mesh.Offset = VT(0,0,-SIZE.X/8)
  1013. wave.CFrame = CFRAME
  1014. coroutine.resume(coroutine.create(function(PART)
  1015. for i = 1, WAIT do
  1016. Swait()
  1017. mesh.Scale = mesh.Scale + GROW
  1018. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1019. if DOESROT == true then
  1020. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1021. end
  1022. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1023. if wave.Transparency > 0.99 then
  1024. wave:remove()
  1025. end
  1026. end
  1027. end))
  1028. end
  1029.  
  1030. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1031. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Daisy orange"), "Effect", VT(0,0,0))
  1032. local mesh = IT("SpecialMesh",wave)
  1033. mesh.MeshType = "FileMesh"
  1034. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1035. mesh.Scale = SIZE
  1036. --mesh.Offset = VT(0,0,-SIZE.X/8)
  1037. wave.CFrame = CFRAME
  1038. coroutine.resume(coroutine.create(function(PART)
  1039. for i = 1, WAIT do
  1040. Swait()
  1041. mesh.Scale = mesh.Scale + GROW
  1042. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1043. if DOESROT == true then
  1044. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1045. end
  1046. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1047. if wave.Transparency > 0.99 then
  1048. wave:remove()
  1049. end
  1050. end
  1051. end))
  1052. end
  1053.  
  1054. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1055. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Daisy orange"), "Effect", VT(0,0,0))
  1056. local mesh = IT("SpecialMesh",wave)
  1057. mesh.MeshType = "FileMesh"
  1058. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1059. mesh.Scale = SIZE
  1060. wave.CFrame = CFRAME
  1061. coroutine.resume(coroutine.create(function(PART)
  1062. for i = 1, WAIT do
  1063. Swait()
  1064. mesh.Scale = mesh.Scale + GROW
  1065. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1066. if DOESROT == true then
  1067. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1068. end
  1069. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1070. if wave.Transparency > 0.99 then
  1071. wave:remove()
  1072. end
  1073. end
  1074. end))
  1075. end
  1076.  
  1077.  
  1078. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  1079. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Daisy orange"), "Effect", VT(1,1,1), true)
  1080. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1081. wave.CFrame = CFRAME
  1082. coroutine.resume(coroutine.create(function(PART)
  1083. for i = 1, WAIT do
  1084. Swait()
  1085. mesh.Scale = mesh.Scale * GROW
  1086. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1087. if wave.Transparency > 0.99 then
  1088. wave:remove()
  1089. end
  1090. end
  1091. end))
  1092. end
  1093.  
  1094. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1095. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Daisy orange"), "Effect", VT(1,1,1), true)
  1096. local mesh = IT("SpecialMesh",wave)
  1097. mesh.MeshType = "Sphere"
  1098. mesh.Scale = SIZE
  1099. mesh.Offset = VT(0,0,0)
  1100. wave.CFrame = CFRAME
  1101. coroutine.resume(coroutine.create(function(PART)
  1102. for i = 1, WAIT do
  1103. Swait()
  1104. mesh.Scale = mesh.Scale + GROW
  1105. wave.Transparency = wave.Transparency + (1/WAIT)
  1106. if wave.Transparency > 0.99 then
  1107. wave:remove()
  1108. end
  1109. end
  1110. end))
  1111. end
  1112.  
  1113. function MakeForm(PART,TYPE)
  1114. if TYPE == "Cyl" then
  1115. local MSH = IT("CylinderMesh",PART)
  1116. elseif TYPE == "Ball" then
  1117. local MSH = IT("SpecialMesh",PART)
  1118. MSH.MeshType = "Sphere"
  1119. elseif TYPE == "Wedge" then
  1120. local MSH = IT("SpecialMesh",PART)
  1121. MSH.MeshType = "Wedge"
  1122. end
  1123. end
  1124.  
  1125. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1126. if FLOOR ~= nil then
  1127. coroutine.resume(coroutine.create(function()
  1128. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  1129. PART.CFrame = CF(POSITION)
  1130. for i = 1, 45 do
  1131. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  1132. RingPiece.Material = FLOOR.Material
  1133. RingPiece.Color = FLOOR.Color
  1134. 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)))
  1135. Debris:AddItem(RingPiece,SWAIT/100)
  1136. end
  1137. PART:remove()
  1138. end))
  1139. end
  1140. end
  1141.  
  1142. function CheckTableForString(Table, String)
  1143. for i, v in pairs(Table) do
  1144. if string.find(string.lower(String), string.lower(v)) then
  1145. return true
  1146. end
  1147. end
  1148. return false
  1149. end
  1150.  
  1151. function CheckIntangible(Hit)
  1152. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1153. if Hit and Hit.Parent then
  1154. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1155. return true
  1156. end
  1157. end
  1158. return false
  1159. end
  1160.  
  1161. Debris = game:GetService("Debris")
  1162.  
  1163. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1164. local Direction = CFrame.new(StartPos, Vec).lookVector
  1165. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1166. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1167. if RayHit and CheckIntangible(RayHit) then
  1168. if DelayIfHit then
  1169. wait()
  1170. end
  1171. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1172. end
  1173. return RayHit, RayPos, RayNormal
  1174. end
  1175.  
  1176. function turnto(position)
  1177. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1178. end
  1179.  
  1180. --//=================================\\
  1181. --|| WEAPON CREATION
  1182. --\\=================================//
  1183.  
  1184. local RWING = CreatePart(3, Weapon, "Neon", 0, 1, "Institutional white", "Right Wing", VT(2, 3, 2) * 1.5, false)
  1185. RWING.Color = C3(0.807843137254902, 0.6392156862745098, 0.8549019607843137)
  1186. local RWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, RWING, CF(1, 2, 0.5), CF(-1.5, 0, 0))
  1187. local LWING = CreatePart(3, Weapon, "Neon", 0, 1, "Institutional white", "Left Wing", VT(2, 3, 2) * 1.5, false)
  1188. LWING.Color = C3(0.807843137254902, 0.6392156862745098, 0.8549019607843137)
  1189. local LWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, LWING, CF(-1, 2, 0.5), CF(1.6, 0, 0))
  1190. CreateMesh("SpecialMesh", RWING, "FileMesh", "90615661", "", VT(1.5, 1.5, 1.5) * 0.8, VT(0, 0, 0))
  1191. CreateMesh("SpecialMesh", LWING, "FileMesh", "90615581", "", VT(1.5, 1.5, 1.5) * 0.8, VT(0, 0, 0))
  1192.  
  1193. function CreateNeonCircle(ATTACHPART, POSITION, SIZE, DOESSPIN, COLOR, MATERIAL, THICKNESS, WIDTH)
  1194. local PART = CreatePart(3, Weapon, MATERIAL, 0, 1, COLOR, "CirclePart", VT(0, 0, 0), false)
  1195. for i = 1, 45 do
  1196. local RingPiece = CreatePart(3, Weapon, MATERIAL, 0, 0, COLOR, "CirclePart", VT(THICKNESS, WIDTH, SIZE * 0.65), false)
  1197. local RingWeld = CreateWeldOrSnapOrMotor("Weld", RingPiece, PART, RingPiece, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i * 8), RAD(0)), CF(0, 0, 0) * CF(SIZE * 4, 0, 0))
  1198. end
  1199. local PartWeld = CreateWeldOrSnapOrMotor("Weld", ATTACHPART, PART, ATTACHPART, POSITION * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1200. coroutine.resume(coroutine.create(function()
  1201. if DOESSPIN == true then
  1202. while true do
  1203. wait()
  1204. PartWeld.C0 = Clerp(PartWeld.C0, POSITION * ANGLES(RAD(0), RAD(SINE * 2), RAD(0)), 1)
  1205. end
  1206. end
  1207. end))
  1208. end
  1209.  
  1210.  
  1211. CreateNeonCircle(Head, CF(0, -1.15, 0.1), 0.16, true, "Daisy orange", "Neon", 0.05, 0.05)
  1212. for _, c in pairs(Weapon:GetChildren()) do
  1213. if c.ClassName == "Part" then
  1214. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1215. end
  1216. end
  1217.  
  1218. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
  1219. 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))
  1220. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
  1221. 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))
  1222.  
  1223. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1224. 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))
  1225. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1226. 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))
  1227. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1228. 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))
  1229. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1230. 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))
  1231.  
  1232. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
  1233. 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))
  1234. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
  1235. 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))
  1236. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1237. 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))
  1238. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1239. 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))
  1240. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1241. 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))
  1242.  
  1243.  
  1244. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
  1245. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, LeftArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1246. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
  1247. 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))
  1248.  
  1249. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1250. 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))
  1251. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1252. 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))
  1253. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1254. 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))
  1255. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1256. 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))
  1257.  
  1258. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
  1259. 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))
  1260. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
  1261. 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))
  1262. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1263. 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))
  1264. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1265. 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))
  1266. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Daisy orange", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1267. 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))
  1268.  
  1269. for _, c in pairs(Weapon:GetChildren()) do
  1270. if c.ClassName == "Part" then
  1271. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1272. end
  1273. end
  1274.  
  1275. Weapon.Parent = Character
  1276.  
  1277. Humanoid.Died:connect(function()
  1278. ATTACK = true
  1279. end)
  1280.  
  1281. 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")
  1282. 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")
  1283. 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")
  1284. 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")
  1285.  
  1286. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Death's Agreement", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  1287. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Grab Time", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  1288. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Max Speed", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
  1289. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Green's Ultimate Punch", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4")
  1290.  
  1291. --//=================================\\
  1292. --|| DAMAGE FUNCTIONS
  1293. --\\=================================//
  1294.  
  1295. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1296. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1297. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1298. local BODYGYRO = IT("BodyGyro", STATPART)
  1299. local BODYPOSITION = IT("BodyPosition", STATPART)
  1300. BODYPOSITION.P = 2000
  1301. BODYPOSITION.D = 100
  1302. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1303. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1304. game:GetService("Debris"):AddItem(STATPART ,5)
  1305. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1306. BILLBOARDGUI.Adornee = STATPART
  1307. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1308. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1309. BILLBOARDGUI.AlwaysOnTop = false
  1310. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1311. TEXTLABEL.BackgroundTransparency = 1
  1312. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1313. TEXTLABEL.Text = TEXT
  1314. TEXTLABEL.Font = "SciFi"
  1315. TEXTLABEL.FontSize="Size42"
  1316. TEXTLABEL.TextColor3 = COLOR
  1317. TEXTLABEL.TextStrokeTransparency = 1
  1318. TEXTLABEL.TextScaled = true
  1319. TEXTLABEL.TextWrapped = true
  1320. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1321. if LABELTYPE == "Normal" then
  1322. for i = 1, 30 do
  1323. Swait()
  1324. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  1325. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1326. end
  1327. elseif LABELTYPE == "Debuff" then
  1328. for i = 1, 30 do
  1329. Swait()
  1330. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  1331. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1332. end
  1333. elseif LABELTYPE == "Shock" then
  1334. local ORIGIN = STATPART.Position
  1335. for i = 1, 30 do
  1336. Swait()
  1337. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  1338. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1339. end
  1340. end
  1341. THEPART.Parent = nil
  1342. end),STATPART, BODYPOSITION, TEXTLABEL)
  1343. end
  1344.  
  1345. --//=================================\\
  1346. --|| DAMAGING
  1347. --\\=================================//
  1348.  
  1349. function Freeze(position, range)
  1350. for i, v in ipairs(workspace:GetChildren()) do
  1351. local body = v:GetChildren()
  1352. for part = 1, #body do
  1353. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" and v:FindFirstChildOfClass("Humanoid") then
  1354. v:BreakJoints()
  1355. body[part].Material = "Ice"
  1356. body[part].BrickColor = BRICKC("Medium blue")
  1357. body[part].Anchored = true
  1358. end
  1359. end
  1360. end
  1361. end
  1362. function Petrify(Foe)
  1363. local STONEMODEL = IT("Model", Effects)
  1364. local CHILDREN = Foe:GetDescendants()
  1365. for index, CHILD in pairs(CHILDREN) do
  1366. if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then
  1367. CHILD.Parent = STONEMODEL
  1368. CHILD.Material = "Slate"
  1369. CHILD.Color = C3(0 , 0, 0)
  1370. MagicSphere(VT(0,0,0),45,CHILD.CFrame,C3(1,0,0),VT(0.2,0.2,0.2))
  1371. if CHILD:FindFirstChildOfClass("SpecialMesh") then
  1372. local mesh = CHILD:FindFirstChildOfClass("SpecialMesh")
  1373. mesh.TextureId = ""
  1374. end
  1375. if CHILD:FindFirstChildOfClass("Decal") then
  1376. local mesh = CHILD:FindFirstChildOfClass("Decal")
  1377. mesh:remove()
  1378. end
  1379. if CHILD.ClassName == "MeshPart" then
  1380. CHILD.TextureID = ""
  1381. end
  1382. if CHILD.ClassName == "UnionOperation" then
  1383. CHILD.UsePartColor = true
  1384. end
  1385. CHILD.CanCollide = true
  1386. end
  1387. end
  1388. Debris:AddItem(STONEMODEL, 5)
  1389. end
  1390. function ApplyAoE(POSITION,RANGE,BRUTAL,ICE)
  1391. local CHILDREN = workspace:GetDescendants()
  1392. for index, CHILD in pairs(CHILDREN) do
  1393. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1394. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1395. if HUM then
  1396. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1397. if TORSO then
  1398. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1399. if BRUTAL == true then
  1400. Petrify(CHILD)
  1401. end
  1402. end
  1403. end
  1404. end
  1405. end
  1406. end
  1407. end
  1408.  
  1409. function killnearest(position,range,maxstrength,direction)
  1410. for i,v in ipairs(workspace:GetChildren()) do
  1411. local body = v:GetChildren()
  1412. for part = 1, #body do
  1413. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1414. if(body[part].Position - position).Magnitude < range then
  1415. if v.ClassName == "Model" then
  1416. --v:BreakJoints()
  1417. end
  1418. local POS = position
  1419. coroutine.resume(coroutine.create(function()
  1420. body[part].Anchored = true
  1421. body[part].Parent = Effects
  1422. body[part].CanCollide = true
  1423. local SIZE = body[part].Size
  1424. body[part].Material = "Neon"
  1425. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1426. for i = 1, 75 do
  1427. Swait()
  1428. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1429. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1430. end
  1431. coroutine.resume(coroutine.create(function()
  1432. while true do
  1433. Swait()
  1434. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1435. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1436. end
  1437. end))
  1438. body[part].Anchored = false
  1439. body[part].Velocity = direction.lookVector*maxstrength
  1440. end))
  1441. end
  1442. end
  1443. end
  1444. if v.ClassName == "Part" then
  1445. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1446. local POS = position
  1447. coroutine.resume(coroutine.create(function()
  1448. v.Anchored = true
  1449. v.Parent = Effects
  1450. local SIZE = v.Size
  1451. v.Material = "Neon"
  1452. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1453. for i = 1, 75 do
  1454. Swait()
  1455. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1456. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1457. end
  1458. coroutine.resume(coroutine.create(function()
  1459. while true do
  1460. Swait()
  1461. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1462. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1463. end
  1464. end))
  1465. v.Anchored = false
  1466. v.Velocity = direction.lookVector*maxstrength
  1467. end))
  1468. end
  1469. end
  1470. end
  1471. end
  1472.  
  1473. --//=================================\\
  1474. --|| ATTACK FUNCTIONS AND STUFF
  1475. --\\=================================//
  1476.  
  1477. function AttackTemplate()
  1478. ATTACK = true
  1479. Rooted = false
  1480. for i=0, 1, 0.1 / Animation_Speed do
  1481. Swait()
  1482. 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)
  1483. 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)
  1484. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1485. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1486. 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)
  1487. 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)
  1488. end
  1489. ATTACK = false
  1490. Rooted = false
  1491. end
  1492.  
  1493. function DeathAgreement()
  1494. ATTACK = true
  1495. Rooted = false
  1496. local SPEED = Speed
  1497. Speed = 10
  1498. CreateSound("357202141", RightArm, 10, 1.1)
  1499. for i=0, 0, 0.1 / Animation_Speed do
  1500. Swait()
  1501. turnto(Mouse.Hit.p)
  1502. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Lime green",VT(-1/15,-1/15,-1/15))
  1503. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Lime green",VT(-2/15,-2/15,-2/15))
  1504. 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)
  1505. 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)
  1506. 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)
  1507. 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)
  1508. 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)
  1509. 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)
  1510. end
  1511. for i=0, 0.15, 0.1 / Animation_Speed do
  1512. Swait()
  1513. turnto(Mouse.Hit.p)
  1514. 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)
  1515. 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)
  1516. 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)
  1517. 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)
  1518. 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)
  1519. 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)
  1520. end
  1521. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Daisy orange", "Punch", VT(50,50,50),false)
  1522. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1523. PART.Shape = "Ball"
  1524. local bv = Instance.new("BodyVelocity")
  1525. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1526. bv.velocity = RootPart.CFrame.lookVector*600
  1527. bv.Parent = PART
  1528. bv.Name = "PROJECTILEVELOCITY"
  1529. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Daisy orange",VT(2.5,0.2,2.5))
  1530. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Daisy orange",VT(3,0.2,3))
  1531. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Daisy orange",VT(2,0.6,2))
  1532. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Daisy orange",VT(2.2,0.6,2.2))
  1533. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1534. coroutine.resume(coroutine.create(function()
  1535. for i = 1, 10 do
  1536. Swait()
  1537. PART.Transparency = PART.Transparency + 0.2/10
  1538. PART.Size = PART.Size + VT(5,5,5)
  1539. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  1540. end
  1541. PART:Destroy()
  1542. end))
  1543. for i=0, 1, 0.1 / Animation_Speed do
  1544. Swait()
  1545. 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)
  1546. 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)
  1547. 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)
  1548. 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)
  1549. 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)
  1550. 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)
  1551. end
  1552. Speed = SPEED
  1553. ATTACK = false
  1554. Rooted = false
  1555. end
  1556.  
  1557. function GrabTime()
  1558. ATTACK = true
  1559. Rooted = false
  1560. local HASGRABBED = false
  1561. local WELD = nil
  1562. local TORS = nil
  1563. local hitting = FIST.Touched:connect(function(hit)
  1564. if hit.Parent:FindFirstChild("Humanoid") then
  1565. if hit.Parent.Humanoid.Health ~= 0 then
  1566. UNANCHOR = false
  1567. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1568. TORS.Anchored = true
  1569. TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  1570. WELD = weldBetween(RightArm,TORS)
  1571. HASGRABBED = true
  1572. Rooted = true
  1573. end
  1574. end
  1575. end)
  1576. for i=0, 1, 0.1 / Animation_Speed do
  1577. Swait()
  1578. if HASGRABBED == true then
  1579. break
  1580. end
  1581. 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)
  1582. 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)
  1583. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1584. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1585. 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)
  1586. 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)
  1587. end
  1588. hitting:disconnect()
  1589. if HASGRABBED == true then
  1590. TORS.Anchored = false
  1591. RootPart.Anchored = true
  1592. for i=0, 2, 0.1 / Animation_Speed do
  1593. Swait()
  1594. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1595. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1596. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1597. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1598. 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)
  1599. 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)
  1600. end
  1601. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5))
  1602. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6))
  1603. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0))
  1604. SOUNDPART.CFrame = RootPart.CFrame
  1605. Debris:AddItem(SOUNDPART,5)
  1606. CreateSound("357202073", SOUNDPART, 2, 1)
  1607. for i = 1, 15 do
  1608. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15)
  1609. end
  1610. for i=0, 2, 0.1 / Animation_Speed do
  1611. Swait()
  1612. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1613. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1614. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1615. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1616. 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)
  1617. 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)
  1618. end
  1619. for i=0, 0.25, 0.1 / Animation_Speed do
  1620. Swait()
  1621. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
  1622. 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)
  1623. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1624. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1625. 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)
  1626. 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)
  1627. end
  1628. if HITFLOOR ~= nil then
  1629. CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85)
  1630. end
  1631. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1632. WELD:remove()
  1633. for i = 1, 25 do
  1634. Swait()
  1635. killnearest(RootPart.Position,45,100,Torso.CFrame)
  1636. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3))
  1637. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Really red",VT(1,0.4,1))
  1638. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Really red",VT(2.3,0.3,2.3))
  1639. 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)
  1640. 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))),"Lime green", 1 + MRANDOM(1,30)/15)
  1641. end
  1642. end
  1643. UNANCHOR = true
  1644. ATTACK = false
  1645. Rooted = false
  1646. end
  1647.  
  1648. function MaxSpeed()
  1649. local ORIGIN = RootPart.Position
  1650. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1651. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1652. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0))
  1653. SOUNDPART.CFrame = RootPart.CFrame
  1654. Debris:AddItem(SOUNDPART,5)
  1655. CreateSound("357202032", SOUNDPART, 2, 1)
  1656. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
  1657. Swait()
  1658. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1659. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1660. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0))
  1661. SOUNDPART.CFrame = RootPart.CFrame
  1662. Debris:AddItem(SOUNDPART,5)
  1663. CreateSound("1295446488", SOUNDPART, 2, 1)
  1664. if MRANDOM(1,8) == 1 then
  1665. ATTACK = true
  1666. Rooted = true
  1667. local FRUITSTABLE = {
  1668. {MeshId = "16190555", TextureId = "16190577", Color = "Really red"},
  1669. {MeshId = "119574562", TextureId = "64374853", Color = "New Yeller"},
  1670. {MeshId = "24394186", TextureId = "24394178", Color = "Brown"}
  1671. }
  1672. local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
  1673. local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
  1674. CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
  1675. FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0)
  1676. weldBetween(RightArm,FRUITMODEL)
  1677. for i=0, 4, 0.1 / Animation_Speed do
  1678. Swait()
  1679. 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)
  1680. 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)
  1681. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1682. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1683. 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)
  1684. 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)
  1685. end
  1686. CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
  1687. FRUITMODEL:remove()
  1688. for i = 1, 15 do
  1689. 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)
  1690. end
  1691. for i=0, 0.5, 0.1 / Animation_Speed do
  1692. Swait()
  1693. 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)
  1694. 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)
  1695. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1696. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1697. 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)
  1698. 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)
  1699. end
  1700. ATTACK = false
  1701. Rooted = false
  1702. end
  1703. end
  1704.  
  1705. function GreenUltimate()
  1706. ATTACK = true
  1707. Rooted = true
  1708. CreateSound("358080470", RightArm, 10, 0.8)
  1709. for i=0, 8, 0.1 / Animation_Speed do
  1710. Swait()
  1711. turnto(Mouse.Hit.p)
  1712. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Really red",VT(0.2,0,0.2))
  1713. Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Lime green", 1.1)
  1714. 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)
  1715. 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),"Lime green",VT(0.001,0.001,2),0)
  1716. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Lime green",VT(-1/15,-1/15,-1/15))
  1717. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Lime green",VT(-2/15,-2/15,-2/15))
  1718. 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)
  1719. 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)
  1720. 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)
  1721. 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)
  1722. 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)
  1723. 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)
  1724. end
  1725. for i=0, 0.15, 0.1 / Animation_Speed do
  1726. Swait()
  1727. turnto(Mouse.Hit.p)
  1728. 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)
  1729. 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)
  1730. 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)
  1731. 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)
  1732. 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)
  1733. 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)
  1734. end
  1735. MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Really red",VT(-0.04,-0.04,-0.04))
  1736. MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035))
  1737. coroutine.resume(coroutine.create(function()
  1738. Swait(100)
  1739. for i = 1, 5 do
  1740. MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Really red",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i))))
  1741. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Lime green",VT(4.5*i,0.2,4.5*i))
  1742. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Lime green",VT(5*i,0.2,5*i))
  1743. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Lime green",VT(4*i,0.6,4*i))
  1744. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Lime green",VT(5.2*i,0.6,5.2*i))
  1745. end
  1746. killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame)
  1747. for i = 1, 5 do
  1748. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1749. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1750. end
  1751. coroutine.resume(coroutine.create(function()
  1752. for i = 1, 50 do
  1753. Swait()
  1754. for i = 1, 1 do
  1755. 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)
  1756. end
  1757. for i = 1, 2 do
  1758. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Lime green", 1 + MRANDOM(1,30)/3)
  1759. end
  1760. end
  1761. end))
  1762. end))
  1763. for i=0, 4, 0.1 / Animation_Speed do
  1764. Swait()
  1765. 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)
  1766. 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)
  1767. 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)
  1768. 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)
  1769. 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)
  1770. 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)
  1771. end
  1772. ATTACK = false
  1773. Rooted = false
  1774. end
  1775.  
  1776. function Taunt()
  1777. ATTACK = true
  1778. RELAX2 = true
  1779. Rooted = true
  1780. repeat
  1781. Swait()
  1782. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-60 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed)
  1783. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1784. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.50 + 0.05 * COS(SINE / 12), 0.4) * ANGLES(RAD(-160), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1785. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.50 + 0.05 * COS(SINE / 12), 0.4) * ANGLES(RAD(-160), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1786. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.05) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1787. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / 12), -0.05) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1788. WACKYEFFECT({
  1789. EffectType = "None",
  1790. Size = VT(4, 1, 4),
  1791. Size2 = VT(4 + MRANDOM(0, 8), 3, 4 + MRANDOM(0, 8)),
  1792. Transparency = 0.9,
  1793. Transparency2 = 1,
  1794. CFrame = CF(RootPart.Position-VT(0,3.2,0)) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1795. MoveToPos = nil,
  1796. RotationX = 0,
  1797. RotationY = 5,
  1798. RotationZ = 0,
  1799. Material = "Neon",
  1800. Color = C3(1, 1, 1),
  1801. SoundID = nil,
  1802. SoundPitch = nil,
  1803. SoundVolume = nil
  1804. })
  1805. until RELAX2 == false
  1806. ATTACK = false
  1807. Rooted = false
  1808. end
  1809.  
  1810. --//=================================\\
  1811. --|| ASSIGN THINGS TO KEYS
  1812. --\\=================================//
  1813.  
  1814. function MouseDown(Mouse)
  1815. if ATTACK == false then
  1816. end
  1817. end
  1818.  
  1819. function MouseUp(Mouse)
  1820. HOLD = false
  1821. end
  1822.  
  1823. function KeyDown(Key)
  1824. KEYHOLD = true
  1825. if Key == "z" and ATTACK == false then
  1826. DeathAgreement()
  1827. end
  1828.  
  1829. if Key == "b" and ATTACK == false then
  1830. GrabTime()
  1831. end
  1832.  
  1833. if Key == "c" and ATTACK == false then
  1834. MaxSpeed()
  1835. end
  1836.  
  1837. if Key == "t" and ATTACK == false then
  1838. Taunt()
  1839. end
  1840.  
  1841. if Key == "x" and ATTACK == false then
  1842. GreenUltimate()
  1843. end
  1844.  
  1845. if Key == "p" and ATTACK == false then
  1846. if Speed == 16 then
  1847. Speed = 150
  1848. elseif Speed == 150 then
  1849. Speed = 16
  1850. end
  1851. end
  1852. end
  1853.  
  1854. function KeyUp(Key)
  1855. KEYHOLD = false
  1856. end
  1857.  
  1858. Mouse.Button1Down:connect(function(NEWKEY)
  1859. MouseDown(NEWKEY)
  1860. end)
  1861. Mouse.Button1Up:connect(function(NEWKEY)
  1862. MouseUp(NEWKEY)
  1863. end)
  1864. Mouse.KeyDown:connect(function(NEWKEY)
  1865. KeyDown(NEWKEY)
  1866. end)
  1867. Mouse.KeyUp:connect(function(NEWKEY)
  1868. KeyUp(NEWKEY)
  1869. end)
  1870.  
  1871. --//=================================\\
  1872. --\\=================================//
  1873.  
  1874.  
  1875. function unanchor()
  1876. if UNANCHOR == true then
  1877. g = Character:GetChildren()
  1878. for i = 1, #g do
  1879. if g[i].ClassName == "Part" then
  1880. g[i].Anchored = false
  1881. end
  1882. end
  1883. end
  1884. end
  1885.  
  1886.  
  1887. --//=================================\\
  1888. --|| WRAP THE WHOLE SCRIPT UP
  1889. --\\=================================//
  1890.  
  1891. Humanoid.Changed:connect(function(Jump)
  1892. if Jump == "Jump" and (Disable_Jump == true) then
  1893. Humanoid.Jump = false
  1894. end
  1895. end)
  1896.  
  1897. while true do
  1898. Swait()
  1899. ANIMATE.Parent = nil
  1900. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1901. IDLEANIMATION:Play()
  1902. SINE = SINE + CHANGE
  1903. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1904. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1905. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1906. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1907. local WALKSPEEDVALUE = 0
  1908. if Speed < 35 then
  1909. WALKSPEEDVALUE = 6
  1910. else
  1911. WALKSPEEDVALUE = 3
  1912. end
  1913. if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
  1914. 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)
  1915. 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)
  1916. if Speed < 35 then
  1917. 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)
  1918. 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)
  1919. else
  1920. 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)
  1921. 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)
  1922. end
  1923. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
  1924. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1925. 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)
  1926. 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)
  1927. 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)
  1928. end
  1929. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1930. ANIM = "Jump"
  1931. if ATTACK == false then
  1932. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1933. 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)
  1934. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1935. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1936. 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)
  1937. 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)
  1938. end
  1939. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1940. ANIM = "Fall"
  1941. if ATTACK == false then
  1942. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1943. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1944. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1945. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1946. 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)
  1947. 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)
  1948. end
  1949. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1950. ANIM = "Idle"
  1951. if ATTACK == false then
  1952. 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)
  1953. 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)
  1954. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1955. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1956. 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)
  1957. 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)
  1958. end
  1959. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
  1960. ANIM = "Walk"
  1961. WALK = WALK + 1 / Animation_Speed
  1962. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1963. WALK = 0
  1964. if WALKINGANIM == true then
  1965. WALKINGANIM = false
  1966. elseif WALKINGANIM == false then
  1967. WALKINGANIM = true
  1968. end
  1969. end
  1970. --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)
  1971. --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)
  1972. if ATTACK == false then
  1973. if Speed < 35 then
  1974. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1975. 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)
  1976. 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)
  1977. 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)
  1978. 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)
  1979. 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)
  1980. else
  1981. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1982. 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)
  1983. 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)
  1984. 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)
  1985. 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)
  1986. 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)
  1987. end
  1988. end
  1989. end
  1990. unanchor()
  1991. Humanoid.MaxHealth = "inf"
  1992. Humanoid.Health = "inf"
  1993. if Rooted == false then
  1994. Disable_Jump = false
  1995. Humanoid.WalkSpeed = Speed
  1996. elseif Rooted == true then
  1997. Disable_Jump = true
  1998. Humanoid.WalkSpeed = 0
  1999. end
  2000. local MATHS = {"0","1"}
  2001. 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)]
  2002. Humanoid.PlatformStand = false
  2003. end
  2004.  
  2005. --//=================================\\
  2006. --\\=================================//
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012. --//====================================================\\--
  2013. --|| END OF SCRIPT
  2014. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement