Christoffer07700Extr

Chris Evil Gloves Reboot

Aug 23rd, 2019
148
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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(170,0,0)
  186. text.Text = "???"
  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://933032912"
  220. sick.Looped = true
  221. sick.Pitch = 1
  222. sick.Volume = 0.3
  223. sick:Play()
  224. Character.Head.face.Texture = "rbxassetid://398671601"
  225.  
  226. IT = Instance.new
  227. CF = CFrame.new
  228. VT = Vector3.new
  229. RAD = math.rad
  230. C3 = Color3.new
  231. UD2 = UDim2.new
  232. BRICKC = BrickColor.new
  233. ANGLES = CFrame.Angles
  234. EULER = CFrame.fromEulerAnglesXYZ
  235. COS = math.cos
  236. ACOS = math.acos
  237. SIN = math.sin
  238. ASIN = math.asin
  239. ABS = math.abs
  240. MRANDOM = math.random
  241. FLOOR = math.floor
  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(1,1,1), 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("Really red"), "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("Really red"), "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("Really red"), "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("Really red"), "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("Really red"), "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. for i = 1, 10 do
  1185. local FACE = CreatePart(3, Head, "Fabric", 0, 0+(i-1)/10.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  1186. FACE.Color = C3(0,0,0)
  1187. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1188. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.28-(i-1)/30,0), CF(0, 0, 0))
  1189. end
  1190. local LASTPART = Head
  1191. for i = 1, 15 do
  1192. local MATH = (1-(i/16))
  1193. if LASTPART == Head then
  1194. local Horn = CreatePart(3, Character, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1195. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.45, 0.5, -0.15) * ANGLES(RAD(-35), RAD(5), RAD(-25)), CF(0, 0, 0))
  1196. LASTPART = Horn
  1197. Horn.Color = C3((i/15),0,0)
  1198. local MSH = IT("BlockMesh",Horn)
  1199. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1200. else
  1201. local Horn = CreatePart(3, Character, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1202. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2.1, 0) * ANGLES(RAD(25), RAD(5), RAD(0)), CF(0, -Horn.Size.Y/2.2, 0))
  1203. LASTPART = Horn
  1204. Horn.Color = C3((i/15),0,0)
  1205. local MSH = IT("BlockMesh",Horn)
  1206. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1207. end
  1208. end
  1209. local LASTPART = Head
  1210. for i = 1, 15 do
  1211. local MATH = (1-(i/16))
  1212. if LASTPART == Head then
  1213. local Horn = CreatePart(3, Character, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1214. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.45, 0.5, -0.15) * ANGLES(RAD(-35), RAD(-5), RAD(25)), CF(0, 0, 0))
  1215. LASTPART = Horn
  1216. Horn.Color = C3((i/15),0,0)
  1217. local MSH = IT("BlockMesh",Horn)
  1218. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1219. else
  1220. local Horn = CreatePart(3, Character, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1221. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2.1, 0) * ANGLES(RAD(25), RAD(-5), RAD(0)), CF(0, -Horn.Size.Y/2.2, 0))
  1222. LASTPART = Horn
  1223. Horn.Color = C3((i/15),0,0)
  1224. local MSH = IT("BlockMesh",Horn)
  1225. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1226. end
  1227. end
  1228. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
  1229. 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))
  1230. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
  1231. 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))
  1232.  
  1233. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1234. 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))
  1235. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1236. 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))
  1237. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1238. 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))
  1239. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1240. 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))
  1241.  
  1242. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
  1243. 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))
  1244. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
  1245. 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))
  1246. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1247. 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))
  1248. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1249. 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))
  1250. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1251. 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))
  1252.  
  1253.  
  1254. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
  1255. 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))
  1256. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
  1257. 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))
  1258.  
  1259. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1260. 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))
  1261. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1262. 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))
  1263. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1264. 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))
  1265. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1266. 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))
  1267.  
  1268. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
  1269. 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))
  1270. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
  1271. 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))
  1272. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1273. 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))
  1274. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1275. 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))
  1276. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Really red", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1277. 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))
  1278.  
  1279. for _, c in pairs(Weapon:GetChildren()) do
  1280. if c.ClassName == "Part" then
  1281. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1282. end
  1283. end
  1284.  
  1285. Weapon.Parent = Character
  1286.  
  1287. Humanoid.Died:connect(function()
  1288. ATTACK = true
  1289. end)
  1290.  
  1291. 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")
  1292. 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")
  1293. 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")
  1294. 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")
  1295.  
  1296. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Death's Agreement", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  1297. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Grab Time", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  1298. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Max Speed", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
  1299. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Green's Ultimate Punch", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4")
  1300.  
  1301. --//=================================\\
  1302. --|| DAMAGE FUNCTIONS
  1303. --\\=================================//
  1304.  
  1305. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1306. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1307. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1308. local BODYGYRO = IT("BodyGyro", STATPART)
  1309. local BODYPOSITION = IT("BodyPosition", STATPART)
  1310. BODYPOSITION.P = 2000
  1311. BODYPOSITION.D = 100
  1312. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1313. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1314. game:GetService("Debris"):AddItem(STATPART ,5)
  1315. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1316. BILLBOARDGUI.Adornee = STATPART
  1317. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1318. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1319. BILLBOARDGUI.AlwaysOnTop = false
  1320. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1321. TEXTLABEL.BackgroundTransparency = 1
  1322. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1323. TEXTLABEL.Text = TEXT
  1324. TEXTLABEL.Font = "SciFi"
  1325. TEXTLABEL.FontSize="Size42"
  1326. TEXTLABEL.TextColor3 = COLOR
  1327. TEXTLABEL.TextStrokeTransparency = 1
  1328. TEXTLABEL.TextScaled = true
  1329. TEXTLABEL.TextWrapped = true
  1330. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1331. if LABELTYPE == "Normal" then
  1332. for i = 1, 30 do
  1333. Swait()
  1334. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  1335. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1336. end
  1337. elseif LABELTYPE == "Debuff" then
  1338. for i = 1, 30 do
  1339. Swait()
  1340. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  1341. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1342. end
  1343. elseif LABELTYPE == "Shock" then
  1344. local ORIGIN = STATPART.Position
  1345. for i = 1, 30 do
  1346. Swait()
  1347. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  1348. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1349. end
  1350. end
  1351. THEPART.Parent = nil
  1352. end),STATPART, BODYPOSITION, TEXTLABEL)
  1353. end
  1354.  
  1355. --//=================================\\
  1356. --|| DAMAGING
  1357. --\\=================================//
  1358.  
  1359. function Freeze(position, range)
  1360. for i, v in ipairs(workspace:GetChildren()) do
  1361. local body = v:GetChildren()
  1362. for part = 1, #body do
  1363. 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
  1364. v:BreakJoints()
  1365. body[part].Material = "Ice"
  1366. body[part].BrickColor = BRICKC("Medium blue")
  1367. body[part].Anchored = true
  1368. end
  1369. end
  1370. end
  1371. end
  1372. function Petrify(Foe)
  1373. local STONEMODEL = IT("Model", Effects)
  1374. local CHILDREN = Foe:GetDescendants()
  1375. for index, CHILD in pairs(CHILDREN) do
  1376. if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then
  1377. CHILD.Parent = STONEMODEL
  1378. CHILD.Material = "Slate"
  1379. CHILD.Color = C3(0 , 0, 0)
  1380. MagicSphere(VT(0,0,0),45,CHILD.CFrame,C3(1,0,0),VT(0.2,0.2,0.2))
  1381. if CHILD:FindFirstChildOfClass("SpecialMesh") then
  1382. local mesh = CHILD:FindFirstChildOfClass("SpecialMesh")
  1383. mesh.TextureId = ""
  1384. end
  1385. if CHILD:FindFirstChildOfClass("Decal") then
  1386. local mesh = CHILD:FindFirstChildOfClass("Decal")
  1387. mesh:remove()
  1388. end
  1389. if CHILD.ClassName == "MeshPart" then
  1390. CHILD.TextureID = ""
  1391. end
  1392. if CHILD.ClassName == "UnionOperation" then
  1393. CHILD.UsePartColor = true
  1394. end
  1395. CHILD.CanCollide = true
  1396. end
  1397. end
  1398. Debris:AddItem(STONEMODEL, 5)
  1399. end
  1400. function ApplyAoE(POSITION,RANGE,BRUTAL,ICE)
  1401. local CHILDREN = workspace:GetDescendants()
  1402. for index, CHILD in pairs(CHILDREN) do
  1403. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1404. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1405. if HUM then
  1406. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1407. if TORSO then
  1408. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1409. if BRUTAL == true then
  1410. Petrify(CHILD)
  1411. end
  1412. end
  1413. end
  1414. end
  1415. end
  1416. end
  1417. end
  1418.  
  1419. function killnearest(position,range,maxstrength,direction)
  1420. for i,v in ipairs(workspace:GetChildren()) do
  1421. local body = v:GetChildren()
  1422. for part = 1, #body do
  1423. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1424. if(body[part].Position - position).Magnitude < range then
  1425. if v.ClassName == "Model" then
  1426. --v:BreakJoints()
  1427. end
  1428. local POS = position
  1429. coroutine.resume(coroutine.create(function()
  1430. body[part].Anchored = true
  1431. body[part].Parent = Effects
  1432. body[part].CanCollide = true
  1433. local SIZE = body[part].Size
  1434. body[part].Material = "Neon"
  1435. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1436. for i = 1, 75 do
  1437. Swait()
  1438. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1439. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1440. end
  1441. coroutine.resume(coroutine.create(function()
  1442. while true do
  1443. Swait()
  1444. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1445. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1446. end
  1447. end))
  1448. body[part].Anchored = false
  1449. body[part].Velocity = direction.lookVector*maxstrength
  1450. end))
  1451. end
  1452. end
  1453. end
  1454. if v.ClassName == "Part" then
  1455. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1456. local POS = position
  1457. coroutine.resume(coroutine.create(function()
  1458. v.Anchored = true
  1459. v.Parent = Effects
  1460. local SIZE = v.Size
  1461. v.Material = "Neon"
  1462. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1463. for i = 1, 75 do
  1464. Swait()
  1465. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1466. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1467. end
  1468. coroutine.resume(coroutine.create(function()
  1469. while true do
  1470. Swait()
  1471. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1472. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1473. end
  1474. end))
  1475. v.Anchored = false
  1476. v.Velocity = direction.lookVector*maxstrength
  1477. end))
  1478. end
  1479. end
  1480. end
  1481. end
  1482.  
  1483. --//=================================\\
  1484. --|| ATTACK FUNCTIONS AND STUFF
  1485. --\\=================================//
  1486.  
  1487. function AttackTemplate()
  1488. ATTACK = true
  1489. Rooted = false
  1490. for i=0, 1, 0.1 / Animation_Speed do
  1491. Swait()
  1492. 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)
  1493. 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)
  1494. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1495. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1496. 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)
  1497. 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)
  1498. end
  1499. ATTACK = false
  1500. Rooted = false
  1501. end
  1502.  
  1503. function DeathAgreement()
  1504. ATTACK = true
  1505. Rooted = false
  1506. local SPEED = Speed
  1507. Speed = 10
  1508. CreateSound("357202141", RightArm, 10, 1.1)
  1509. for i=0, 0, 0.1 / Animation_Speed do
  1510. Swait()
  1511. turnto(Mouse.Hit.p)
  1512. 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))
  1513. 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))
  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(-85)), 0.15 / Animation_Speed)
  1515. 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)
  1516. 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)
  1517. 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)
  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)), 0.15 / 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)), 0.15 / Animation_Speed)
  1520. end
  1521. for i=0, 0.15, 0.1 / Animation_Speed do
  1522. Swait()
  1523. turnto(Mouse.Hit.p)
  1524. 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)
  1525. 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)
  1526. 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)
  1527. 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)
  1528. 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)
  1529. 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)
  1530. end
  1531. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Really red", "Punch", VT(50,50,50),false)
  1532. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1533. PART.Shape = "Ball"
  1534. local bv = Instance.new("BodyVelocity")
  1535. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1536. bv.velocity = RootPart.CFrame.lookVector*600
  1537. bv.Parent = PART
  1538. bv.Name = "PROJECTILEVELOCITY"
  1539. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really red",VT(2.5,0.2,2.5))
  1540. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really red",VT(3,0.2,3))
  1541. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really red",VT(2,0.6,2))
  1542. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really red",VT(2.2,0.6,2.2))
  1543. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1544. coroutine.resume(coroutine.create(function()
  1545. for i = 1, 10 do
  1546. Swait()
  1547. PART.Transparency = PART.Transparency + 0.2/10
  1548. PART.Size = PART.Size + VT(5,5,5)
  1549. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  1550. end
  1551. PART:Destroy()
  1552. end))
  1553. for i=0, 1, 0.1 / Animation_Speed do
  1554. Swait()
  1555. 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)
  1556. 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)
  1557. 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)
  1558. 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)
  1559. 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)
  1560. 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)
  1561. end
  1562. Speed = SPEED
  1563. ATTACK = false
  1564. Rooted = false
  1565. end
  1566.  
  1567. function GrabTime()
  1568. ATTACK = true
  1569. Rooted = false
  1570. local HASGRABBED = false
  1571. local WELD = nil
  1572. local TORS = nil
  1573. local hitting = FIST.Touched:connect(function(hit)
  1574. if hit.Parent:FindFirstChild("Humanoid") then
  1575. if hit.Parent.Humanoid.Health ~= 0 then
  1576. UNANCHOR = false
  1577. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1578. TORS.Anchored = true
  1579. TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  1580. WELD = weldBetween(RightArm,TORS)
  1581. HASGRABBED = true
  1582. Rooted = true
  1583. end
  1584. end
  1585. end)
  1586. for i=0, 1, 0.1 / Animation_Speed do
  1587. Swait()
  1588. if HASGRABBED == true then
  1589. break
  1590. end
  1591. 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)
  1592. 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)
  1593. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1594. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1595. 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)
  1596. 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)
  1597. end
  1598. hitting:disconnect()
  1599. if HASGRABBED == true then
  1600. TORS.Anchored = false
  1601. RootPart.Anchored = true
  1602. for i=0, 2, 0.1 / Animation_Speed do
  1603. Swait()
  1604. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1605. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1606. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1607. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1608. 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)
  1609. 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)
  1610. end
  1611. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5))
  1612. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6))
  1613. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0))
  1614. SOUNDPART.CFrame = RootPart.CFrame
  1615. Debris:AddItem(SOUNDPART,5)
  1616. CreateSound("357202073", SOUNDPART, 2, 1)
  1617. for i = 1, 15 do
  1618. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15)
  1619. end
  1620. for i=0, 2, 0.1 / Animation_Speed do
  1621. Swait()
  1622. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1623. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1624. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1625. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1626. 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)
  1627. 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)
  1628. end
  1629. for i=0, 0.25, 0.1 / Animation_Speed do
  1630. Swait()
  1631. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
  1632. 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)
  1633. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1634. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1635. 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)
  1636. 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)
  1637. end
  1638. if HITFLOOR ~= nil then
  1639. CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85)
  1640. end
  1641. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1642. WELD:remove()
  1643. for i = 1, 25 do
  1644. Swait()
  1645. killnearest(RootPart.Position,45,100,Torso.CFrame)
  1646. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3))
  1647. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Really red",VT(1,0.4,1))
  1648. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Really red",VT(2.3,0.3,2.3))
  1649. 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)
  1650. 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)
  1651. end
  1652. end
  1653. UNANCHOR = true
  1654. ATTACK = false
  1655. Rooted = false
  1656. end
  1657.  
  1658. function MaxSpeed()
  1659. local ORIGIN = RootPart.Position
  1660. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1661. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1662. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0))
  1663. SOUNDPART.CFrame = RootPart.CFrame
  1664. Debris:AddItem(SOUNDPART,5)
  1665. CreateSound("357202032", SOUNDPART, 2, 1)
  1666. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
  1667. Swait()
  1668. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1669. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1670. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0))
  1671. SOUNDPART.CFrame = RootPart.CFrame
  1672. Debris:AddItem(SOUNDPART,5)
  1673. CreateSound("1295446488", SOUNDPART, 2, 1)
  1674. if MRANDOM(1,8) == 1 then
  1675. ATTACK = true
  1676. Rooted = true
  1677. local FRUITSTABLE = {
  1678. {MeshId = "16190555", TextureId = "16190577", Color = "Really red"},
  1679. {MeshId = "119574562", TextureId = "64374853", Color = "New Yeller"},
  1680. {MeshId = "24394186", TextureId = "24394178", Color = "Brown"}
  1681. }
  1682. local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
  1683. local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
  1684. CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
  1685. FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0)
  1686. weldBetween(RightArm,FRUITMODEL)
  1687. for i=0, 4, 0.1 / Animation_Speed do
  1688. Swait()
  1689. 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)
  1690. 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)
  1691. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1692. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1693. 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)
  1694. 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)
  1695. end
  1696. CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
  1697. FRUITMODEL:remove()
  1698. for i = 1, 15 do
  1699. 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)
  1700. end
  1701. for i=0, 0.5, 0.1 / Animation_Speed do
  1702. Swait()
  1703. 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)
  1704. 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)
  1705. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1706. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1707. 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)
  1708. 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)
  1709. end
  1710. ATTACK = false
  1711. Rooted = false
  1712. end
  1713. end
  1714.  
  1715. function GreenUltimate()
  1716. ATTACK = true
  1717. Rooted = true
  1718. CreateSound("358080470", RightArm, 10, 0.8)
  1719. for i=0, 8, 0.1 / Animation_Speed do
  1720. Swait()
  1721. turnto(Mouse.Hit.p)
  1722. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Really red",VT(0.2,0,0.2))
  1723. 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)
  1724. 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)
  1725. 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)
  1726. 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))
  1727. 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))
  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(-85)), 0.15 / Animation_Speed)
  1729. 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)
  1730. 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)
  1731. 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)
  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)), 0.15 / 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)), 0.15 / Animation_Speed)
  1734. end
  1735. for i=0, 0.15, 0.1 / Animation_Speed do
  1736. Swait()
  1737. turnto(Mouse.Hit.p)
  1738. 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)
  1739. 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)
  1740. 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)
  1741. 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)
  1742. 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)
  1743. 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)
  1744. end
  1745. MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Really red",VT(-0.04,-0.04,-0.04))
  1746. MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035))
  1747. coroutine.resume(coroutine.create(function()
  1748. Swait(100)
  1749. for i = 1, 5 do
  1750. 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))))
  1751. 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))
  1752. 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))
  1753. 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))
  1754. 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))
  1755. end
  1756. killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame)
  1757. for i = 1, 5 do
  1758. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1759. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1760. end
  1761. coroutine.resume(coroutine.create(function()
  1762. for i = 1, 50 do
  1763. Swait()
  1764. for i = 1, 1 do
  1765. 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)
  1766. end
  1767. for i = 1, 2 do
  1768. 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)
  1769. end
  1770. end
  1771. end))
  1772. end))
  1773. for i=0, 4, 0.1 / Animation_Speed do
  1774. Swait()
  1775. 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)
  1776. 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)
  1777. 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)
  1778. 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)
  1779. 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)
  1780. 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)
  1781. end
  1782. ATTACK = false
  1783. Rooted = false
  1784. end
  1785.  
  1786. function Taunt()
  1787. ATTACK = true
  1788. RELAX2 = true
  1789. Rooted = true
  1790. repeat
  1791. Swait()
  1792. 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)
  1793. 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)
  1794. 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)
  1795. 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)
  1796. 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)
  1797. 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)
  1798. WACKYEFFECT({
  1799. EffectType = "None",
  1800. Size = VT(4, 1, 4),
  1801. Size2 = VT(4 + MRANDOM(0, 8), 3, 4 + MRANDOM(0, 8)),
  1802. Transparency = 0.9,
  1803. Transparency2 = 1,
  1804. CFrame = CF(RootPart.Position-VT(0,3.2,0)) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1805. MoveToPos = nil,
  1806. RotationX = 0,
  1807. RotationY = 5,
  1808. RotationZ = 0,
  1809. Material = "Neon",
  1810. Color = C3(1, 1, 1),
  1811. SoundID = nil,
  1812. SoundPitch = nil,
  1813. SoundVolume = nil
  1814. })
  1815. until RELAX2 == false
  1816. ATTACK = false
  1817. Rooted = false
  1818. end
  1819.  
  1820. --//=================================\\
  1821. --|| ASSIGN THINGS TO KEYS
  1822. --\\=================================//
  1823.  
  1824. function MouseDown(Mouse)
  1825. if ATTACK == false then
  1826. end
  1827. end
  1828.  
  1829. function MouseUp(Mouse)
  1830. HOLD = false
  1831. end
  1832.  
  1833. function KeyDown(Key)
  1834. KEYHOLD = true
  1835. if Key == "z" and ATTACK == false then
  1836. DeathAgreement()
  1837. end
  1838.  
  1839. if Key == "b" and ATTACK == false then
  1840. GrabTime()
  1841. end
  1842.  
  1843. if Key == "c" and ATTACK == false then
  1844. MaxSpeed()
  1845. end
  1846.  
  1847. if Key == "t" and ATTACK == false then
  1848. Taunt()
  1849. end
  1850.  
  1851. if Key == "x" and ATTACK == false then
  1852. GreenUltimate()
  1853. end
  1854.  
  1855. if Key == "p" and ATTACK == false then
  1856. if Speed == 16 then
  1857. Speed = 150
  1858. elseif Speed == 150 then
  1859. Speed = 16
  1860. end
  1861. end
  1862. end
  1863.  
  1864. function KeyUp(Key)
  1865. KEYHOLD = false
  1866. end
  1867.  
  1868. Mouse.Button1Down:connect(function(NEWKEY)
  1869. MouseDown(NEWKEY)
  1870. end)
  1871. Mouse.Button1Up:connect(function(NEWKEY)
  1872. MouseUp(NEWKEY)
  1873. end)
  1874. Mouse.KeyDown:connect(function(NEWKEY)
  1875. KeyDown(NEWKEY)
  1876. end)
  1877. Mouse.KeyUp:connect(function(NEWKEY)
  1878. KeyUp(NEWKEY)
  1879. end)
  1880.  
  1881. --//=================================\\
  1882. --\\=================================//
  1883.  
  1884.  
  1885. function unanchor()
  1886. if UNANCHOR == true then
  1887. g = Character:GetChildren()
  1888. for i = 1, #g do
  1889. if g[i].ClassName == "Part" then
  1890. g[i].Anchored = false
  1891. end
  1892. end
  1893. end
  1894. end
  1895.  
  1896.  
  1897. --//=================================\\
  1898. --|| WRAP THE WHOLE SCRIPT UP
  1899. --\\=================================//
  1900.  
  1901. Humanoid.Changed:connect(function(Jump)
  1902. if Jump == "Jump" and (Disable_Jump == true) then
  1903. Humanoid.Jump = false
  1904. end
  1905. end)
  1906.  
  1907. while true do
  1908. Swait()
  1909. ANIMATE.Parent = nil
  1910. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1911. IDLEANIMATION:Play()
  1912. SINE = SINE + CHANGE
  1913. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1914. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1915. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1916. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1917. local WALKSPEEDVALUE = 0
  1918. if Speed < 35 then
  1919. WALKSPEEDVALUE = 6
  1920. else
  1921. WALKSPEEDVALUE = 3
  1922. end
  1923. if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
  1924. 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)
  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(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1926. if Speed < 35 then
  1927. 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)
  1928. 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)
  1929. else
  1930. 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)
  1931. 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)
  1932. end
  1933. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
  1934. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1935. 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)
  1936. 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)
  1937. 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)
  1938. end
  1939. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1940. ANIM = "Jump"
  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 * Player_Size, 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(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1945. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1946. 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)
  1947. 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)
  1948. end
  1949. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1950. ANIM = "Fall"
  1951. if ATTACK == false then
  1952. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1953. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1954. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1955. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1956. 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)
  1957. 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)
  1958. end
  1959. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1960. ANIM = "Idle"
  1961. if ATTACK == false then
  1962. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1963. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  1964. if MRANDOM(1,7) == 1 then
  1965. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1966. end
  1967. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1968. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-30 - 4 * COS(SINE / 12)), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1969. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1970. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1971. end
  1972. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
  1973. ANIM = "Walk"
  1974. WALK = WALK + 1 / Animation_Speed
  1975. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1976. WALK = 0
  1977. if WALKINGANIM == true then
  1978. WALKINGANIM = false
  1979. elseif WALKINGANIM == false then
  1980. WALKINGANIM = true
  1981. end
  1982. end
  1983. --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)
  1984. --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)
  1985. if ATTACK == false then
  1986. if Speed < 35 then
  1987. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1988. 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)
  1989. 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)
  1990. 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)
  1991. 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)
  1992. 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)
  1993. else
  1994. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1995. 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)
  1996. 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)
  1997. 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)
  1998. 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)
  1999. 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)
  2000. end
  2001. end
  2002. end
  2003. unanchor()
  2004. Humanoid.MaxHealth = "inf"
  2005. Humanoid.Health = "inf"
  2006. if Rooted == false then
  2007. Disable_Jump = false
  2008. Humanoid.WalkSpeed = Speed
  2009. elseif Rooted == true then
  2010. Disable_Jump = true
  2011. Humanoid.WalkSpeed = 0
  2012. end
  2013. local MATHS = {"0","1"}
  2014. 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)]
  2015. Humanoid.PlatformStand = false
  2016. end
  2017.  
  2018. --//=================================\\
  2019. --\\=================================//
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025. --//====================================================\\--
  2026. --|| END OF SCRIPT
  2027. --\\====================================================//--
RAW Paste Data