Advertisement
Guest User

Amalgam

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