Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 113.48 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("This is the Anti-Lag banisher.Edited by redflame1022")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. -----------------------
  145. Player = owner
  146. Character = Player.Character
  147. local txt = Instance.new("BillboardGui", Character)
  148. txt.Adornee = Character.Head
  149. txt.Name = "_status"
  150. txt.Size = UDim2.new(2, 0, 1.2, 0)
  151. txt.StudsOffset = Vector3.new(-9, 8, 0)
  152. local text = Instance.new("TextLabel", txt)
  153. text.Size = UDim2.new(10, 0, 7, 0)
  154. text.FontSize = "Size24"
  155. text.TextScaled = true
  156. text.TextTransparency = 1
  157. text.BackgroundTransparency = 1
  158. text.TextTransparency = 1
  159. text.TextStrokeTransparency = 0
  160. text.Font = "Antique"
  161. text.TextStrokeColor3 = Color3.new(0, 245, 253)
  162. text.Text = "Anti-Lag"
  163. script.Name = "Banisher Gun V3 / 1"
  164. --//====================================================\\--
  165. --|| CREATED BY SHACKLUSTER
  166. --\\====================================================//--
  167. local Player_Size = 1
  168. script:ClearAllChildren()
  169. wait(0.2)
  170.  
  171. Player = owner
  172. PlayerGui = Player.PlayerGui
  173. Cam = workspace.CurrentCamera
  174. Backpack = Player.Backpack
  175. Character = Player.Character
  176. Humanoid = Character.Humanoid
  177. Mouse = Player:GetMouse()
  178. RootPart = Character["HumanoidRootPart"]
  179. Torso = Character["Torso"]
  180. Head = Character["Head"]
  181. RightArm = Character["Right Arm"]
  182. LeftArm = Character["Left Arm"]
  183. RightLeg = Character["Right Leg"]
  184. LeftLeg = Character["Left Leg"]
  185. RootJoint = RootPart["RootJoint"]
  186. Neck = Torso["Neck"]
  187. RightShoulder = Torso["Right Shoulder"]
  188. LeftShoulder = Torso["Left Shoulder"]
  189. RightHip = Torso["Right Hip"]
  190. LeftHip = Torso["Left Hip"]
  191. local TIME = 0
  192. local sick = Instance.new("Sound",Torso)
  193.  
  194. for i,v in pairs(Character:GetChildren()) do
  195. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "CharacterMesh" then
  196. v:Destroy()
  197. end
  198. end
  199.  
  200. local Shirt = Instance.new("Shirt",Character)
  201. local Pants = Instance.new("Pants",Character)
  202. Shirt.ShirtTemplate = "rbxassetid://811066647"
  203. Pants.PantsTemplate = "rbxassetid://1088567690"
  204.  
  205. IT = Instance.new
  206. CF = CFrame.new
  207. VT = Vector3.new
  208. RAD = math.rad
  209. C3 = Color3.new
  210. UD2 = UDim2.new
  211. BRICKC = BrickColor.new
  212. ANGLES = CFrame.Angles
  213. EULER = CFrame.fromEulerAnglesXYZ
  214. COS = math.cos
  215. ACOS = math.acos
  216. SIN = math.sin
  217. ASIN = math.asin
  218. ABS = math.abs
  219. MRANDOM = math.random
  220. FLOOR = math.floor
  221. --//=================================\\
  222. --|| USEFUL VALUES
  223. --\\=================================//
  224.  
  225. Animation_Speed = 3
  226. local FORCERESET = false
  227. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  228. local Speed = 16
  229. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  230. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  231. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  232. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  233. local DAMAGEMULTIPLIER = 1
  234. local ANIM = "Idle"
  235. local ATTACK = false
  236. local EQUIPPED = false
  237. local HOLD = false
  238. local COMBO = 1
  239. local Rooted = false
  240. local SINE = 0
  241. local KEYHOLD = false
  242. local CHANGE = 2 / Animation_Speed
  243. local WALKINGANIM = false
  244. local VALUE1 = false
  245. local VALUE2 = false
  246. local ROBLOXIDLEANIMATION = IT("Animation")
  247. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  248. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  249. --ROBLOXIDLEANIMATION.Parent = Humanoid
  250. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  251. WEAPONGUI.Name = "BanishV3Gui"
  252. local Weapon = IT("Model")
  253. Weapon.Name = "Adds"
  254. local Effects = IT("Folder", Weapon)
  255. Effects.Name = "Effects"
  256. local ANIMATOR = Humanoid.Animator
  257. local ANIMATE = Character:FindFirstChild("Animate")
  258. local UNANCHOR = true
  259. local TOBANISH = {}
  260. script.Parent = PlayerGui
  261.  
  262. --//=================================\\
  263. --\\=================================//
  264.  
  265.  
  266. --//=================================\\
  267. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  268. --\\=================================//
  269.  
  270. ArtificialHB = Instance.new("BindableEvent", script)
  271. ArtificialHB.Name = "ArtificialHB"
  272.  
  273. script:WaitForChild("ArtificialHB")
  274.  
  275. frame = Frame_Speed
  276. tf = 0
  277. allowframeloss = false
  278. tossremainder = false
  279. lastframe = tick()
  280. script.ArtificialHB:Fire()
  281.  
  282. game:GetService("RunService").Heartbeat:connect(function(s, p)
  283. tf = tf + s
  284. if tf >= frame then
  285. if allowframeloss then
  286. script.ArtificialHB:Fire()
  287. lastframe = tick()
  288. else
  289. for i = 1, math.floor(tf / frame) do
  290. script.ArtificialHB:Fire()
  291. end
  292. lastframe = tick()
  293. end
  294. if tossremainder then
  295. tf = 0
  296. else
  297. tf = tf - frame * math.floor(tf / frame)
  298. end
  299. end
  300. end)
  301.  
  302. --//=================================\\
  303. --\\=================================//
  304.  
  305. --//=================================\\
  306. --|| SOME FUNCTIONS
  307. --\\=================================//
  308.  
  309. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  310. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  311. end
  312.  
  313. function PositiveAngle(NUMBER)
  314. if NUMBER >= 0 then
  315. NUMBER = 0
  316. end
  317. return NUMBER
  318. end
  319.  
  320. function NegativeAngle(NUMBER)
  321. if NUMBER <= 0 then
  322. NUMBER = 0
  323. end
  324. return NUMBER
  325. end
  326.  
  327. function Swait(NUMBER)
  328. if NUMBER == 0 or NUMBER == nil then
  329. ArtificialHB.Event:wait()
  330. else
  331. for i = 1, NUMBER do
  332. ArtificialHB.Event:wait()
  333. end
  334. end
  335. end
  336.  
  337. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  338. local NEWMESH = IT(MESH)
  339. if MESH == "SpecialMesh" then
  340. NEWMESH.MeshType = MESHTYPE
  341. if MESHID ~= "nil" and MESHID ~= "" then
  342. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  343. end
  344. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  345. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  346. end
  347. end
  348. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  349. NEWMESH.Scale = SCALE
  350. NEWMESH.Parent = PARENT
  351. return NEWMESH
  352. end
  353.  
  354. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  355. local NEWPART = IT("Part")
  356. NEWPART.formFactor = FORMFACTOR
  357. NEWPART.Reflectance = REFLECTANCE
  358. NEWPART.Transparency = TRANSPARENCY
  359. NEWPART.CanCollide = false
  360. NEWPART.Locked = true
  361. NEWPART.Anchored = true
  362. if ANCHOR == false then
  363. NEWPART.Anchored = false
  364. end
  365. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  366. NEWPART.Name = NAME
  367. NEWPART.Size = SIZE
  368. NEWPART.Position = Torso.Position
  369. NEWPART.Material = MATERIAL
  370. NEWPART:BreakJoints()
  371. NEWPART.Parent = PARENT
  372. return NEWPART
  373. end
  374.  
  375. local function weldBetween(a, b)
  376. local weldd = Instance.new("ManualWeld")
  377. weldd.Part0 = a
  378. weldd.Part1 = b
  379. weldd.C0 = CFrame.new()
  380. weldd.C1 = b.CFrame:inverse() * a.CFrame
  381. weldd.Parent = a
  382. return weldd
  383. end
  384.  
  385.  
  386. function QuaternionFromCFrame(cf)
  387. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  388. local trace = m00 + m11 + m22
  389. if trace > 0 then
  390. local s = math.sqrt(1 + trace)
  391. local recip = 0.5 / s
  392. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  393. else
  394. local i = 0
  395. if m11 > m00 then
  396. i = 1
  397. end
  398. if m22 > (i == 0 and m00 or m11) then
  399. i = 2
  400. end
  401. if i == 0 then
  402. local s = math.sqrt(m00 - m11 - m22 + 1)
  403. local recip = 0.5 / s
  404. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  405. elseif i == 1 then
  406. local s = math.sqrt(m11 - m22 - m00 + 1)
  407. local recip = 0.5 / s
  408. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  409. elseif i == 2 then
  410. local s = math.sqrt(m22 - m00 - m11 + 1)
  411. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  412. end
  413. end
  414. end
  415.  
  416. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  417. local xs, ys, zs = x + x, y + y, z + z
  418. local wx, wy, wz = w * xs, w * ys, w * zs
  419. local xx = x * xs
  420. local xy = x * ys
  421. local xz = x * zs
  422. local yy = y * ys
  423. local yz = y * zs
  424. local zz = z * zs
  425. 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))
  426. end
  427.  
  428. function QuaternionSlerp(a, b, t)
  429. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  430. local startInterp, finishInterp;
  431. if cosTheta >= 0.0001 then
  432. if (1 - cosTheta) > 0.0001 then
  433. local theta = ACOS(cosTheta)
  434. local invSinTheta = 1 / SIN(theta)
  435. startInterp = SIN((1 - t) * theta) * invSinTheta
  436. finishInterp = SIN(t * theta) * invSinTheta
  437. else
  438. startInterp = 1 - t
  439. finishInterp = t
  440. end
  441. else
  442. if (1 + cosTheta) > 0.0001 then
  443. local theta = ACOS(-cosTheta)
  444. local invSinTheta = 1 / SIN(theta)
  445. startInterp = SIN((t - 1) * theta) * invSinTheta
  446. finishInterp = SIN(t * theta) * invSinTheta
  447. else
  448. startInterp = t - 1
  449. finishInterp = t
  450. end
  451. end
  452. 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
  453. end
  454.  
  455. function Clerp(a, b, t)
  456. local qa = {QuaternionFromCFrame(a)}
  457. local qb = {QuaternionFromCFrame(b)}
  458. local ax, ay, az = a.x, a.y, a.z
  459. local bx, by, bz = b.x, b.y, b.z
  460. local _t = 1 - t
  461. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  462. end
  463.  
  464. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  465. local frame = IT("Frame")
  466. frame.BackgroundTransparency = TRANSPARENCY
  467. frame.BorderSizePixel = BORDERSIZEPIXEL
  468. frame.Position = POSITION
  469. frame.Size = SIZE
  470. frame.BackgroundColor3 = COLOR
  471. frame.BorderColor3 = BORDERCOLOR
  472. frame.Name = NAME
  473. frame.Parent = PARENT
  474. return frame
  475. end
  476.  
  477. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  478. local label = IT("TextLabel")
  479. label.BackgroundTransparency = 1
  480. label.Size = UD2(1, 0, 1, 0)
  481. label.Position = UD2(0, 0, 0, 0)
  482. label.TextColor3 = TEXTCOLOR
  483. label.TextStrokeTransparency = STROKETRANSPARENCY
  484. label.TextTransparency = TRANSPARENCY
  485. label.FontSize = TEXTFONTSIZE
  486. label.Font = TEXTFONT
  487. label.BorderSizePixel = BORDERSIZEPIXEL
  488. label.TextScaled = false
  489. label.Text = TEXT
  490. label.Name = NAME
  491. label.Parent = PARENT
  492. return label
  493. end
  494.  
  495. function NoOutlines(PART)
  496. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  497. end
  498.  
  499. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  500. local NEWWELD = IT(TYPE)
  501. NEWWELD.Part0 = PART0
  502. NEWWELD.Part1 = PART1
  503. NEWWELD.C0 = C0
  504. NEWWELD.C1 = C1
  505. NEWWELD.Parent = PARENT
  506. return NEWWELD
  507. end
  508.  
  509. local S = IT("Sound")
  510. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  511. local NEWSOUND
  512. coroutine.resume(coroutine.create(function()
  513. NEWSOUND = S:Clone()
  514. NEWSOUND.Parent = PARENT
  515. NEWSOUND.EmitterSize = VOLUME * 3
  516. NEWSOUND.Volume = VOLUME
  517. NEWSOUND.Pitch = PITCH
  518. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  519. NEWSOUND:play()
  520. if DOESLOOP == true then
  521. NEWSOUND.Looped = true
  522. else
  523. repeat
  524. wait(1)
  525. until NEWSOUND.Playing == false
  526. NEWSOUND:remove()
  527. end
  528. end))
  529. return NEWSOUND
  530. end
  531.  
  532. function CFrameFromTopBack(at, top, back)
  533. local right = top:Cross(back)
  534. 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)
  535. end
  536.  
  537. local HATWELD = nil
  538. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  539. PLAYMAINANIM = false
  540. if WhichPose == "Cast1" then
  541. for i=0, Time, 0.1 / Animation_Speed do
  542. Swait()
  543. if Magic == true then
  544. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  545. end
  546. if Gyro ~= nil and Gyro ~= false then
  547. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  548. end
  549. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  550. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  551. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  552. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  553. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  554. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  555. end
  556. elseif WhichPose == "Cast2" then
  557. for i=0, Time, 0.1 / Animation_Speed do
  558. Swait()
  559. if Magic == true then
  560. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  561. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  562. end
  563. if Gyro ~= nil and Gyro ~= false then
  564. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  565. end
  566. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  567. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  568. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  569. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  570. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  571. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  572. end
  573. elseif WhichPose == "RightArmUp" then
  574. for i=0, Time, 0.1 / Animation_Speed do
  575. Swait()
  576. if Magic == true then
  577. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  578. end
  579. if Gyro ~= nil and Gyro ~= false then
  580. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  581. end
  582. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  583. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  584. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  585. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  586. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  587. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  588. end
  589. elseif WhichPose == "Taunt" then
  590. for i=0, Time, 0.1 / Animation_Speed do
  591. Swait()
  592. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  593. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  594. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  595. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  596. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  597. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  598. end
  599. HATWELD.Part0 = RightArm
  600. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  601. CreateSound(137473066,Torso,10,1,false)
  602. for i=0, Time*2, 0.1 / Animation_Speed do
  603. Swait()
  604. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  605. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  606. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  607. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  608. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  609. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  610. end
  611. for i=0, Time, 0.1 / Animation_Speed do
  612. Swait()
  613. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  614. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  615. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  616. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  617. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  618. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  619. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  620. end
  621. HATWELD.Part0 = Head
  622. HATWELD.C0 = CF(0,0.35,0)
  623. elseif WhichPose == "Prepare key" then
  624. for i=0, Time, 0.1 / Animation_Speed do
  625. Swait()
  626. if Gyro ~= nil and Gyro ~= false then
  627. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  628. end
  629. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  630. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  631. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  632. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  633. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  634. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  635. end
  636. elseif WhichPose == "Turn key" then
  637. for i=0, Time, 0.1 / Animation_Speed do
  638. Swait()
  639. if Gyro ~= nil and Gyro ~= false then
  640. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  641. end
  642. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  643. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  644. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  645. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  646. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  647. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  648. end
  649. end
  650. PLAYMAINANIM = true
  651. end
  652.  
  653. --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})
  654. function WACKYEFFECT(Table)
  655. local TYPE = (Table.EffectType or "Sphere")
  656. local SIZE = (Table.Size or VT(1,1,1))
  657. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  658. local TRANSPARENCY = (Table.Transparency or 0)
  659. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  660. local CFRAME = (Table.CFrame or Torso.CFrame)
  661. local MOVEDIRECTION = (Table.MoveToPos or nil)
  662. local ROTATION1 = (Table.RotationX or 0)
  663. local ROTATION2 = (Table.RotationY or 0)
  664. local ROTATION3 = (Table.RotationZ or 0)
  665. local MATERIAL = (Table.Material or "Neon")
  666. local COLOR = (Table.Color or C3(1,1,1))
  667. local TIME = (Table.Time or 45)
  668. local SOUNDID = (Table.SoundID or nil)
  669. local SOUNDPITCH = (Table.SoundPitch or nil)
  670. local SOUNDVOLUME = (Table.SoundVolume or nil)
  671. coroutine.resume(coroutine.create(function()
  672. local PLAYSSOUND = false
  673. local SOUND = nil
  674. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  675. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  676. PLAYSSOUND = true
  677. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  678. end
  679. EFFECT.Color = COLOR
  680. local MSH = nil
  681. if TYPE == "Sphere" then
  682. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  683. elseif TYPE == "Block" then
  684. MSH = IT("BlockMesh",EFFECT)
  685. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  686. elseif TYPE == "Wave" then
  687. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  688. elseif TYPE == "Ring" then
  689. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  690. elseif TYPE == "Slash" then
  691. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  692. elseif TYPE == "Round Slash" then
  693. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  694. elseif TYPE == "Swirl" then
  695. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  696. elseif TYPE == "Skull" then
  697. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  698. elseif TYPE == "Crystal" then
  699. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  700. end
  701. if MSH ~= nil then
  702. local MOVESPEED = nil
  703. if MOVEDIRECTION ~= nil then
  704. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  705. end
  706. local GROWTH = SIZE - ENDSIZE
  707. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  708. if TYPE == "Block" then
  709. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  710. else
  711. EFFECT.CFrame = CFRAME
  712. end
  713. for LOOP = 1, TIME+1 do
  714. Swait()
  715. MSH.Scale = MSH.Scale - GROWTH/TIME
  716. if TYPE == "Wave" then
  717. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  718. end
  719. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  720. if TYPE == "Block" then
  721. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  722. else
  723. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  724. end
  725. if MOVEDIRECTION ~= nil then
  726. local ORI = EFFECT.Orientation
  727. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  728. EFFECT.Orientation = ORI
  729. end
  730. end
  731. if PLAYSSOUND == false then
  732. EFFECT:remove()
  733. else
  734. SOUND.Stopped:Connect(function()
  735. EFFECT:remove()
  736. end)
  737. end
  738. else
  739. if PLAYSSOUND == false then
  740. EFFECT:remove()
  741. else
  742. repeat Swait() until SOUND.Playing == false
  743. EFFECT:remove()
  744. end
  745. end
  746. end))
  747. end
  748.  
  749. function MakeForm(PART,TYPE)
  750. if TYPE == "Cyl" then
  751. local MSH = IT("CylinderMesh",PART)
  752. elseif TYPE == "Ball" then
  753. local MSH = IT("SpecialMesh",PART)
  754. MSH.MeshType = "Sphere"
  755. elseif TYPE == "Wedge" then
  756. local MSH = IT("SpecialMesh",PART)
  757. MSH.MeshType = "Wedge"
  758. end
  759. end
  760.  
  761. function SpawnTrail(FROM,TO,BIG)
  762. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Bright yellow", "Trail", VT(0,0,0))
  763. MakeForm(TRAIL,"Cyl")
  764. local DIST = (FROM - TO).Magnitude
  765. if BIG == true then
  766. TRAIL.Size = VT(0.5,DIST,0.5)
  767. else
  768. TRAIL.Size = VT(0.25,DIST,0.25)
  769. end
  770. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  771. coroutine.resume(coroutine.create(function()
  772. for i = 1, 5 do
  773. Swait()
  774. TRAIL.Transparency = TRAIL.Transparency + 0.1
  775. end
  776. TRAIL:remove()
  777. end))
  778. end
  779.  
  780. Debris = game:GetService("Debris")
  781.  
  782. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  783. local DIRECTION = CF(StartPos,EndPos).lookVector
  784. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  785. end
  786.  
  787. function turnto(position)
  788. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  789. end
  790.  
  791. --//=================================\\
  792. --|| WEAPON CREATION
  793. --\\=================================//
  794.  
  795. local Particle = IT("ParticleEmitter",nil)
  796. Particle.Enabled = false
  797. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  798. Particle.LightEmission = 0.5
  799. Particle.Rate = 150
  800. Particle.ZOffset = 0.2
  801. Particle.Rotation = NumberRange.new(-180, 180)
  802. Particle.RotSpeed = NumberRange.new(-180, 180)
  803. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  804. Particle.Color = ColorSequence.new(C3(0,245,253),C3(0,245,253))
  805.  
  806. local HAT = CreatePart(3, Character, "Glass", 0, 0, "Teal", "Tophat", VT(0,245,253),false)
  807. local Hatweld = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT, CF(0,245,253), CF(0,245,253))
  808. CreateMesh("SpecialMesh", HAT, "FileMesh", "97094619", "97094572", VT(1,1,1), VT(0,0,0))
  809. for i = 1, 16 do
  810. local FACE = CreatePart(3, Character, "Neon", 0, 0+(i-1)/16.2, "White", "FaceGradient", VT(1.01,0.65,1.01),false)
  811. FACE.Color = C3(0,0,0)
  812. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  813. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  814. end
  815. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eyeball", VT(0.15,0.15,0.15),false)
  816. MakeForm(EYE,"Ball")
  817. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  818. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eyeball", VT(0.15,0.15,0.15),false)
  819. MakeForm(EYE2,"Ball")
  820. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  821.  
  822. local Particle = IT("ParticleEmitter",nil)
  823. Particle.Enabled = false
  824. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  825. Particle.LightEmission = 5
  826. Particle.Rate = 300
  827. Particle.ZOffset = 0.2
  828. Particle.Rotation = NumberRange.new(-180, 180)
  829. Particle.RotSpeed = NumberRange.new(-180, 180)
  830. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  831. Particle.Color = ColorSequence.new(C3(0,245,253),C3(0,245,253),C3(0,245,253),C3(0,245,253),C3(0,245,253),C3(0,245,253),C3(0,245,253),C3(0,245,253))
  832.  
  833. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  834. function ParticleEmitter(Table)
  835. local PRTCL = Particle:Clone()
  836. local Speed = Table.Speed or 5
  837. local Drag = Table.Drag or 0
  838. local Size1 = Table.Size1 or 1
  839. local Size2 = Table.Size2 or 5
  840. local Lifetime1 = Table.Lifetime1 or 1
  841. local Lifetime2 = Table.Lifetime2 or 1.5
  842. local Parent = Table.Parent or Torso
  843. local Emit = Table.Emit or 100
  844. local Offset = Table.Offset or 360
  845. local Acel = Table.Acel or VT(0,0,0)
  846. local Enabled = Table.Enabled or false
  847. PRTCL.Parent = Parent
  848. PRTCL.Size = NumberSequence.new(Size1,Size2)
  849. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  850. PRTCL.Speed = NumberRange.new(Speed)
  851. PRTCL.VelocitySpread = Offset
  852. PRTCL.Drag = Drag
  853. PRTCL.Acceleration = Acel
  854. if Enabled == false then
  855. PRTCL:Emit(Emit)
  856. Debris:AddItem(PRTCL,Lifetime2)
  857. else
  858. PRTCL.Enabled = true
  859. end
  860. return PRTCL
  861. end
  862.  
  863. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.6,0.2),false)
  864. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  865. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.6,0.2),false)
  866. MakeForm(Part,"Wedge")
  867. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  868. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.3,0.2),false)
  869. MakeForm(Part,"Wedge")
  870. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  871. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.3,0.3),false)
  872. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  873. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.5,0.5),false)
  874. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  875. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.4,0.4,0.4),false)
  876. MakeForm(Part,"Cyl")
  877. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  878. for i = 1, 8 do
  879. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0,0.35,0.41),false)
  880. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  881. end
  882. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0.38,0.41,0.38),false)
  883. MakeForm(Part,"Cyl")
  884. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  885. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.37,0.5,0.37),false)
  886. MakeForm(Part,"Ball")
  887. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  888. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.7,0.4),false)
  889. MakeForm(Part,"Wedge")
  890. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  891. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.4,0.2),false)
  892. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  893. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.35,0.35,0.35),false)
  894. MakeForm(Part,"Cyl")
  895. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  896. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.5,0.1,0.5),false)
  897. MakeForm(Part,"Cyl")
  898. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  899. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.5,0.1,0.45),false)
  900. MakeForm(Part,"Cyl")
  901. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  902. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.5,0.2),false)
  903. MakeForm(Part,"Wedge")
  904. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  905. local LASTPART = Handle
  906. for i = 1, 10 do
  907. if LASTPART == Handle then
  908. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.1,0.2,0),false)
  909. LASTPART = Part
  910. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  911. else
  912. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.1,0.05,0),false)
  913. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  914. LASTPART = Part
  915. end
  916. end
  917.  
  918. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Teal", "Part", VT(0,245,253),false)
  919. MakeForm(Barrel,"Cyl")
  920. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  921. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.25,1,0.25),false)
  922. MakeForm(Part,"Cyl")
  923. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  924. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0,0.1,0.2),false)
  925. MakeForm(Part,"Wedge")
  926. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  927. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0.125,0,0.125),false)
  928. MakeForm(Hole,"Cyl")
  929. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  930. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0,0,0),false)
  931. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  932. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  933. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Brown", "Eye", VT(0,0,0),false)
  934. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  935. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  936. coroutine.resume(coroutine.create(function()
  937. while wait() do
  938. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  939. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  940. end
  941. end))
  942.  
  943. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  944. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  945.  
  946. for _, c in pairs(Weapon:GetDescendants()) do
  947. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  948. c.Material = "Glass"
  949. c.Color = C3(1,1,1)
  950. elseif c.ClassName == "Part" and c.Name == "Eye" then
  951. c.Color = C3(0,0,0)
  952. c.Material = "Neon"
  953. end
  954. end
  955.  
  956. Weapon.Parent = Character
  957. for _, c in pairs(Weapon:GetChildren()) do
  958. if c.ClassName == "Part" then
  959. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  960. end
  961. end
  962.  
  963. local SKILLTEXTCOLOR = C3(1,0,0)
  964. local SKILLFONT = "Antique"
  965. local SKILLTEXTSIZE = 7
  966.  
  967. Humanoid.Died:connect(function()
  968. ATTACK = true
  969. end)
  970.  
  971. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  972. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  973. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  974. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  975. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  976. ]]
  977. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  978. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  979. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  980. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  981. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  982. ]]
  983. function printbye(Name)
  984. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  985. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  986. end
  987.  
  988. workspace.ChildAdded:connect(function(instance)
  989. for BANISH = 1, #TOBANISH do
  990. if TOBANISH[BANISH] ~= nil then
  991. if instance.Name == TOBANISH[BANISH] then
  992. coroutine.resume(coroutine.create(function()
  993. printbye(instance.Name)
  994. instance:ClearAllChildren()
  995. Debris:AddItem(instance,0.0005)
  996. end))
  997. end
  998. end
  999. end
  1000. end)
  1001.  
  1002. --//=================================\\
  1003. --|| DAMAGING
  1004. --\\=================================//
  1005.  
  1006. function Banish(Foe)
  1007. if Foe then
  1008. coroutine.resume(coroutine.create(function()
  1009. --if game.Players:FindFirstChild(Foe.Name) then
  1010. table.insert(TOBANISH,Foe.Name)
  1011. printbye(Foe.Name)
  1012. --end
  1013. Foe.Archivable = true
  1014. local CLONE = Foe:Clone()
  1015. Foe:Destroy()
  1016. CLONE.Parent = Effects
  1017. CLONE:BreakJoints()
  1018. local MATERIALS = {"Glass","Neon"}
  1019. for _, c in pairs(CLONE:GetDescendants()) do
  1020. if c:IsA("BasePart") then
  1021. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1022. CreateSound(340722848, c, 10, 1, false)
  1023. end
  1024. c.Anchored = true
  1025. c.Transparency = c.Transparency + 0.2
  1026. c.Material = MATERIALS[MRANDOM(1,2)]
  1027. c.Color = C3(1,1,1)
  1028. if c.ClassName == "MeshPart" then
  1029. c.TextureID = ""
  1030. end
  1031. if c:FindFirstChildOfClass("SpecialMesh") then
  1032. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1033. end
  1034. if c:FindFirstChildOfClass("Decal") then
  1035. c:FindFirstChildOfClass("Decal"):remove()
  1036. end
  1037. c.Name = "Banished"
  1038. c.CanCollide = false
  1039. else
  1040. c:remove()
  1041. end
  1042. end
  1043. local A = false
  1044. for i = 1, 35 do
  1045. if A == false then
  1046. A = true
  1047. elseif A == true then
  1048. A = false
  1049. end
  1050. for _, c in pairs(CLONE:GetDescendants()) do
  1051. if c:IsA("BasePart") then
  1052. c.Anchored = true
  1053. c.Material = MATERIALS[MRANDOM(1,2)]
  1054. c.Transparency = c.Transparency + 0.8/35
  1055. if A == false then
  1056. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1057. elseif A == true then
  1058. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1059. end
  1060. end
  1061. end
  1062. Swait()
  1063. end
  1064. CLONE:remove()
  1065. end))
  1066. end
  1067. end
  1068.  
  1069. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1070. local CHILDREN = workspace:GetDescendants()
  1071. for index, CHILD in pairs(CHILDREN) do
  1072. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1073. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1074. if HUM then
  1075. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1076. if TORSO then
  1077. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1078. if ISBANISH == true then
  1079. Banish(CHILD)
  1080. else
  1081. if ISBANISH == "Gravity" then
  1082. HUM.PlatformStand = true
  1083. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1084. local grav = Instance.new("BodyPosition",TORSO)
  1085. grav.D = 15
  1086. grav.P = 20000
  1087. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1088. grav.position = TORSO.Position
  1089. grav.Name = "V3BanishForce"..Player.Name
  1090. else
  1091. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1092. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1093. end
  1094. else
  1095. HUM.PlatformStand = false
  1096. end
  1097. end
  1098. elseif ISBANISH == "Gravity" then
  1099. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1100. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1101. HUM.PlatformStand = false
  1102. end
  1103. end
  1104. end
  1105. end
  1106. end
  1107. end
  1108. end
  1109.  
  1110. UnBanishTaunts = {"You Are Released.", "If You Do The Same Thing Twice You Shall Not Be Given Mercy.", "Your Actions Have Been Forgiven.", "I shall set you free.", "I have let you go.", "Don't do that again.", "As A Person, i have the emotion of forgiving.", "Its Only Fair To Show You Mercy."}
  1111.  
  1112. --//=================================\\
  1113. --|| ATTACK FUNCTIONS AND STUFF
  1114. --\\=================================//
  1115.  
  1116. function Shot()
  1117. ATTACK = true
  1118. Rooted = false
  1119. for i=0, 0.05, 0.1 / Animation_Speed do
  1120. Swait()
  1121. turnto(Mouse.Hit.p)
  1122. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1123. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1124. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1125. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1126. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1127. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1128. end
  1129. repeat
  1130. for i=0, 0.05, 0.1 / Animation_Speed do
  1131. Swait()
  1132. turnto(Mouse.Hit.p)
  1133. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1134. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1135. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1136. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1137. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1138. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1139. end
  1140. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1141. SpawnTrail(Hole.Position,POS)
  1142. if HIT ~= nil then
  1143. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1144. Banish(HIT.Parent)
  1145. end
  1146. end
  1147. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,7.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1148. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1149. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1150. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1151. for i=0, 0.05, 0.1 / Animation_Speed do
  1152. Swait()
  1153. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1154. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1155. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1156. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1157. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1158. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1159. end
  1160. until KEYHOLD == false
  1161. ATTACK = false
  1162. Rooted = false
  1163. end
  1164.  
  1165. function AttackTemplate()
  1166. ATTACK = true
  1167. Rooted = false
  1168. for i=0, 1, 0.1 / Animation_Speed do
  1169. Swait()
  1170. 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)
  1171. 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)
  1172. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1173. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1174. 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)
  1175. 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)
  1176. end
  1177. ATTACK = false
  1178. Rooted = false
  1179. end
  1180.  
  1181. function chatfunc(text)
  1182. local chat = coroutine.wrap(function()
  1183. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1184. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1185. end
  1186. local Bill = Instance.new("BillboardGui",Character)
  1187. Bill.Size = UDim2.new(0,100,0,40)
  1188. Bill.StudsOffset = Vector3.new(0,3,0)
  1189. Bill.Adornee = Character.Head
  1190. Bill.Name = "TalkingBillBoard"
  1191. local Hehe = Instance.new("TextLabel",Bill)
  1192. Hehe.BackgroundTransparency = 1
  1193. Hehe.BorderSizePixel = 0
  1194. Hehe.Text = ""
  1195. Hehe.Font = "Bodoni"
  1196. Hehe.TextSize = 40
  1197. Hehe.TextStrokeTransparency = 0
  1198. Hehe.Size = UDim2.new(1,0,0.5,0)
  1199. coroutine.resume(coroutine.create(function()
  1200. while Hehe ~= nil do
  1201. swait()
  1202. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1203. Hehe.Rotation = math.random(-5,5)
  1204. Hehe.TextColor3 = Color3.new(196, 40, 28)
  1205. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  1206. end
  1207. end))
  1208. for i = 1,string.len(text),1 do
  1209. swait()
  1210. Hehe.Text = string.sub(text,1,i)
  1211. end
  1212. swait(90)--Re[math.random(1, 93)]
  1213. for i = 0, 1, .025 do
  1214. swait()
  1215. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1216. Hehe.TextStrokeTransparency = i
  1217. Hehe.TextTransparency = i
  1218. end
  1219. Bill:Destroy()
  1220. end)
  1221. chat()
  1222. end
  1223.  
  1224. function onChatted(msg)
  1225. chatfunc(msg)
  1226. end
  1227.  
  1228. Player.Chatted:connect(onChatted)
  1229.  
  1230. function Swait(NUMBER)
  1231. if NUMBER == 0 or NUMBER == nil then
  1232. ArtificialHB.Event:wait()
  1233. else
  1234. for i = 1, NUMBER do
  1235. ArtificialHB.Event:wait()
  1236. end
  1237. end
  1238. end
  1239.  
  1240. function swait(num)
  1241. if num == 0 or num == nil then
  1242. ArtificialHB.Event:wait()
  1243. else
  1244. for i = 0, num do
  1245. ArtificialHB.Event:wait()
  1246. end
  1247. end
  1248. end
  1249.  
  1250. local EYES = {}
  1251. function ApplyDamage9(Humanoid,Damage,TorsoPart)
  1252. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1253. defence.Name = ("HitBy"..Player.Name)
  1254. game:GetService("Debris"):AddItem(defence, 0.001)
  1255. Damage = Damage * DAMAGEMULTIPLIER
  1256. if Humanoid.Health ~= 0 then
  1257. local CritChance = MRANDOM(1,100)
  1258. if Damage > Humanoid.Health then
  1259. Damage = math.ceil(Humanoid.Health)
  1260. if Damage == 0 then
  1261. Damage = 0.1
  1262. end
  1263. end
  1264. Humanoid.Health = Humanoid.Health - Damage
  1265. end
  1266. end
  1267.  
  1268. function ApplyAoE2(POSITION, RANGE, MINDMG, MAXDMG, FLING, IZBANISH)
  1269. local CHILDREN = workspace:GetDescendants()
  1270. for index, CHILD in pairs(CHILDREN) do
  1271. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1272. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1273. if HUM then
  1274. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1275. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  1276. if IZBANISH == true then
  1277. Banish(CHILD)
  1278. else
  1279. local DMG = MRANDOM(MINDMG, MAXDMG)
  1280. ApplyDamage9(HUM, DMG, TORSO)
  1281. end
  1282. if FLING > 0 then
  1283. for _, c in pairs(CHILD:GetChildren()) do
  1284. if c:IsA("BasePart") then
  1285. local bv = Instance.new("BodyVelocity")
  1286. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1287. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  1288. bv.Parent = c
  1289. Debris:AddItem(bv, 0.05)
  1290. end
  1291. end
  1292. end
  1293. end
  1294. end
  1295. end
  1296. end
  1297. end
  1298.  
  1299. function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
  1300. if FLOOR ~= nil then
  1301. coroutine.resume(coroutine.create(function()
  1302. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
  1303. PART.CFrame = CF(POSITION)
  1304. for i = 1, 45 do
  1305. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  1306. RingPiece.Material = FLOOR.Material
  1307. RingPiece.Color = FLOOR.Color
  1308. 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)))
  1309. Debris:AddItem(RingPiece, SWAIT)
  1310. end
  1311. PART:remove()
  1312. end))
  1313. end
  1314. end
  1315. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
  1316. if FLOOR ~= nil then
  1317. for i = 1, AMOUNT do
  1318. do
  1319. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, 0, "Peal", "Debree", BLOCKSIZE, false)
  1320. DEBREE.Material = FLOOR.Material
  1321. DEBREE.Color = FLOOR.Color
  1322. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  1323. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), STRENGTH, MRANDOM(-STRENGTH, STRENGTH))
  1324. coroutine.resume(coroutine.create(function()
  1325. Swait(15)
  1326. DEBREE.Parent = workspace
  1327. DEBREE.CanCollide = true
  1328. Debris:AddItem(DEBREE, SWAIT)
  1329. end))
  1330. end
  1331. end
  1332. end
  1333. end
  1334.  
  1335. function Fire_At_Will()
  1336. ATTACK = true
  1337. Rooted = false
  1338. local GYRO = IT("BodyGyro", RootPart)
  1339. GYRO.D = 750
  1340. GYRO.P = 2000
  1341. GYRO.MaxTorque = VT(0, 40000, 0)
  1342. for i = 0, 0.2, 0.1 / Animation_Speed do
  1343. Swait()
  1344. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  1345. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1346. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1347. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1348. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1349. if ANIM == "Idle" then
  1350. 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.5 / Animation_Speed)
  1351. 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.5 / Animation_Speed)
  1352. elseif ANIM == "Walk" then
  1353. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1354. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1355. elseif ANIM == "Jump" or ANIM == "Fall" then
  1356. 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)
  1357. 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)
  1358. end
  1359. end
  1360. local BOMB = CreatePart(3, Effects, "Neon", 0, 0, "White", "Sphere", VT(1, 1, 1), false)
  1361. MakeForm(BOMB, "Ball")
  1362. BOMB.Mesh.Scale = VT(2, 2, 2)
  1363. local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BOMB, CF(0, -2, 0), CF(0, 0, 0))
  1364. for i = 0, 1.5, 0.1 / Animation_Speed do
  1365. Swait()
  1366. if MRANDOM(1, 2) == 1 then
  1367. for E = 1, #EYES do
  1368. if EYES[E] ~= nil then
  1369. local EY = EYES[E]
  1370. local LIGHTNING = Zap({
  1371. StartPosition = EY.Position,
  1372. TargetPosition = BOMB.Position,
  1373. Character = Character,
  1374. Color = "Really red",
  1375. Individual = false,
  1376. MaxRange = 7,
  1377. SegmentLength = 1,
  1378. Offset = 0.3,
  1379. SIZE = 0.05
  1380. })
  1381. Debris:AddItem(LIGHTNING.LightningModel, 0.05)
  1382. end
  1383. end
  1384. end
  1385. BOMB.Mesh.Scale = BOMB.Mesh.Scale + VT(0.1, 0.1, 0.1)
  1386. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  1387. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1388. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1389. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1390. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1391. if ANIM == "Idle" then
  1392. 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.5 / Animation_Speed)
  1393. 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.5 / Animation_Speed)
  1394. elseif ANIM == "Walk" then
  1395. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1396. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1397. elseif ANIM == "Jump" or ANIM == "Fall" then
  1398. 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)
  1399. 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)
  1400. end
  1401. end
  1402. WACKYEFFECT({
  1403. Time = 25,
  1404. EffectType = "Ring",
  1405. Size = VT(0, 0, 0),
  1406. Size2 = VT(3.75, 3.75, 0),
  1407. Transparency = 0.7,
  1408. Transparency2 = 1,
  1409. CFrame = RootPart.CFrame * CF(0, -0.25, -1.3),
  1410. MoveToPos = nil,
  1411. RotationX = 0,
  1412. RotationY = 0,
  1413. RotationZ = 0,
  1414. Material = "Neon",
  1415. Color = BOMB.Color,
  1416. SoundID = nil,
  1417. SoundPitch = nil,
  1418. SoundVolume = nil
  1419. })
  1420. WACKYEFFECT({
  1421. Time = 50,
  1422. EffectType = "Ring",
  1423. Size = VT(0, 0, 0),
  1424. Size2 = VT(75, 75, 0),
  1425. Transparency = 0.7,
  1426. Transparency2 = 1,
  1427. CFrame = RootPart.CFrame * CF(0, -0.25, -1.3),
  1428. MoveToPos = nil,
  1429. RotationX = 0,
  1430. RotationY = 0,
  1431. RotationZ = 0,
  1432. Material = "Neon",
  1433. Color = BOMB.Color,
  1434. SoundID = nil,
  1435. SoundPitch = nil,
  1436. SoundVolume = nil
  1437. })
  1438. BOMB.Anchored = true
  1439. WELD:remove()
  1440. GYRO:remove()
  1441. coroutine.resume(coroutine.create(function()
  1442. BOMB.CFrame = CF(BOMB.Position, Mouse.Hit.p)
  1443. for i = 1, 500 do
  1444. Swait()
  1445. BOMB.CFrame = BOMB.CFrame * CF(0, 0, -2)
  1446. local HITFLOOR, HITPOS = Raycast(BOMB.Position, BOMB.CFrame.lookVector, 2.2, Character)
  1447. if HITFLOOR ~= nil then
  1448. break
  1449. end
  1450. end
  1451. ApplyAoE2(BOMB.Position, 75, 0, 0, 0, true)
  1452. for i = 1, 3 do
  1453. WACKYEFFECT({
  1454. Time = 35,
  1455. EffectType = "Swirl",
  1456. Size = VT(0, 0, 0),
  1457. Size2 = VT(250, 325, 250) + VT(50, 150, 50) * i,
  1458. Transparency = 0,
  1459. Transparency2 = 1,
  1460. CFrame = BOMB.CFrame,
  1461. MoveToPos = nil,
  1462. RotationX = 0,
  1463. RotationY = 5 * i,
  1464. RotationZ = 0,
  1465. Material = "Neon",
  1466. Color = BOMB.Color,
  1467. SoundID = nil,
  1468. SoundPitch = nil,
  1469. SoundVolume = nil
  1470. })
  1471. end
  1472. for i = 1, 5 do
  1473. WACKYEFFECT({
  1474. Time = 75,
  1475. EffectType = "Sphere",
  1476. Size = BOMB.Mesh.Scale,
  1477. Size2 = VT(100, 100, 100) * i,
  1478. Transparency = 0.5,
  1479. Transparency2 = 1,
  1480. CFrame = BOMB.CFrame,
  1481. MoveToPos = nil,
  1482. RotationX = 0,
  1483. RotationY = 0,
  1484. RotationZ = 0,
  1485. Material = "Neon",
  1486. Color = BOMB.Color,
  1487. SoundID = 1222405264,
  1488. SoundPitch = 1,
  1489. SoundVolume = 10
  1490. })
  1491. end
  1492. local HITFLOOR, HITPOS = Raycast(BOMB.Position, CF(BOMB.Position + VT(0, 1, 0), BOMB.Position - VT(0, 1, 0)).lookVector, 15, Character)
  1493. if HITFLOOR then
  1494. CreateDebreeRing(HITFLOOR, HITPOS, 15, VT(18, 18, 18), 5)
  1495. end
  1496. BOMB.Transparency = 1
  1497. for i = 1, 35 do
  1498. Swait()
  1499. CreateFlyingDebree(BOMB, CF(BOMB.Position), 1, VT(0.5, 0.5, 0.5), 5, 150)
  1500. end
  1501. BOMB:remove()
  1502. end))
  1503. ATTACK = false
  1504. Rooted = false
  1505. end
  1506.  
  1507. function ApplyDamage(Humanoid, Damage, TorsoPart)
  1508. local defence = Instance.new("BoolValue", Humanoid.Parent)
  1509. defence.Name = "HitBy" .. Player.Name
  1510. game:GetService("Debris"):AddItem(defence, 0.001)
  1511. Damage = Damage * DAMAGEMULTIPLIER
  1512. if Humanoid.Health ~= 0 then
  1513. local CritChance = MRANDOM(1, 100)
  1514. if Damage > Humanoid.Health then
  1515. Damage = math.ceil(Humanoid.Health)
  1516. if Damage == 0 then
  1517. Damage = 0.1
  1518. end
  1519. end
  1520. Humanoid.Health = Humanoid.Health - Damage
  1521. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1522. end
  1523. end
  1524. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  1525. local CHILDREN = workspace:GetDescendants()
  1526. for index, CHILD in pairs(CHILDREN) do
  1527. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1528. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1529. if HUM then
  1530. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1531. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  1532. if INSTAKILL == true then
  1533. CHILD:BreakJoints()
  1534. else
  1535. local DMG = MRANDOM(MINDMG, MAXDMG)
  1536. ApplyDamage(HUM, DMG, TORSO)
  1537. end
  1538. if FLING > 0 then
  1539. for _, c in pairs(CHILD:GetChildren()) do
  1540. if c:IsA("BasePart") then
  1541. local bv = Instance.new("BodyVelocity")
  1542. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1543. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  1544. bv.Parent = c
  1545. Debris:AddItem(bv, 0.05)
  1546. end
  1547. end
  1548. end
  1549. end
  1550. end
  1551. end
  1552. end
  1553. end
  1554. function Extreme_Offset()
  1555. local HITFLOOR, HITPOS = Raycast(Mouse.Hit.p + VT(0, 1, 0), CF(Mouse.Hit.p + VT(0, 1, 0), Mouse.Hit.p - VT(0, 1, 0)).lookVector, 25, Character)
  1556. if HITFLOOR then
  1557. local ORIGINPOS = VT(RootPart.Position.X, HITPOS.Y + 8, RootPart.Position.Z)
  1558. CreateSound("1295446488", Torso, 5, 1)
  1559. for i = 1, 5 do
  1560. WACKYEFFECT({
  1561. Time = MRANDOM(15, 35),
  1562. EffectType = "Round Slash",
  1563. Size = VT(0, 0, 0),
  1564. Size2 = VT(0.3, 0, 0.3),
  1565. Transparency = 0.5,
  1566. Transparency2 = 1,
  1567. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  1568. MoveToPos = nil,
  1569. RotationX = MRANDOM(-50, 50) / 10,
  1570. RotationY = MRANDOM(-50, 50) / 10,
  1571. RotationZ = MRANDOM(-50, 50) / 10,
  1572. Material = "Neon",
  1573. Color = C3(1, 1, 1),
  1574. SoundID = nil,
  1575. SoundPitch = nil,
  1576. SoundVolume = nil
  1577. })
  1578. end
  1579. ATTACK = true
  1580. Rooted = true
  1581. UNANCHOR = false
  1582. RootPart.Anchored = true
  1583. RootPart.CFrame = CF(HITPOS + VT(0, 8, 0), ORIGINPOS) * ANGLES(RAD(0), RAD(180), RAD(0))
  1584. for i = 1, 5 do
  1585. WACKYEFFECT({
  1586. Time = MRANDOM(15, 35),
  1587. EffectType = "Round Slash",
  1588. Size = VT(0, 0, 0),
  1589. Size2 = VT(0.3, 0, 0.3),
  1590. Transparency = 0.5,
  1591. Transparency2 = 1,
  1592. CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
  1593. MoveToPos = nil,
  1594. RotationX = MRANDOM(-50, 50) / 10,
  1595. RotationY = MRANDOM(-50, 50) / 10,
  1596. RotationZ = MRANDOM(-50, 50) / 10,
  1597. Material = "Neon",
  1598. Color = C3(1, 1, 1),
  1599. SoundID = nil,
  1600. SoundPitch = nil,
  1601. SoundVolume = nil
  1602. })
  1603. end
  1604. for i = 0, 0.2, 0.1 / Animation_Speed do
  1605. Swait()
  1606. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(150)), 2 / Animation_Speed)
  1607. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1608. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1609. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1610. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1611. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 2 / Animation_Speed)
  1612. end
  1613. for i = 0, 1, 0.1 / Animation_Speed do
  1614. Swait()
  1615. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 0.02 / Animation_Speed)
  1616. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.02 / Animation_Speed)
  1617. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.02 / Animation_Speed)
  1618. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.02 / Animation_Speed)
  1619. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  1620. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.02 / Animation_Speed)
  1621. end
  1622. for i = 1, 10 do
  1623. Swait()
  1624. RootPart.CFrame = RootPart.CFrame * CF(0, -0.4, 0)
  1625. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 1.7 / Animation_Speed)
  1626. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1.7 / Animation_Speed)
  1627. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1.7 / Animation_Speed)
  1628. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.7 / Animation_Speed)
  1629. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  1630. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.7 / Animation_Speed)
  1631. end
  1632. for i = 0, 0.2, 0.1 / Animation_Speed do
  1633. Swait()
  1634. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  1635. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  1636. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1637. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  1638. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1639. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1640. end
  1641. local HITFLOOR, HITPOS = Raycast(RightArm.Position, CF(RightArm.Position, RightArm.Position + VT(0, -1, 0)).lookVector, 8, Character)
  1642. if HITFLOOR then
  1643. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1644. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  1645. for index, CHILD in pairs(CHILDREN) do
  1646. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  1647. for i = 1, 5 do
  1648. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  1649. CHILD:remove()
  1650. end
  1651. end
  1652. end
  1653. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  1654. SOUNDPART.CFrame = CF(HITPOS)
  1655. Debris:AddItem(SOUNDPART, 5)
  1656. CreateSound("130972023", SOUNDPART, 6, 3)
  1657. CreateSound("182765513", SOUNDPART, 6, 1)
  1658. WACKYEFFECT({
  1659. EffectType = "Ring",
  1660. Size = VT(0, 0, 0),
  1661. Size2 = VT(1, 1, 0),
  1662. Transparency = 0.7,
  1663. Transparency2 = 1,
  1664. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  1665. MoveToPos = nil,
  1666. RotationX = 0,
  1667. RotationY = 0,
  1668. RotationZ = 0,
  1669. Material = "Neon",
  1670. Color = C3(1, 1, 1),
  1671. SoundID = nil,
  1672. SoundPitch = nil,
  1673. SoundVolume = nil
  1674. })
  1675. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1676. local CHILDREN = HITFLOOR.Parent.Parent:GetDescendants()
  1677. for index, CHILD in pairs(CHILDREN) do
  1678. if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
  1679. for i = 1, 5 do
  1680. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
  1681. CHILD:remove()
  1682. end
  1683. end
  1684. end
  1685. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  1686. SOUNDPART.CFrame = CF(HITPOS)
  1687. Debris:AddItem(SOUNDPART, 5)
  1688. CreateSound("130972023", SOUNDPART, 6, 3)
  1689. CreateSound("182765513", SOUNDPART, 6, 1)
  1690. WACKYEFFECT({
  1691. EffectType = "Ring",
  1692. Size = VT(0, 0, 0),
  1693. Size2 = VT(1, 1, 0),
  1694. Transparency = 0.7,
  1695. Transparency2 = 1,
  1696. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  1697. MoveToPos = nil,
  1698. RotationX = 0,
  1699. RotationY = 0,
  1700. RotationZ = 0,
  1701. Material = "Neon",
  1702. Color = C3(1, 1, 1),
  1703. SoundID = nil,
  1704. SoundPitch = nil,
  1705. SoundVolume = nil
  1706. })
  1707. elseif HITFLOOR.Anchored == false then
  1708. if HITFLOOR.Parent ~= workspace then
  1709. local CHILDREN = HITFLOOR.Parent:GetDescendants()
  1710. for index, CHILD in pairs(CHILDREN) do
  1711. if CHILD:IsA("BasePart") and CHILD.Position.Y < HITPOS.Y then
  1712. for i = 1, 5 do
  1713. CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 3, 5, MRANDOM(15, 25))
  1714. end
  1715. CHILD:remove()
  1716. end
  1717. end
  1718. else
  1719. for i = 1, 5 do
  1720. CreateFlyingDebree(HITFLOOR, CF(HITFLOOR.Position), 1, HITFLOOR.Size / 3, 5, MRANDOM(15, 25))
  1721. end
  1722. HITFLOOR:remove()
  1723. end
  1724. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  1725. SOUNDPART.CFrame = CF(HITPOS)
  1726. Debris:AddItem(SOUNDPART, 5)
  1727. CreateSound("130972023", SOUNDPART, 10, 3)
  1728. CreateSound("178452217", SOUNDPART, 6, 1)
  1729. WACKYEFFECT({
  1730. EffectType = "Ring",
  1731. Size = VT(0, 0, 0),
  1732. Size2 = VT(1, 1, 0),
  1733. Transparency = 0.7,
  1734. Transparency2 = 1,
  1735. CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
  1736. MoveToPos = nil,
  1737. RotationX = 0,
  1738. RotationY = 0,
  1739. RotationZ = 0,
  1740. Material = "Neon",
  1741. Color = C3(1, 1, 1),
  1742. SoundID = nil,
  1743. SoundPitch = nil,
  1744. SoundVolume = nil
  1745. })
  1746. else
  1747. local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
  1748. SOUNDPART.CFrame = CF(HITPOS)
  1749. Debris:AddItem(SOUNDPART, 5)
  1750. CreateSound("130972023", SOUNDPART, 10, 1)
  1751. CreateSound("130972023", SOUNDPART, 6, 0.7)
  1752. CreateDebreeRing(HITFLOOR, HITPOS, 5, VT(5, 5, 5), 5)
  1753. CreateDebreeRing(HITFLOOR, HITPOS, 8, VT(8, 8, 8), 5)
  1754. ApplyAoE(HITPOS, 15, 45, 75, 75, false)
  1755. ApplyAoE(HITPOS, 25, 25, 35, 35, false)
  1756. for i = 1, 5 do
  1757. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10), 5, MRANDOM(75, 150))
  1758. end
  1759. for i = 1, 5 do
  1760. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2), 5, MRANDOM(75, 150))
  1761. end
  1762. end
  1763. end
  1764. for i = 0, 1.2, 0.1 / Animation_Speed do
  1765. Swait()
  1766. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
  1767. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
  1768. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1769. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
  1770. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1771. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1772. end
  1773. ATTACK = false
  1774. Rooted = false
  1775. UNANCHOR = true
  1776. RootPart.Anchored = false
  1777. end
  1778. end
  1779.  
  1780. function idk()
  1781. ATTACK = true
  1782. Rooted = true
  1783. coroutine.resume(coroutine.create(function()
  1784. local PITS = {}
  1785. local FRAME = RootPart.CFrame
  1786. for i = 2, 120 do
  1787. Swait()
  1788. local CFRAME = FRAME*CF(MRANDOM(-10,10)/10,0,5-(i)).p
  1789. local HITFLOOR,HITPOS,NORMAL = Raycast(CFRAME, (CF(CFRAME, CFRAME + VT(0, -1, 0))).lookVector, 25, Character)
  1790. if HITFLOOR ~= nil then
  1791. if MRANDOM(1, 2) == 1 then
  1792. local ICICLE = IT("CornerWedgePart",Effects)
  1793. ICICLE.Locked = true
  1794. ICICLE.CanCollide = false
  1795. ICICLE.Anchored = true
  1796. ICICLE.BrickColor = BRICKC"Really black"
  1797. ICICLE.Material = "Marble"
  1798. ICICLE.Size = VT(i/10,i/2,i/10)
  1799. ICICLE.CFrame = CF(HITPOS)*CF(MRANDOM(-i/10,i/10),0,MRANDOM(-i/10,i/10))*ANGLES(RAD(MRANDOM(-25,25)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-25,25)))
  1800. table.insert(PITS,ICICLE)
  1801. ICICLE.Transparency = 1
  1802. PITS.Transparency = 1
  1803. --CreateSound("588693156", ICICLE, 3, MRANDOM(8,12)/10, false)
  1804. ApplyAoE(ICICLE.Position,ICICLE.Size.X,100,100,20,true)
  1805. WACKYEFFECT({EffectType = "Sphere", Size = VT(ICICLE.Size.X*3,2,ICICLE.Size.X*3), Size2 = VT(0,6,0), Transparency = 1, Transparency2 = 0, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Glass", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1806. end
  1807. else
  1808. break
  1809. end
  1810. end
  1811. wait(3)
  1812. coroutine.resume(coroutine.create(function()
  1813. for i = 1, 10 do
  1814. Swait()
  1815. for e=1,#PITS do
  1816. if PITS[e]~=nil then
  1817. local E = PITS[e]
  1818. E.Transparency = E.Transparency + 0.1
  1819. end
  1820. end
  1821. end
  1822. for e=1,#PITS do
  1823. if PITS[e]~=nil then
  1824. local E = PITS[e]
  1825. E:remove()
  1826. end
  1827. end
  1828. end))
  1829. end))
  1830. ATTACK = false
  1831. Rooted = false
  1832. end
  1833.  
  1834. function Taunt()
  1835. ATTACK = true
  1836. Rooted = true
  1837. CreateSound("907330011", Head, 10, 1.1)
  1838. for i=0, 1, 0.1 / Animation_Speed do
  1839. Swait()
  1840. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1841. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
  1842. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(170), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1843. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1844. 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)
  1845. 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)
  1846. end
  1847. for i=0, 2, 0.1 / Animation_Speed do
  1848. Swait()
  1849. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1850. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
  1851. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1852. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1853. 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)
  1854. 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)
  1855. end
  1856. ATTACK = false
  1857. Rooted = false
  1858. end
  1859.  
  1860. function TrustIssues()
  1861. ATTACK = true
  1862. Rooted = false
  1863. CreateSound(649634100,Head,10,0.5,false)
  1864. for i=1, 80 do
  1865. Swait()
  1866. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15* COS(i / 5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1867. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + MRANDOM(-5,5)), RAD(MRANDOM(-5,5)), RAD(0)), 1 / Animation_Speed)
  1868. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * SIN(i / 5), 0) * ANGLES(RAD(0), RAD(-15), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1869. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.15 * SIN(i / 5), 0) * ANGLES(RAD(0), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1870. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(i / 5), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1871. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(i / 5), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1872. end
  1873. ATTACK = false
  1874. Rooted = false
  1875. end
  1876.  
  1877. function Supernova()
  1878. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  1879. if HITFLOOR ~= nil then
  1880. local HITBODIES = {}
  1881. ATTACK = true
  1882. Rooted = true
  1883. local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Relly red", "Star", VT(0,0,0))
  1884. MakeForm(ABSOLUTE,"Ball")
  1885. CreateSound("429459101", ABSOLUTE, 10, 1)
  1886. for i=0, 4, 0.1 / Animation_Speed do
  1887. Swait()
  1888. ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2,0.2,0.2)
  1889. ABSOLUTE.CFrame = RootPart.CFrame*CF(0,5+(ABSOLUTE.Size.Y/2),0)
  1890. ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01
  1891. local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Star", VT(1,1,1))
  1892. MakeForm(CHARGE,"Ball")
  1893. CHARGE.Color = C3(255,0,0)
  1894. CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15,15),-6,MRANDOM(-15,15))
  1895. FireArc(CHARGE,ABSOLUTE.Position,45,45,true)
  1896. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1897. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1898. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1899. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1900. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1901. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1902. end
  1903. CreateSound("907330103", Head, 10, 1.2)
  1904. for i = 1, 75 do
  1905. Swait()
  1906. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1907. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1908. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1909. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1910. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1911. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1912. end
  1913. coroutine.resume(coroutine.create(function()
  1914. for i = 1, 13 do
  1915. for e = 1, 8 do
  1916. Swait()
  1917. MagicSphere(VT(1,1,1),15,CF(ABSOLUTE.Position)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(255,0,0),VT(0,0,0))
  1918. CreateSwirl(ABSOLUTE.Size/2,15,CF(HITPOS),true,15,BRICKC"Reakky red".Color,VT(i,0.3,i)*2)
  1919. end
  1920. for i = 1, 5 do
  1921. Slice("Round",0,35,CF(ABSOLUTE.Position)*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),C3(1,1,1),VT(i,0,i)/3)
  1922. Slice("Thin",i,55,ABSOLUTE.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),C3(255,0,0),VT(0,0,0))
  1923. end
  1924. CreateSwirl(ABSOLUTE.Size/2,25,CF(ABSOLUTE.Position),true,-25,BRICKC"Relly red".Color,VT(i,i*2,i))
  1925. CreateSwirl(ABSOLUTE.Size/2,55,CF(ABSOLUTE.Position),true,25,C3(255,0,0),VT(i,i*2,i))
  1926. CreateSound("168586621", ABSOLUTE, 4, 0.8)
  1927. CreateSound("201858144", ABSOLUTE, 10, 0.8)
  1928. killnearest(ABSOLUTE.Position,i*18,i)
  1929. ABSOLUTE.Size = ABSOLUTE.Size*0.9
  1930. MagicSphere(ABSOLUTE.Size,25,CF(ABSOLUTE.Position),BRICKC"Relly red".Color,VT(i,i,i)/1.1)
  1931. MagicSphere(ABSOLUTE.Size,45,CF(ABSOLUTE.Position),C3(255,0,0),VT(i,i,i))
  1932. end
  1933. ABSOLUTE.Transparency = 1
  1934. Debris:AddItem(ABSOLUTE,10)
  1935. end))
  1936. ATTACK = false
  1937. Rooted = false
  1938. end
  1939. end
  1940.  
  1941.  
  1942. local ENERGYSOUND = 1417051162
  1943. local BEAMSOUND = 1417056781
  1944. local EXPLOSIONSOUND = 1417056081
  1945. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Lime green", "BraceletPart", VT(1.01,0.3,1.01),false)
  1946.  
  1947. function Charge(TIME,GYRO)
  1948. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  1949. local G = nil
  1950. if GYRO == true then
  1951. G = IT("BodyGyro",RootPart)
  1952. G.D = 250
  1953. G.P = 200000
  1954. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  1955. end
  1956. for i=0, TIME, 0.1 / Animation_Speed do
  1957. Swait()
  1958. if G then
  1959. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1960. end
  1961. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1962. 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)
  1963. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1964. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1965. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1966. 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)
  1967. 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)
  1968. end
  1969. SND:remove()
  1970. if G then
  1971. return G
  1972. end
  1973. end
  1974.  
  1975. function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  1976. if DoesCourontine == false then
  1977. local Direction = CF(Part.Position,ToLocation)
  1978. local Distance = (Part.Position - ToLocation).magnitude
  1979. for i = 1, AmountOfTime do
  1980. Swait()
  1981. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1982. Direction = Part.CFrame
  1983. end
  1984. Part:remove()
  1985. elseif DoesCourontine == true then
  1986. coroutine.resume(coroutine.create(function()
  1987. local Direction = CF(Part.Position,ToLocation)
  1988. local Distance = (Part.Position - ToLocation).magnitude
  1989. for i = 1, AmountOfTime do
  1990. Swait()
  1991. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1992. Direction = Part.CFrame
  1993. end
  1994. Part:remove()
  1995. end))
  1996. end
  1997. end
  1998.  
  1999. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  2000. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2001. wave.Color = COLOR
  2002. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  2003. wave.CFrame = CFRAME
  2004. coroutine.resume(coroutine.create(function(PART)
  2005. for i = 1, WAIT do
  2006. Swait()
  2007. mesh.Scale = mesh.Scale + GROW
  2008. wave.Transparency = wave.Transparency + (1/WAIT)
  2009. if wave.Transparency > 0.99 then
  2010. wave:remove()
  2011. end
  2012. end
  2013. end))
  2014. end
  2015.  
  2016. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  2017. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  2018. wave.Color = COLOR
  2019. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  2020. wave.CFrame = CFRAME
  2021. coroutine.resume(coroutine.create(function(PART)
  2022. for i = 1, WAIT do
  2023. Swait()
  2024. mesh.Scale = mesh.Scale + GROW
  2025. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  2026. if DOESROT == true then
  2027. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  2028. end
  2029. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2030. if wave.Transparency > 0.99 then
  2031. wave:remove()
  2032. end
  2033. end
  2034. end))
  2035. end
  2036.  
  2037. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  2038. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2039. local mesh = nil
  2040. if KIND == "Base" then
  2041. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  2042. elseif KIND == "Thin" then
  2043. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  2044. elseif KIND == "Round" then
  2045. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  2046. end
  2047. wave.CFrame = CFRAME
  2048. coroutine.resume(coroutine.create(function(PART)
  2049. for i = 1, WAIT do
  2050. Swait()
  2051. mesh.Scale = mesh.Scale + GROW/10
  2052. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2053. if wave.Transparency > 0.99 then
  2054. wave:remove()
  2055. end
  2056. end
  2057. end))
  2058. end
  2059.  
  2060. function killnearest(position,range,maxstrength)
  2061. for i,v in ipairs(workspace:GetChildren()) do
  2062. local body = v:GetChildren()
  2063. for part = 1, #body do
  2064. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2065. if(body[part].Position - position).Magnitude < range then
  2066. if v.ClassName == "Model" then
  2067. v:BreakJoints()
  2068. end
  2069. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  2070. local bv = Instance.new("BodyVelocity")
  2071. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2072. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  2073. bv.Parent = body[part]
  2074. Debris:AddItem(bv,0.2)
  2075. end
  2076. end
  2077. end
  2078. if v.ClassName == "Part" then
  2079. if v.Anchored == false and (v.Position - position).Magnitude < range then
  2080. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  2081. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  2082. end
  2083. end
  2084. end
  2085. end
  2086.  
  2087. --//=================================\\
  2088. --|| ASSIGN THINGS TO KEYS
  2089. --\\=================================//
  2090.  
  2091. function MouseDown(Mouse)
  2092. if ATTACK == false then
  2093. end
  2094. end
  2095.  
  2096. function MouseUp(Mouse)
  2097. HOLD = false
  2098. end
  2099.  
  2100. function KeyDown(Key)
  2101. KEYHOLD = true
  2102. if Key == "z" and ATTACK == false then
  2103. Shot()
  2104. end
  2105.  
  2106. if Key == "x" and ATTACK == false then
  2107. Fire_At_Will()
  2108. end
  2109.  
  2110. if Key == "b" and ATTACK == false then
  2111. chatfunc(UnBanishTaunts[MRANDOM(1,#UnBanishTaunts)])
  2112. TOBANISH = {}
  2113. end
  2114.  
  2115. if Key == "c" and ATTACK == false then
  2116. Extreme_Offset()
  2117. end
  2118.  
  2119. if Key == "v" and ATTACK == false then
  2120. idk()
  2121. end
  2122.  
  2123. if Key == "t" and ATTACK == false then
  2124. Taunt()
  2125. end
  2126.  
  2127. if Key == "y" and ATTACK == false then
  2128. TrustIssues()
  2129. end
  2130. if Key == "n" and ATTACK == false then
  2131. Supernova()
  2132. end
  2133. end
  2134.  
  2135. function KeyUp(Key)
  2136. KEYHOLD = false
  2137. end
  2138.  
  2139. Mouse.Button1Down:connect(function(NEWKEY)
  2140. MouseDown(NEWKEY)
  2141. end)
  2142. Mouse.Button1Up:connect(function(NEWKEY)
  2143. MouseUp(NEWKEY)
  2144. end)
  2145. Mouse.KeyDown:connect(function(NEWKEY)
  2146. KeyDown(NEWKEY)
  2147. end)
  2148. Mouse.KeyUp:connect(function(NEWKEY)
  2149. KeyUp(NEWKEY)
  2150. end)
  2151.  
  2152. --//=================================\\
  2153. --\\=================================//
  2154.  
  2155.  
  2156. function unanchor()
  2157. if UNANCHOR == true then
  2158. g = Character:GetChildren()
  2159. for i = 1, #g do
  2160. if g[i].ClassName == "Part" then
  2161. g[i].Anchored = false
  2162. end
  2163. end
  2164. end
  2165. end
  2166.  
  2167.  
  2168. --//=================================\\
  2169. --|| WRAP THE WHOLE SCRIPT UP
  2170. --\\=================================//
  2171.  
  2172. Humanoid.Changed:connect(function(Jump)
  2173. if Jump == "Jump" and (Disable_Jump == true) then
  2174. Humanoid.Jump = false
  2175. end
  2176. end)
  2177.  
  2178. local CONNECT = nil
  2179.  
  2180. while true do
  2181. Swait()
  2182. ANIMATE.Parent = nil
  2183. if Character:FindFirstChildOfClass("Humanoid") == nil then
  2184. Humanoid = IT("Humanoid",Character)
  2185. end
  2186. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2187. v:Stop();
  2188. end
  2189. SINE = SINE + CHANGE
  2190. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2191. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2192. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2193. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2194. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2195. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2196. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  2197. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2198. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2199. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2200. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2201. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2202. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2203. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2204. end
  2205. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2206. ANIM = "Jump"
  2207. if ATTACK == false then
  2208. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2209. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2210. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2211. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2212. 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)
  2213. 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)
  2214. end
  2215. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2216. ANIM = "Fall"
  2217. if ATTACK == false then
  2218. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2219. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2220. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2221. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2222. 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)
  2223. 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)
  2224. end
  2225. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2226. ANIM = "Idle"
  2227. if ATTACK == false then
  2228. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  2229. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  2230. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2231. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2232. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2233. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2234. end
  2235. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2236. ANIM = "Walk"
  2237. if ATTACK == false then
  2238. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2239. 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)
  2240. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2241. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  2242. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2243. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2244. end
  2245. end
  2246. unanchor()
  2247. Humanoid.MaxHealth = "inf"
  2248. Humanoid.Health = "inf"
  2249. if Rooted == false then
  2250. Disable_Jump = false
  2251. Humanoid.WalkSpeed = Speed
  2252. elseif Rooted == true then
  2253. Disable_Jump = true
  2254. Humanoid.WalkSpeed = 0
  2255. end
  2256. sick.Playing = true
  2257. sick.SoundId = "rbxassetid://292480358"
  2258. sick.Looped = true
  2259. sick.Pitch = 1
  2260. sick.Volume = 3
  2261. if sick.Parent ~= Torso then
  2262. sick = IT("Sound", Torso)
  2263. end
  2264. end
  2265.  
  2266. --//=================================\\
  2267. --\\=================================//
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273. --//====================================================\\--
  2274. --|| END OF SCRIPT
  2275. --\\====================================================//--4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement