Advertisement
SirMemz

Untitled

Jun 29th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player = game.Players.localPlayer
  2. local Character = Player.Character
  3. local Humanoid = Character.Humanoid
  4. local Mouse = Player:GetMouse()
  5. local LeftArm = Character["Left Arm"]
  6. local RightArm = Character["Right Arm"]
  7. local LeftLeg = Character["Left Leg"]
  8. local RightLeg = Character["Right Leg"]
  9. local Head = Character.Head
  10. local Torso = Character.Torso
  11. local Camera = game.Workspace.CurrentCamera
  12. local RootPart = Character.HumanoidRootPart
  13. local RootJoint = RootPart.RootJoint
  14. local attack = false
  15. local Anim = 'Idle'
  16. local Lighty = game:GetService"Lighting"
  17. local attacktype = 1
  18. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  19. local velocity = RootPart.Velocity.y
  20. local sine = 0
  21. local change = 1
  22. local bored = {1473376281,1473376281,1473376281,1473376281,1473376281,1473376281}
  23. local Create = LoadLibrary("RbxUtility").Create
  24. function swait(num)
  25. if num == 0 or num == nil then
  26. ArtificialHB.Event:wait()
  27. else
  28. for i = 0, num do
  29. ArtificialHB.Event:wait()
  30. end
  31. end
  32. end
  33.  
  34. local chara = Character
  35. local m = Create("Model"){
  36. Parent = Character,
  37. Name = "WeaponModel",
  38. }
  39. function chat(...)
  40. local txxt = {...}
  41. local ch = coroutine.wrap(function()
  42. if chara:FindFirstChild("Chatt")~= nil then
  43. Character:FindFirstChild("Chatt"):destroy()
  44. end
  45. local txt = Instance.new("BillboardGui", chara)
  46. txt.Adornee = chara.Head
  47. txt.Name = "Chatt"
  48. txt.Size = UDim2.new(2, 0, 1.1, 0)
  49. txt.StudsOffset = Vector3.new(-9, 7, 0)
  50. local text = Instance.new("TextLabel", txt)
  51. text.Size = UDim2.new(10, 0, 7, 0)
  52. text.TextSize = 33
  53. text.Font = Enum.Font.Fantasy
  54. text.TextScaled = false
  55. text.BackgroundTransparency = 1
  56. text.TextColor3 = Color3.new(0,0,0)
  57. text.TextStrokeTransparency = 0
  58. text.TextStrokeColor3 = C3(0, 0, 255)
  59. text.Text = ""
  60. txxt = table.concat(txxt,"\t")
  61. for i = 1, #txxt do
  62. text.Text = txxt:sub(1,i)
  63.  
  64. end
  65. wait(2)
  66. for trans = 0,1,00.1 do
  67. text.TextTransparency = trans
  68. text.TextStrokeTransparency = trans
  69. wait()
  70. end
  71. wait()
  72. txt:destroy()
  73. end)
  74.  
  75. ch(...)
  76. end
  77. Player.Chatted:connect(chat)
  78.  
  79. wait(0.2)
  80.  
  81. Player = game:GetService("Players").LocalPlayer
  82. PlayerGui = Player.PlayerGui
  83. Cam = workspace.CurrentCamera
  84. Backpack = Player.Backpack
  85. Character = Player.Character
  86. Humanoid = Character.Humanoid
  87. Mouse = Player:GetMouse()
  88. RootPart = Character["HumanoidRootPart"]
  89. Torso = Character["Torso"]
  90. Head = Character["Head"]
  91. RightArm = Character["Right Arm"]
  92. LeftArm = Character["Left Arm"]
  93. RightLeg = Character["Right Leg"]
  94. LeftLeg = Character["Left Leg"]
  95. RootJoint = RootPart["RootJoint"]
  96. Neck = Torso["Neck"]
  97. RightShoulder = Torso["Right Shoulder"]
  98. LeftShoulder = Torso["Left Shoulder"]
  99. RightHip = Torso["Right Hip"]
  100. LeftHip = Torso["Left Hip"]
  101. Character.Archivable = true
  102. Player:ClearCharacterAppearance()
  103.  
  104. IT = Instance.new
  105. CF = CFrame.new
  106. VT = Vector3.new
  107. RAD = math.rad
  108. C3 = Color3.new
  109. UD2 = UDim2.new
  110. BRICKC = BrickColor.new
  111. ANGLES = CFrame.Angles
  112. EULER = CFrame.fromEulerAnglesXYZ
  113. COS = math.cos
  114. ACOS = math.acos
  115. SIN = math.sin
  116. ASIN = math.asin
  117. ABS = math.abs
  118. MRANDOM = math.random
  119. FLOOR = math.floor
  120. local CHOICE = MRANDOM(1,5)
  121. --//=================================\\
  122. --|| USEFUL VALUES
  123. --\\=================================//
  124.  
  125. Animation_Speed = 3
  126. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  127. local Speed = 20
  128. local SIZE = 1
  129. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  130. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  131. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  132. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  133. local DAMAGEMULTIPLIER = "inf"
  134. local ANIM = "Idle"
  135. local ATTACK = false
  136. local EQUIPPED = false
  137. local HOLD = false
  138. local COMBO = 1
  139. local Rooted = false
  140. local SINE = 0
  141. local KEYHOLD = false
  142. local CHANGE = 2 / Animation_Speed
  143. local WALKINGANIM = false
  144. local VALUE1 = false
  145. local VALUE2 = false
  146. local ROBLOXIDLEANIMATION = IT("Animation")
  147. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  148. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  149. local ATANIM = IT("Animation")
  150. ATANIM.Name = "Attack Animation"
  151. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  152. --ROBLOXIDLEANIMATION.Parent = Humanoid
  153. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  154. WEAPONGUI.Name = "Weapon GUI"
  155. local Weapon = IT("Model")
  156. Weapon.Name = "Adds"
  157. local Effects = IT("Folder", Weapon)
  158. Effects.Name = "Effects"
  159. local ANIMATOR = Humanoid.Animator
  160. local ANIMATE = Character.Animate
  161. local UNANCHOR = true
  162. local CLOCKLOOP = 0
  163. local SONG = 1107825563
  164. local CLOCKTARGET = nil
  165. local CLOCKSPEED = 4
  166. script.Parent = WEAPONGUI
  167. local CLONE = Character:Clone()
  168. CLONE.Parent = nil
  169. Character.Archivable = false
  170. local sick = Instance.new("Sound",Torso)
  171. sick.Volume = 50999
  172. local LAUGHS = {834001699,834001752,834001797,834001828}
  173. local SONGS = {1107825563,1107825563,1107825563,1107825563}
  174. local CHOICE = MRANDOM(1,4)
  175. local TOBANISH = {}
  176. local EXTRATRANS = 0
  177. local Effects2 = {}
  178. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  179. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  180. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  181. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  182.  
  183. --//=================================\\
  184. --\\=================================//
  185.  
  186.  
  187. --//=================================\\
  188. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  189. --\\=================================//
  190.  
  191. ArtificialHB = Instance.new("BindableEvent", script)
  192. ArtificialHB.Name = "ArtificialHB"
  193.  
  194. script:WaitForChild("ArtificialHB")
  195.  
  196. frame = Frame_Speed
  197. tf = 0
  198. allowframeloss = false
  199. tossremainder = false
  200. lastframe = tick()
  201. script.ArtificialHB:Fire()
  202.  
  203. game:GetService("RunService").Heartbeat:connect(function(s, p)
  204. tf = tf + s
  205. if tf >= frame then
  206. if allowframeloss then
  207. script.ArtificialHB:Fire()
  208. lastframe = tick()
  209. else
  210. for i = 1, math.floor(tf / frame) do
  211. script.ArtificialHB:Fire()
  212. end
  213. lastframe = tick()
  214. end
  215. if tossremainder then
  216. tf = 0
  217. else
  218. tf = tf - frame * math.floor(tf / frame)
  219. end
  220. end
  221. end)
  222.  
  223. --//=================================\\
  224. --\\=================================//
  225.  
  226. --//=================================\\
  227. --|| SOME FUNCTIONS
  228. --\\=================================//
  229.  
  230. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  231. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  232. end
  233.  
  234. function PositiveAngle(NUMBER)
  235. if NUMBER >= 0 then
  236. NUMBER = 0
  237. end
  238. return NUMBER
  239. end
  240.  
  241. function NegativeAngle(NUMBER)
  242. if NUMBER <= 0 then
  243. NUMBER = 0
  244. end
  245. return NUMBER
  246. end
  247.  
  248. function Swait(NUMBER)
  249. if NUMBER == 0 or NUMBER == nil then
  250. ArtificialHB.Event:wait()
  251. else
  252. for i = 1, NUMBER do
  253. ArtificialHB.Event:wait()
  254. end
  255. end
  256. end
  257.  
  258. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  259. local NEWMESH = IT(MESH)
  260. if MESH == "SpecialMesh" then
  261. NEWMESH.MeshType = MESHTYPE
  262. if MESHID ~= "nil" and MESHID ~= "" then
  263. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  264. end
  265. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  266. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  267. end
  268. end
  269. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  270. NEWMESH.Scale = SCALE
  271. NEWMESH.Parent = PARENT
  272. return NEWMESH
  273. end
  274.  
  275. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  276. local NEWPART = IT("Part")
  277. NEWPART.formFactor = FORMFACTOR
  278. NEWPART.Reflectance = REFLECTANCE
  279. NEWPART.Transparency = TRANSPARENCY
  280. NEWPART.CanCollide = false
  281. NEWPART.Locked = true
  282. NEWPART.Anchored = true
  283. if ANCHOR == false then
  284. NEWPART.Anchored = false
  285. end
  286. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  287. NEWPART.Name = NAME
  288. NEWPART.Size = SIZE
  289. NEWPART.Position = Torso.Position
  290. NEWPART.Material = MATERIAL
  291. NEWPART:BreakJoints()
  292. NEWPART.Parent = PARENT
  293. return NEWPART
  294. end
  295.  
  296. local function weldBetween(a, b)
  297. local weldd = Instance.new("ManualWeld")
  298. weldd.Part0 = a
  299. weldd.Part1 = b
  300. weldd.C0 = CFrame.new()
  301. weldd.C1 = b.CFrame:inverse() * a.CFrame
  302. weldd.Parent = a
  303. return weldd
  304. end
  305.  
  306.  
  307. function QuaternionFromCFrame(cf)
  308. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  309. local trace = m00 + m11 + m22
  310. if trace > 0 then
  311. local s = math.sqrt(1 + trace)
  312. local recip = 0.5 / s
  313. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  314. else
  315. local i = 0
  316. if m11 > m00 then
  317. i = 1
  318. end
  319. if m22 > (i == 0 and m00 or m11) then
  320. i = 2
  321. end
  322. if i == 0 then
  323. local s = math.sqrt(m00 - m11 - m22 + 1)
  324. local recip = 0.5 / s
  325. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  326. elseif i == 1 then
  327. local s = math.sqrt(m11 - m22 - m00 + 1)
  328. local recip = 0.5 / s
  329. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  330. elseif i == 2 then
  331. local s = math.sqrt(m22 - m00 - m11 + 1)
  332. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  333. end
  334. end
  335. end
  336.  
  337. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  338. local xs, ys, zs = x + x, y + y, z + z
  339. local wx, wy, wz = w * xs, w * ys, w * zs
  340. local xx = x * xs
  341. local xy = x * ys
  342. local xz = x * zs
  343. local yy = y * ys
  344. local yz = y * zs
  345. local zz = z * zs
  346. 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))
  347. end
  348.  
  349. function QuaternionSlerp(a, b, t)
  350. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  351. local startInterp, finishInterp;
  352. if cosTheta >= 0.0001 then
  353. if (1 - cosTheta) > 0.0001 then
  354. local theta = ACOS(cosTheta)
  355. local invSinTheta = 1 / SIN(theta)
  356. startInterp = SIN((1 - t) * theta) * invSinTheta
  357. finishInterp = SIN(t * theta) * invSinTheta
  358. else
  359. startInterp = 1 - t
  360. finishInterp = t
  361. end
  362. else
  363. if (1 + cosTheta) > 0.0001 then
  364. local theta = ACOS(-cosTheta)
  365. local invSinTheta = 1 / SIN(theta)
  366. startInterp = SIN((t - 1) * theta) * invSinTheta
  367. finishInterp = SIN(t * theta) * invSinTheta
  368. else
  369. startInterp = t - 1
  370. finishInterp = t
  371. end
  372. end
  373. 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
  374. end
  375.  
  376. function Clerp(a, b, t)
  377. local qa = {QuaternionFromCFrame(a)}
  378. local qb = {QuaternionFromCFrame(b)}
  379. local ax, ay, az = a.x, a.y, a.z
  380. local bx, by, bz = b.x, b.y, b.z
  381. local _t = 1 - t
  382. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  383. end
  384.  
  385. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  386. local frame = IT("Frame")
  387. frame.BackgroundTransparency = TRANSPARENCY
  388. frame.BorderSizePixel = BORDERSIZEPIXEL
  389. frame.Position = POSITION
  390. frame.Size = SIZE
  391. frame.BackgroundColor3 = COLOR
  392. frame.BorderColor3 = BORDERCOLOR
  393. frame.Name = NAME
  394. frame.Parent = PARENT
  395. return frame
  396. end
  397.  
  398. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  399. local label = IT("TextLabel")
  400. label.BackgroundTransparency = 1
  401. label.Size = UD2(1, 0, 1, 0)
  402. label.Position = UD2(0, 0, 0, 0)
  403. label.TextColor3 = TEXTCOLOR
  404. label.TextStrokeTransparency = STROKETRANSPARENCY
  405. label.TextTransparency = TRANSPARENCY
  406. label.FontSize = TEXTFONTSIZE
  407. label.Font = TEXTFONT
  408. label.BorderSizePixel = BORDERSIZEPIXEL
  409. label.TextScaled = false
  410. label.Text = TEXT
  411. label.Name = NAME
  412. label.Parent = PARENT
  413. return label
  414. end
  415.  
  416. function NoOutlines(PART)
  417. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  418. end
  419.  
  420. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  421. local NEWWELD = IT(TYPE)
  422. NEWWELD.Part0 = PART0
  423. NEWWELD.Part1 = PART1
  424. NEWWELD.C0 = C0
  425. NEWWELD.C1 = C1
  426. NEWWELD.Parent = PARENT
  427. return NEWWELD
  428. end
  429.  
  430. local S = IT("Sound")
  431. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  432. local NEWSOUND = nil
  433. coroutine.resume(coroutine.create(function()
  434. NEWSOUND = S:Clone()
  435. NEWSOUND.Parent = PARENT
  436. NEWSOUND.Volume = VOLUME
  437. NEWSOUND.Pitch = PITCH
  438. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  439. NEWSOUND:play()
  440. if DOESLOOP == true then
  441. NEWSOUND.Looped = true
  442. else
  443. local REPOSITION = NEWSOUND.AncestryChanged:Connect(function()
  444. NEWSOUND.Parent = PARENT
  445. end)
  446. repeat wait(1) until NEWSOUND.Playing == false
  447. REPOSITION:disconnect()
  448. NEWSOUND:remove()
  449. end
  450. end))
  451. return NEWSOUND
  452. end
  453.  
  454. function CFrameFromTopBack(at, top, back)
  455. local right = top:Cross(back)
  456. 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)
  457. end
  458.  
  459. --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})
  460. function WACKYEFFECT(Table)
  461. local TYPE = (Table.EffectType or "Sphere")
  462. local SIZE = (Table.Size or VT(1,1,1))
  463. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  464. local TRANSPARENCY = (Table.Transparency or 0)
  465. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  466. local CFRAME = (Table.CFrame or Torso.CFrame)
  467. local MOVEDIRECTION = (Table.MoveToPos or nil)
  468. local ROTATION1 = (Table.RotationX or 0)
  469. local ROTATION2 = (Table.RotationY or 0)
  470. local ROTATION3 = (Table.RotationZ or 0)
  471. local MATERIAL = (Table.Material or "Neon")
  472. local COLOR = (Table.Color or C3(1,1,1))
  473. local TIME = (Table.Time or 45)
  474. local SOUNDID = (Table.SoundID or nil)
  475. local SOUNDPITCH = (Table.SoundPitch or nil)
  476. local SOUNDVOLUME = (Table.SoundVolume or nil)
  477. coroutine.resume(coroutine.create(function()
  478. local PLAYSSOUND = false
  479. local SOUND = nil
  480. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  481. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  482. PLAYSSOUND = true
  483. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  484. end
  485. EFFECT.Color = COLOR
  486. local MSH = nil
  487. if TYPE == "Sphere" then
  488. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  489. elseif TYPE == "Block" then
  490. MSH = IT("BlockMesh",EFFECT)
  491. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  492. elseif TYPE == "Wave" then
  493. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  494. elseif TYPE == "Ring" then
  495. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  496. elseif TYPE == "Slash" then
  497. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  498. elseif TYPE == "Round Slash" then
  499. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  500. elseif TYPE == "Swirl" then
  501. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  502. elseif TYPE == "Skull" then
  503. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  504. elseif TYPE == "Crystal" then
  505. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  506. end
  507. if MSH ~= nil then
  508. local MOVESPEED = nil
  509. if MOVEDIRECTION ~= nil then
  510. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  511. end
  512. local GROWTH = SIZE - ENDSIZE
  513. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  514. if TYPE == "Block" then
  515. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  516. else
  517. EFFECT.CFrame = CFRAME
  518. end
  519. for LOOP = 1, TIME+1 do
  520. Swait()
  521. MSH.Scale = MSH.Scale - GROWTH/TIME
  522. if TYPE == "Wave" then
  523. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  524. end
  525. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  526. if TYPE == "Block" then
  527. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  528. else
  529. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  530. end
  531. if MOVEDIRECTION ~= nil then
  532. local ORI = EFFECT.Orientation
  533. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  534. EFFECT.Orientation = ORI
  535. end
  536. end
  537. EFFECT.Transparency = 1
  538. if PLAYSSOUND == false then
  539. EFFECT:remove()
  540. else
  541. repeat Swait() until SOUND.Playing == false
  542. EFFECT:remove()
  543. end
  544. else
  545. if PLAYSSOUND == false then
  546. EFFECT:remove()
  547. else
  548. repeat Swait() until SOUND.Playing == false
  549. EFFECT:remove()
  550. end
  551. end
  552. end))
  553. end
  554.  
  555. function Shatter(Part)
  556. if Part.Transparency < 1 then
  557. local SOUNDPART = CreatePart(3, Effects, "Glass", 0, Part.Transparency + 0.1, Part.BrickColor, "OOF", VT(0,0,0))
  558. Debris:AddItem(SOUNDPART,5)
  559. CreateSound("626807593", SOUNDPART, 3, MRANDOM(8,12)/10, false)
  560. local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
  561. local SIZESET = SIZE/4
  562. local XOffset = Part.Size.X*1.5/SIZESET
  563. local YOffset = Part.Size.Y*1.5/SIZESET
  564. local ZOffset = Part.Size.Z*1.5/SIZESET
  565. for x = 1, math.ceil(XOffset) do
  566. for y = 1, math.ceil(YOffset) do
  567. for z = 1, math.ceil(ZOffset) do
  568. local SHARD = CreatePart(3, Effects, "Glass", 0, 0.15, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
  569. SHARD.CanCollide = true
  570. SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-Part.Size.X/4),(Part.Size.Y/2-Part.Size.Y/4),(Part.Size.Z/2-Part.Size.Z/4))
  571. SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
  572. Debris:AddItem(SHARD,MRANDOM(10,25)/10)
  573. for _, c in pairs(Part:GetChildren()) do
  574. if c.ClassName == "ParticleEmitter" or c.ClassName == "PointLight" or c.ClassName == "Fire" then
  575. c:Clone().Parent = SHARD
  576. end
  577. end
  578. end
  579. end
  580. end
  581. end
  582. Part:remove()
  583. end
  584.  
  585. --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false})
  586. function Lightning(Table)
  587. local Color = Table.Color or C3(1,1,1)
  588. local StartPos = Table.Start or Torso.Position
  589. local EndPos = Table.End or Mouse.Hit.p
  590. local SegmentLength = Table.SegmentL or 2
  591. local Thickness = Table.Thickness or 0.1
  592. local Dissapear = Table.DoesFade or false
  593. local Parent = Table.Ignore or Character
  594. local MaxDist = Table.MaxDist or 400
  595. local Branches = Table.Branches or false
  596. local Thicken = Table.Thicken or false
  597. local FadeTime = Table.FadeTime or 15
  598. local FadeIn = Table.FadeIn or false
  599. local Material = Table.Material or "Neon"
  600. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  601. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5))
  602. local LIGHTNINGMODEL = IT("Model",Effects)
  603. LIGHTNINGMODEL.Name = "Lightning"
  604. local LastBolt = nil
  605. for E = 1, DISTANCE do
  606. local ExtraSize = 0
  607. if Thicken == true then
  608. ExtraSize = (DISTANCE-E)/15
  609. end
  610. local TRANSPARENCY = 0
  611. if FadeIn == true then
  612. TRANSPARENCY = 1-(E/(DISTANCE/1.5))
  613. if TRANSPARENCY < 0 then
  614. TRANSPARENCY = 0
  615. end
  616. end
  617. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  618. PART.Color = Color
  619. MakeForm(PART,"Cyl")
  620. if LastBolt == nil then
  621. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  622. else
  623. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  624. end
  625. LastBolt = PART
  626. if Branches == true and E < (DISTANCE-5) then
  627. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  628. if CHOICE == 1 then
  629. local LASTBRANCH = nil
  630. for i = 1, MRANDOM(2,5) do
  631. local ExtraSize2 = 0
  632. if Thicken == true then
  633. ExtraSize = ((DISTANCE-E)/25)/i
  634. end
  635. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  636. PART.Color = Color
  637. MakeForm(PART,"Cyl")
  638. if LASTBRANCH == nil then
  639. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  640. else
  641. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  642. end
  643. LASTBRANCH = PART
  644. end
  645. end
  646. end
  647. end
  648. if Dissapear == true then
  649. coroutine.resume(coroutine.create(function()
  650. for i = 1, FadeTime do
  651. Swait()
  652. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  653. if c.ClassName == "Part" then
  654. c.Transparency = c.Transparency + (i/FadeTime)/10
  655. end
  656. end
  657. end
  658. LIGHTNINGMODEL:remove()
  659. end))
  660. elseif Dissapear == false then
  661. Debris:AddItem(LIGHTNINGMODEL,0.1)
  662. end
  663. return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  664. end
  665.  
  666. function MakeForm(PART,TYPE)
  667. if TYPE == "Cyl" then
  668. local MSH = IT("CylinderMesh",PART)
  669. elseif TYPE == "Ball" then
  670. local MSH = IT("SpecialMesh",PART)
  671. MSH.MeshType = "Sphere"
  672. elseif TYPE == "Wedge" then
  673. local MSH = IT("SpecialMesh",PART)
  674. MSH.MeshType = "Wedge"
  675. end
  676. end
  677.  
  678. Debris = game:GetService("Debris")
  679.  
  680. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  681. local DIRECTION = CF(StartPos,EndPos).lookVector
  682. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  683. end
  684.  
  685. function turnto(position)
  686. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  687. end
  688.  
  689. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  690. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  691. end
  692.  
  693. function PositiveAngle(NUMBER)
  694. if NUMBER >= 0 then
  695. NUMBER = 0
  696. end
  697. return NUMBER
  698. end
  699.  
  700. function NegativeAngle(NUMBER)
  701. if NUMBER <= 0 then
  702. NUMBER = 0
  703. end
  704. return NUMBER
  705. end
  706.  
  707. function Swait(NUMBER)
  708. if NUMBER == 0 or NUMBER == nil then
  709. ArtificialHB.Event:wait()
  710. else
  711. for i = 1, NUMBER do
  712. ArtificialHB.Event:wait()
  713. end
  714. end
  715. end
  716.  
  717. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  718. local NEWMESH = IT(MESH)
  719. if MESH == "SpecialMesh" then
  720. NEWMESH.MeshType = MESHTYPE
  721. if MESHID ~= "nil" and MESHID ~= "" then
  722. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  723. end
  724. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  725. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  726. end
  727. end
  728. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  729. NEWMESH.Scale = SCALE
  730. NEWMESH.Parent = PARENT
  731. return NEWMESH
  732. end
  733.  
  734. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  735. local NEWPART = IT("Part")
  736. NEWPART.formFactor = FORMFACTOR
  737. NEWPART.Reflectance = REFLECTANCE
  738. NEWPART.Transparency = TRANSPARENCY
  739. NEWPART.CanCollide = false
  740. NEWPART.Locked = true
  741. NEWPART.Anchored = true
  742. if ANCHOR == false then
  743. NEWPART.Anchored = false
  744. end
  745. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  746. NEWPART.Name = NAME
  747. NEWPART.Size = SIZE
  748. NEWPART.Position = Torso.Position
  749. NEWPART.Material = MATERIAL
  750. NEWPART:BreakJoints()
  751. NEWPART.Parent = PARENT
  752. return NEWPART
  753. end
  754.  
  755. local function weldBetween(a, b)
  756. local weldd = Instance.new("ManualWeld")
  757. weldd.Part0 = a
  758. weldd.Part1 = b
  759. weldd.C0 = CFrame.new()
  760. weldd.C1 = b.CFrame:inverse() * a.CFrame
  761. weldd.Parent = a
  762. return weldd
  763. end
  764.  
  765.  
  766. function QuaternionFromCFrame(cf)
  767. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  768. local trace = m00 + m11 + m22
  769. if trace > 0 then
  770. local s = math.sqrt(1 + trace)
  771. local recip = 0.5 / s
  772. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  773. else
  774. local i = 0
  775. if m11 > m00 then
  776. i = 1
  777. end
  778. if m22 > (i == 0 and m00 or m11) then
  779. i = 2
  780. end
  781. if i == 0 then
  782. local s = math.sqrt(m00 - m11 - m22 + 1)
  783. local recip = 0.5 / s
  784. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  785. elseif i == 1 then
  786. local s = math.sqrt(m11 - m22 - m00 + 1)
  787. local recip = 0.5 / s
  788. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  789. elseif i == 2 then
  790. local s = math.sqrt(m22 - m00 - m11 + 1)
  791. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  792. end
  793. end
  794. end
  795.  
  796. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  797. local xs, ys, zs = x + x, y + y, z + z
  798. local wx, wy, wz = w * xs, w * ys, w * zs
  799. local xx = x * xs
  800. local xy = x * ys
  801. local xz = x * zs
  802. local yy = y * ys
  803. local yz = y * zs
  804. local zz = z * zs
  805. 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))
  806. end
  807.  
  808. function QuaternionSlerp(a, b, t)
  809. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  810. local startInterp, finishInterp;
  811. if cosTheta >= 0.0001 then
  812. if (1 - cosTheta) > 0.0001 then
  813. local theta = ACOS(cosTheta)
  814. local invSinTheta = 1 / SIN(theta)
  815. startInterp = SIN((1 - t) * theta) * invSinTheta
  816. finishInterp = SIN(t * theta) * invSinTheta
  817. else
  818. startInterp = 1 - t
  819. finishInterp = t
  820. end
  821. else
  822. if (1 + cosTheta) > 0.0001 then
  823. local theta = ACOS(-cosTheta)
  824. local invSinTheta = 1 / SIN(theta)
  825. startInterp = SIN((t - 1) * theta) * invSinTheta
  826. finishInterp = SIN(t * theta) * invSinTheta
  827. else
  828. startInterp = t - 1
  829. finishInterp = t
  830. end
  831. end
  832. 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
  833. end
  834.  
  835. function Clerp(a, b, t)
  836. local qa = {QuaternionFromCFrame(a)}
  837. local qb = {QuaternionFromCFrame(b)}
  838. local ax, ay, az = a.x, a.y, a.z
  839. local bx, by, bz = b.x, b.y, b.z
  840. local _t = 1 - t
  841. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  842. end
  843.  
  844. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  845. local frame = IT("Frame")
  846. frame.BackgroundTransparency = TRANSPARENCY
  847. frame.BorderSizePixel = BORDERSIZEPIXEL
  848. frame.Position = POSITION
  849. frame.Size = SIZE
  850. frame.BackgroundColor3 = COLOR
  851. frame.BorderColor3 = BORDERCOLOR
  852. frame.Name = NAME
  853. frame.Parent = PARENT
  854. return frame
  855. end
  856.  
  857. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  858. local label = IT("TextLabel")
  859. label.BackgroundTransparency = 1
  860. label.Size = UD2(1, 0, 1, 0)
  861. label.Position = UD2(0, 0, 0, 0)
  862. label.TextColor3 = TEXTCOLOR
  863. label.TextStrokeTransparency = STROKETRANSPARENCY
  864. label.TextTransparency = TRANSPARENCY
  865. label.FontSize = TEXTFONTSIZE
  866. label.Font = TEXTFONT
  867. label.BorderSizePixel = BORDERSIZEPIXEL
  868. label.TextScaled = false
  869. label.Text = TEXT
  870. label.Name = NAME
  871. label.Parent = PARENT
  872. return label
  873. end
  874.  
  875. function NoOutlines(PART)
  876. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  877. end
  878.  
  879. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  880. local NEWWELD = IT(TYPE)
  881. NEWWELD.Part0 = PART0
  882. NEWWELD.Part1 = PART1
  883. NEWWELD.C0 = C0
  884. NEWWELD.C1 = C1
  885. NEWWELD.Parent = PARENT
  886. return NEWWELD
  887. end
  888.  
  889. local S = IT("Sound")
  890. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  891. local NEWSOUND = nil
  892. coroutine.resume(coroutine.create(function()
  893. NEWSOUND = S:Clone()
  894. NEWSOUND.Parent = PARENT
  895. NEWSOUND.Volume = VOLUME
  896. NEWSOUND.Pitch = PITCH
  897. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  898. NEWSOUND:play()
  899. if DOESLOOP == true then
  900. NEWSOUND.Looped = true
  901. else
  902. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  903. NEWSOUND:remove()
  904. end
  905. end))
  906. return NEWSOUND
  907. end
  908.  
  909. function CFrameFromTopBack(at, top, back)
  910. local right = top:Cross(back)
  911. 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)
  912. end
  913.  
  914. --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(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  915. function WACKYEFFECT(Table)
  916. local TYPE = (Table.EffectType or "Sphere")
  917. local SIZE = (Table.Size or VT(1,1,1))
  918. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  919. local TRANSPARENCY = (Table.Transparency or 0)
  920. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  921. local CFRAME = (Table.CFrame or Torso.CFrame)
  922. local MOVEDIRECTION = (Table.MoveToPos or nil)
  923. local ROTATION1 = (Table.RotationX or 0)
  924. local ROTATION2 = (Table.RotationY or 0)
  925. local ROTATION3 = (Table.RotationZ or 0)
  926. local MATERIAL = (Table.Material or "Neon")
  927. local COLOR = (Table.Color or C3(0,0,0))
  928. local TIME = (Table.Time or 45)
  929. local SOUNDID = (Table.SoundID or nil)
  930. local SOUNDPITCH = (Table.SoundPitch or nil)
  931. local SOUNDVOLUME = (Table.SoundVolume or nil)
  932. coroutine.resume(coroutine.create(function()
  933. local PLAYSSOUND = false
  934. local SOUND = nil
  935. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  936. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  937. PLAYSSOUND = true
  938. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  939. end
  940. EFFECT.Color = COLOR
  941. local MSH = nil
  942. if TYPE == "Sphere" then
  943. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  944. elseif TYPE == "Block" then
  945. MSH = IT("BlockMesh",EFFECT)
  946. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  947. elseif TYPE == "Wave" then
  948. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  949. elseif TYPE == "Ring" then
  950. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  951. elseif TYPE == "Slash" then
  952. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  953. elseif TYPE == "Round Slash" then
  954. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  955. elseif TYPE == "Swirl" then
  956. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  957. elseif TYPE == "Skull" then
  958. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  959. elseif TYPE == "Crystal" then
  960. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  961. end
  962. if MSH ~= nil then
  963. local MOVESPEED = nil
  964. if MOVEDIRECTION ~= nil then
  965. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  966. end
  967. local GROWTH = SIZE - ENDSIZE
  968. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  969. if TYPE == "Block" then
  970. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  971. else
  972. EFFECT.CFrame = CFRAME
  973. end
  974. for LOOP = 1, TIME+1 do
  975. Swait()
  976. MSH.Scale = MSH.Scale - GROWTH/TIME
  977. if TYPE == "Wave" then
  978. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  979. end
  980. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  981. if TYPE == "Block" then
  982. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  983. else
  984. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  985. end
  986. if MOVEDIRECTION ~= nil then
  987. local ORI = EFFECT.Orientation
  988. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  989. EFFECT.Orientation = ORI
  990. end
  991. end
  992. if PLAYSSOUND == false then
  993. EFFECT:remove()
  994. else
  995. SOUND.Stopped:Connect(function()
  996. EFFECT:remove()
  997. end)
  998. end
  999. else
  1000. if PLAYSSOUND == false then
  1001. EFFECT:remove()
  1002. else
  1003. repeat Swait() until SOUND.Playing == false
  1004. EFFECT:remove()
  1005. end
  1006. end
  1007. end))
  1008. end
  1009. --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false})
  1010. function Lightning(Table)
  1011. local Color = Table.Color or C3(1,1,1)
  1012. local StartPos = Table.Start or Torso.Position
  1013. local EndPos = Table.End or Mouse.Hit.p
  1014. local SegmentLength = Table.SegmentL or 2
  1015. local Thickness = Table.Thickness or 0.1
  1016. local Dissapear = Table.DoesFade or false
  1017. local Parent = Table.Ignore or Character
  1018. local MaxDist = Table.MaxDist or 400
  1019. local Branches = Table.Branches or false
  1020. local Thicken = Table.Thicken or false
  1021. local FadeTime = Table.FadeTime or 15
  1022. local FadeIn = Table.FadeIn or false
  1023. local Material = Table.Material or "Neon"
  1024. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  1025. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5))
  1026. local LIGHTNINGMODEL = IT("Model",Effects)
  1027. LIGHTNINGMODEL.Name = "Lightning"
  1028. local LastBolt = nil
  1029. for E = 1, DISTANCE do
  1030. local ExtraSize = 0
  1031. if Thicken == true then
  1032. ExtraSize = (DISTANCE-E)/15
  1033. end
  1034. local TRANSPARENCY = 0
  1035. if FadeIn == true then
  1036. TRANSPARENCY = 1-(E/(DISTANCE/1.5))
  1037. if TRANSPARENCY < 0 then
  1038. TRANSPARENCY = 0
  1039. end
  1040. end
  1041. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  1042. PART.Color = Color
  1043. MakeForm(PART,"Cyl")
  1044. if LastBolt == nil then
  1045. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1046. else
  1047. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1048. end
  1049. LastBolt = PART
  1050. if Branches == true and E < (DISTANCE-5) then
  1051. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  1052. if CHOICE == 1 then
  1053. local LASTBRANCH = nil
  1054. for i = 1, MRANDOM(2,5) do
  1055. local ExtraSize2 = 0
  1056. if Thicken == true then
  1057. ExtraSize = ((DISTANCE-E)/25)/i
  1058. end
  1059. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  1060. PART.Color = Color
  1061. MakeForm(PART,"Cyl")
  1062. if LASTBRANCH == nil then
  1063. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1064. else
  1065. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1066. end
  1067. LASTBRANCH = PART
  1068. end
  1069. end
  1070. end
  1071. end
  1072. if Dissapear == true then
  1073. coroutine.resume(coroutine.create(function()
  1074. for i = 1, FadeTime do
  1075. Swait()
  1076. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  1077. if c.ClassName == "Part" then
  1078. c.Transparency = c.Transparency + (i/FadeTime)/10
  1079. end
  1080. end
  1081. end
  1082. LIGHTNINGMODEL:remove()
  1083. end))
  1084. elseif Dissapear == false then
  1085. Debris:AddItem(LIGHTNINGMODEL,0.1)
  1086. end
  1087. return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  1088. end
  1089. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1090. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1091. wave.Color = COLOR
  1092. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1093. wave.CFrame = CFRAME
  1094. coroutine.resume(coroutine.create(function(PART)
  1095. for i = 1, WAIT do
  1096. Swait()
  1097. mesh.Scale = mesh.Scale + GROW
  1098. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1099. if DOESROT == true then
  1100. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1101. end
  1102. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1103. if wave.Transparency > 0.99 then
  1104. wave:remove()
  1105. end
  1106. end
  1107. end))
  1108. end
  1109.  
  1110. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1111. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1112. wave.Color = COLOR
  1113. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  1114. wave.CFrame = CFRAME
  1115. coroutine.resume(coroutine.create(function(PART)
  1116. for i = 1, WAIT do
  1117. Swait()
  1118. mesh.Scale = mesh.Scale + GROW
  1119. wave.Transparency = wave.Transparency + (1/WAIT)
  1120. if wave.Transparency > 0.99 then
  1121. wave:remove()
  1122. end
  1123. end
  1124. end))
  1125. end
  1126. function MakeForm(PART,TYPE)
  1127. if TYPE == "Cyl" then
  1128. local MSH = IT("BlockMesh",PART)
  1129. elseif TYPE == "Ball" then
  1130. local MSH = IT("SpecialMesh",PART)
  1131. MSH.MeshType = "Sphere"
  1132. elseif TYPE == "Cyl2" then
  1133. local MSH = IT("CylinderMesh",PART)
  1134. elseif TYPE == "Wedge" then
  1135. local MSH = IT("SpecialMesh",PART)
  1136. MSH.MeshType = "Wedge"
  1137. end
  1138. end
  1139.  
  1140. function SpawnTrail(FROM,TO,BIG)
  1141. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Light gray", "Trail", VT(0,0,0))
  1142. MakeForm(TRAIL,"Cyl")
  1143. local DIST = (FROM - TO).Magnitude
  1144. if BIG == true then
  1145. TRAIL.Size = VT(0.5,DIST,0.5)
  1146. else
  1147. TRAIL.Size = VT(0.25,DIST,0.25)
  1148. end
  1149. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1150. coroutine.resume(coroutine.create(function()
  1151. for i = 1, 5 do
  1152. Swait()
  1153. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1154. end
  1155. TRAIL:remove()
  1156. end))
  1157. end
  1158.  
  1159. Debris = game:GetService("Debris")
  1160.  
  1161. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1162. local DIRECTION = CF(StartPos,EndPos).lookVector
  1163. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1164. end
  1165.  
  1166. function turnto(position)
  1167. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1168. end
  1169.  
  1170. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1171. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1172. end
  1173.  
  1174. function PositiveAngle(NUMBER)
  1175. if NUMBER >= 0 then
  1176. NUMBER = 0
  1177. end
  1178. return NUMBER
  1179. end
  1180.  
  1181. function NegativeAngle(NUMBER)
  1182. if NUMBER <= 0 then
  1183. NUMBER = 0
  1184. end
  1185. return NUMBER
  1186. end
  1187.  
  1188. function Swait(NUMBER)
  1189. if NUMBER == 0 or NUMBER == nil then
  1190. ArtificialHB.Event:wait()
  1191. else
  1192. for i = 1, NUMBER do
  1193. ArtificialHB.Event:wait()
  1194. end
  1195. end
  1196. end
  1197.  
  1198. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1199. local NEWMESH = IT(MESH)
  1200. if MESH == "SpecialMesh" then
  1201. NEWMESH.MeshType = MESHTYPE
  1202. if MESHID ~= "nil" and MESHID ~= "" then
  1203. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1204. end
  1205. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1206. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1207. end
  1208. end
  1209. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1210. NEWMESH.Scale = SCALE
  1211. NEWMESH.Parent = PARENT
  1212. return NEWMESH
  1213. end
  1214.  
  1215. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1216. local NEWPART = IT("Part")
  1217. NEWPART.formFactor = FORMFACTOR
  1218. NEWPART.Reflectance = REFLECTANCE
  1219. NEWPART.Transparency = TRANSPARENCY
  1220. NEWPART.CanCollide = false
  1221. NEWPART.Locked = true
  1222. NEWPART.Anchored = true
  1223. if ANCHOR == false then
  1224. NEWPART.Anchored = false
  1225. end
  1226. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1227. NEWPART.Name = NAME
  1228. NEWPART.Size = SIZE
  1229. NEWPART.Position = Torso.Position
  1230. NEWPART.Material = MATERIAL
  1231. NEWPART:BreakJoints()
  1232. NEWPART.Parent = PARENT
  1233. return NEWPART
  1234. end
  1235.  
  1236. local function weldBetween(a, b)
  1237. local weldd = IT("Weld")
  1238. weldd.Part0 = a
  1239. weldd.Part1 = b
  1240. weldd.C0 = CF()
  1241. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1242. weldd.Parent = a
  1243. return weldd
  1244. end
  1245.  
  1246.  
  1247. function QuaternionFromCFrame(cf)
  1248. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1249. local trace = m00 + m11 + m22
  1250. if trace > 0 then
  1251. local s = math.sqrt(1 + trace)
  1252. local recip = 0.5 / s
  1253. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1254. else
  1255. local i = 0
  1256. if m11 > m00 then
  1257. i = 1
  1258. end
  1259. if m22 > (i == 0 and m00 or m11) then
  1260. i = 2
  1261. end
  1262. if i == 0 then
  1263. local s = math.sqrt(m00 - m11 - m22 + 1)
  1264. local recip = 0.5 / s
  1265. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1266. elseif i == 1 then
  1267. local s = math.sqrt(m11 - m22 - m00 + 1)
  1268. local recip = 0.5 / s
  1269. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1270. elseif i == 2 then
  1271. local s = math.sqrt(m22 - m00 - m11 + 1)
  1272. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1273. end
  1274. end
  1275. end
  1276.  
  1277. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1278. local xs, ys, zs = x + x, y + y, z + z
  1279. local wx, wy, wz = w * xs, w * ys, w * zs
  1280. local xx = x * xs
  1281. local xy = x * ys
  1282. local xz = x * zs
  1283. local yy = y * ys
  1284. local yz = y * zs
  1285. local zz = z * zs
  1286. 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))
  1287. end
  1288.  
  1289. function QuaternionSlerp(a, b, t)
  1290. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1291. local startInterp, finishInterp;
  1292. if cosTheta >= 0.0001 then
  1293. if (1 - cosTheta) > 0.0001 then
  1294. local theta = ACOS(cosTheta)
  1295. local invSinTheta = 1 / SIN(theta)
  1296. startInterp = SIN((1 - t) * theta) * invSinTheta
  1297. finishInterp = SIN(t * theta) * invSinTheta
  1298. else
  1299. startInterp = 1 - t
  1300. finishInterp = t
  1301. end
  1302. else
  1303. if (1 + cosTheta) > 0.0001 then
  1304. local theta = ACOS(-cosTheta)
  1305. local invSinTheta = 1 / SIN(theta)
  1306. startInterp = SIN((t - 1) * theta) * invSinTheta
  1307. finishInterp = SIN(t * theta) * invSinTheta
  1308. else
  1309. startInterp = t - 1
  1310. finishInterp = t
  1311. end
  1312. end
  1313. 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
  1314. end
  1315.  
  1316. function Clerp(a, b, t)
  1317. local qa = {QuaternionFromCFrame(a)}
  1318. local qb = {QuaternionFromCFrame(b)}
  1319. local ax, ay, az = a.x, a.y, a.z
  1320. local bx, by, bz = b.x, b.y, b.z
  1321. local _t = 1 - t
  1322. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1323. end
  1324.  
  1325. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1326. local frame = IT("Frame")
  1327. frame.BackgroundTransparency = TRANSPARENCY
  1328. frame.BorderSizePixel = BORDERSIZEPIXEL
  1329. frame.Position = POSITION
  1330. frame.Size = SIZE
  1331. frame.BackgroundColor3 = COLOR
  1332. frame.BorderColor3 = BORDERCOLOR
  1333. frame.Name = NAME
  1334. frame.Parent = PARENT
  1335. return frame
  1336. end
  1337.  
  1338. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1339. local label = IT("TextLabel")
  1340. label.BackgroundTransparency = 1
  1341. label.Size = UD2(1, 0, 1, 0)
  1342. label.Position = UD2(0, 0, 0, 0)
  1343. label.TextColor3 = TEXTCOLOR
  1344. label.TextStrokeTransparency = STROKETRANSPARENCY
  1345. label.TextTransparency = TRANSPARENCY
  1346. label.FontSize = TEXTFONTSIZE
  1347. label.Font = TEXTFONT
  1348. label.BorderSizePixel = BORDERSIZEPIXEL
  1349. label.TextScaled = false
  1350. label.Text = TEXT
  1351. label.Name = NAME
  1352. label.Parent = PARENT
  1353. return label
  1354. end
  1355.  
  1356. function NoOutlines(PART)
  1357. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1358. end
  1359.  
  1360. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1361. local NEWWELD = IT(TYPE)
  1362. NEWWELD.Part0 = PART0
  1363. NEWWELD.Part1 = PART1
  1364. NEWWELD.C0 = C0
  1365. NEWWELD.C1 = C1
  1366. NEWWELD.Parent = PARENT
  1367. return NEWWELD
  1368. end
  1369.  
  1370. local S = IT("Sound")
  1371. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1372. local NEWSOUND = nil
  1373. coroutine.resume(coroutine.create(function()
  1374. NEWSOUND = S:Clone()
  1375. NEWSOUND.Parent = PARENT
  1376. NEWSOUND.Volume = VOLUME
  1377. NEWSOUND.Pitch = PITCH
  1378. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1379. NEWSOUND:play()
  1380. if DOESLOOP == true then
  1381. NEWSOUND.Looped = true
  1382. else
  1383. repeat wait(1) until NEWSOUND.Playing == false
  1384. NEWSOUND:remove()
  1385. end
  1386. end))
  1387. return NEWSOUND
  1388. end
  1389.  
  1390. function CFrameFromTopBack(at, top, back)
  1391. local right = top:Cross(back)
  1392. 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)
  1393. end
  1394.  
  1395. --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})
  1396. function WACKYEFFECT(Table)
  1397. local TYPE = (Table.EffectType or "Sphere")
  1398. local SIZE = (Table.Size or VT(1,1,1))
  1399. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1400. local TRANSPARENCY = (Table.Transparency or 0)
  1401. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1402. local CFRAME = (Table.CFrame or Torso.CFrame)
  1403. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1404. local ROTATION1 = (Table.RotationX or 0)
  1405. local ROTATION2 = (Table.RotationY or 0)
  1406. local ROTATION3 = (Table.RotationZ or 0)
  1407. local MATERIAL = (Table.Material or "Neon")
  1408. local COLOR = (Table.Color or C3(1,1,1))
  1409. local TIME = (Table.Time or 45)
  1410. local SOUNDID = (Table.SoundID or nil)
  1411. local SOUNDPITCH = (Table.SoundPitch or nil)
  1412. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1413. coroutine.resume(coroutine.create(function()
  1414. local PLAYSSOUND = false
  1415. local SOUND = nil
  1416. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1417. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1418. PLAYSSOUND = true
  1419. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1420. end
  1421. EFFECT.Color = COLOR
  1422. local MSH = nil
  1423. if TYPE == "Sphere" then
  1424. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1425. elseif TYPE == "Block" then
  1426. MSH = IT("BlockMesh",EFFECT)
  1427. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1428. elseif TYPE == "Wave" then
  1429. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1430. elseif TYPE == "Ring" then
  1431. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1432. elseif TYPE == "Slash" then
  1433. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1434. elseif TYPE == "Round Slash" then
  1435. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1436. elseif TYPE == "Swirl" then
  1437. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1438. elseif TYPE == "Skull" then
  1439. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1440. elseif TYPE == "Crystal" then
  1441. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1442. end
  1443. if MSH ~= nil then
  1444. local MOVESPEED = nil
  1445. if MOVEDIRECTION ~= nil then
  1446. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1447. end
  1448. local GROWTH = SIZE - ENDSIZE
  1449. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1450. if TYPE == "Block" then
  1451. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1452. else
  1453. EFFECT.CFrame = CFRAME
  1454. end
  1455. for LOOP = 1, TIME+1 do
  1456. Swait()
  1457. MSH.Scale = MSH.Scale - GROWTH/TIME
  1458. if TYPE == "Wave" then
  1459. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1460. end
  1461. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1462. if TYPE == "Block" then
  1463. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1464. else
  1465. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1466. end
  1467. if MOVEDIRECTION ~= nil then
  1468. local ORI = EFFECT.Orientation
  1469. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1470. EFFECT.Orientation = ORI
  1471. end
  1472. end
  1473. if PLAYSSOUND == false then
  1474. EFFECT:remove()
  1475. else
  1476. SOUND.Stopped:Connect(function()
  1477. EFFECT:remove()
  1478. end)
  1479. end
  1480. else
  1481. if PLAYSSOUND == false then
  1482. EFFECT:remove()
  1483. else
  1484. repeat Swait() until SOUND.Playing == false
  1485. EFFECT:remove()
  1486. end
  1487. end
  1488. end))
  1489. end
  1490.  
  1491. function MakeForm(PART,TYPE)
  1492. if TYPE == "Cyl" then
  1493. local MSH = IT("CylinderMesh",PART)
  1494. elseif TYPE == "Ball" then
  1495. local MSH = IT("SpecialMesh",PART)
  1496. MSH.MeshType = "Sphere"
  1497. elseif TYPE == "Wedge" then
  1498. local MSH = IT("SpecialMesh",PART)
  1499. MSH.MeshType = "Wedge"
  1500. end
  1501. end
  1502.  
  1503. Debris = game:GetService("Debris")
  1504.  
  1505. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1506. local DIRECTION = CF(StartPos,EndPos).lookVector
  1507. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1508. end
  1509.  
  1510. function turnto(position)
  1511. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1512. end
  1513.  
  1514. function SpawnTrail(FROM,TO,BIG)
  1515. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  1516. MakeForm(TRAIL,"Cyl")
  1517. local DIST = (FROM - TO).Magnitude
  1518. if BIG == true then
  1519. TRAIL.Size = VT(0.5,DIST,0.5)
  1520. else
  1521. TRAIL.Size = VT(0.25,DIST,0.25)
  1522. end
  1523. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1524. coroutine.resume(coroutine.create(function()
  1525. for i = 1, 5 do
  1526. Swait()
  1527. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1528. end
  1529. TRAIL:remove()
  1530. end))
  1531. end
  1532.  
  1533. local asd = Instance.new("ParticleEmitter")
  1534. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  1535. asd.LightEmission = .1
  1536. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1537. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  1538. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1539. asd.Transparency = bbb
  1540. asd.Size = aaa
  1541. asd.ZOffset = .9
  1542. asd.Acceleration = Vector3.new(0, -15, 0)
  1543. asd.LockedToPart = false
  1544. asd.EmissionDirection = "Back"
  1545. asd.Lifetime = NumberRange.new(1, 2)
  1546. asd.Rotation = NumberRange.new(-100, 100)
  1547. asd.RotSpeed = NumberRange.new(-100, 100)
  1548. asd.Speed = NumberRange.new(10)
  1549. asd.Enabled = false
  1550. asd.VelocitySpread = 999
  1551.  
  1552. function getbloody(victim,amount)
  1553. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  1554. PART.CFrame = victim.CFrame
  1555. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1556. Debris:AddItem(PART,5)
  1557. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1558. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1559. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1560. local prtcl = asd:Clone()
  1561. prtcl.Parent = PART
  1562. prtcl:Emit(amount*10)
  1563. end
  1564.  
  1565. local Particle = IT("ParticleEmitter",nil)
  1566. Particle.Enabled = false
  1567. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  1568. Particle.LightEmission = 0.5
  1569. Particle.Rate = 150
  1570. Particle.ZOffset = 1
  1571. Particle.Rotation = NumberRange.new(-180, 180)
  1572. Particle.RotSpeed = NumberRange.new(-180, 180)
  1573. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1574. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  1575.  
  1576. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1577. function ParticleEmitter(Table)
  1578. local PRTCL = Particle:Clone()
  1579. local Speed = Table.Speed or 5
  1580. local Drag = Table.Drag or 0
  1581. local Size1 = Table.Size1 or 1
  1582. local Size2 = Table.Size2 or 5
  1583. local Lifetime1 = Table.Lifetime1 or 1
  1584. local Lifetime2 = Table.Lifetime2 or 1.5
  1585. local Parent = Table.Parent or Torso
  1586. local Emit = Table.Emit or 100
  1587. local Offset = Table.Offset or 360
  1588. local Acel = Table.Acel or VT(0,0,0)
  1589. local Enabled = Table.Enabled or false
  1590. PRTCL.Parent = Parent
  1591. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1592. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1593. PRTCL.Speed = NumberRange.new(Speed)
  1594. PRTCL.VelocitySpread = Offset
  1595. PRTCL.Drag = Drag
  1596. PRTCL.Acceleration = Acel
  1597. if Enabled == false then
  1598. PRTCL:Emit(Emit)
  1599. Debris:AddItem(PRTCL,Lifetime2)
  1600. else
  1601. PRTCL.Enabled = true
  1602. end
  1603. return PRTCL
  1604. end
  1605.  
  1606. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1607. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1608. end
  1609.  
  1610. function PositiveAngle(NUMBER)
  1611. if NUMBER >= 0 then
  1612. NUMBER = 0
  1613. end
  1614. return NUMBER
  1615. end
  1616.  
  1617. function NegativeAngle(NUMBER)
  1618. if NUMBER <= 0 then
  1619. NUMBER = 0
  1620. end
  1621. return NUMBER
  1622. end
  1623.  
  1624. function Swait(NUMBER)
  1625. if NUMBER == 0 or NUMBER == nil then
  1626. ArtificialHB.Event:wait()
  1627. else
  1628. for i = 1, NUMBER do
  1629. ArtificialHB.Event:wait()
  1630. end
  1631. end
  1632. end
  1633.  
  1634. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1635. local NEWMESH = IT(MESH)
  1636. if MESH == "SpecialMesh" then
  1637. NEWMESH.MeshType = MESHTYPE
  1638. if MESHID ~= "nil" and MESHID ~= "" then
  1639. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1640. end
  1641. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1642. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1643. end
  1644. end
  1645. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1646. NEWMESH.Scale = SCALE
  1647. NEWMESH.Parent = PARENT
  1648. return NEWMESH
  1649. end
  1650.  
  1651. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1652. local NEWPART = IT("Part")
  1653. NEWPART.formFactor = FORMFACTOR
  1654. NEWPART.Reflectance = REFLECTANCE
  1655. NEWPART.Transparency = TRANSPARENCY
  1656. NEWPART.CanCollide = false
  1657. NEWPART.Locked = true
  1658. NEWPART.Anchored = true
  1659. if ANCHOR == false then
  1660. NEWPART.Anchored = false
  1661. end
  1662. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1663. NEWPART.Name = NAME
  1664. NEWPART.Size = SIZE
  1665. NEWPART.Position = Torso.Position
  1666. NEWPART.Material = MATERIAL
  1667. NEWPART:BreakJoints()
  1668. NEWPART.Parent = PARENT
  1669. return NEWPART
  1670. end
  1671.  
  1672. local function weldBetween(a, b)
  1673. local weldd = Instance.new("ManualWeld")
  1674. weldd.Part0 = a
  1675. weldd.Part1 = b
  1676. weldd.C0 = CFrame.new()
  1677. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1678. weldd.Parent = a
  1679. return weldd
  1680. end
  1681.  
  1682.  
  1683. function QuaternionFromCFrame(cf)
  1684. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1685. local trace = m00 + m11 + m22
  1686. if trace > 0 then
  1687. local s = math.sqrt(1 + trace)
  1688. local recip = 0.5 / s
  1689. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1690. else
  1691. local i = 0
  1692. if m11 > m00 then
  1693. i = 1
  1694. end
  1695. if m22 > (i == 0 and m00 or m11) then
  1696. i = 2
  1697. end
  1698. if i == 0 then
  1699. local s = math.sqrt(m00 - m11 - m22 + 1)
  1700. local recip = 0.5 / s
  1701. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1702. elseif i == 1 then
  1703. local s = math.sqrt(m11 - m22 - m00 + 1)
  1704. local recip = 0.5 / s
  1705. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1706. elseif i == 2 then
  1707. local s = math.sqrt(m22 - m00 - m11 + 1)
  1708. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1709. end
  1710. end
  1711. end
  1712.  
  1713. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1714. local xs, ys, zs = x + x, y + y, z + z
  1715. local wx, wy, wz = w * xs, w * ys, w * zs
  1716. local xx = x * xs
  1717. local xy = x * ys
  1718. local xz = x * zs
  1719. local yy = y * ys
  1720. local yz = y * zs
  1721. local zz = z * zs
  1722. 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))
  1723. end
  1724.  
  1725. function QuaternionSlerp(a, b, t)
  1726. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1727. local startInterp, finishInterp;
  1728. if cosTheta >= 0.0001 then
  1729. if (1 - cosTheta) > 0.0001 then
  1730. local theta = ACOS(cosTheta)
  1731. local invSinTheta = 1 / SIN(theta)
  1732. startInterp = SIN((1 - t) * theta) * invSinTheta
  1733. finishInterp = SIN(t * theta) * invSinTheta
  1734. else
  1735. startInterp = 1 - t
  1736. finishInterp = t
  1737. end
  1738. else
  1739. if (1 + cosTheta) > 0.0001 then
  1740. local theta = ACOS(-cosTheta)
  1741. local invSinTheta = 1 / SIN(theta)
  1742. startInterp = SIN((t - 1) * theta) * invSinTheta
  1743. finishInterp = SIN(t * theta) * invSinTheta
  1744. else
  1745. startInterp = t - 1
  1746. finishInterp = t
  1747. end
  1748. end
  1749. 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
  1750. end
  1751.  
  1752. function Clerp(a, b, t)
  1753. local qa = {QuaternionFromCFrame(a)}
  1754. local qb = {QuaternionFromCFrame(b)}
  1755. local ax, ay, az = a.x, a.y, a.z
  1756. local bx, by, bz = b.x, b.y, b.z
  1757. local _t = 1 - t
  1758. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1759. end
  1760.  
  1761. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1762. local frame = IT("Frame")
  1763. frame.BackgroundTransparency = TRANSPARENCY
  1764. frame.BorderSizePixel = BORDERSIZEPIXEL
  1765. frame.Position = POSITION
  1766. frame.Size = SIZE
  1767. frame.BackgroundColor3 = COLOR
  1768. frame.BorderColor3 = BORDERCOLOR
  1769. frame.Name = NAME
  1770. frame.Parent = PARENT
  1771. return frame
  1772. end
  1773.  
  1774. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1775. local label = IT("TextLabel")
  1776. label.BackgroundTransparency = 1
  1777. label.Size = UD2(1, 0, 1, 0)
  1778. label.Position = UD2(0, 0, 0, 0)
  1779. label.TextColor3 = TEXTCOLOR
  1780. label.TextStrokeTransparency = STROKETRANSPARENCY
  1781. label.TextTransparency = TRANSPARENCY
  1782. label.FontSize = TEXTFONTSIZE
  1783. label.Font = TEXTFONT
  1784. label.BorderSizePixel = BORDERSIZEPIXEL
  1785. label.TextStrokeColor3 = C3(1,1,1)
  1786. label.TextScaled = false
  1787. label.Text = TEXT
  1788. label.Name = NAME
  1789. label.Parent = PARENT
  1790. return label
  1791. end
  1792.  
  1793. function NoOutlines(PART)
  1794. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1795. end
  1796.  
  1797. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1798. local NEWWELD = IT(TYPE)
  1799. NEWWELD.Part0 = PART0
  1800. NEWWELD.Part1 = PART1
  1801. NEWWELD.C0 = C0
  1802. NEWWELD.C1 = C1
  1803. NEWWELD.Parent = PARENT
  1804. return NEWWELD
  1805. end
  1806.  
  1807. local S = IT("Sound")
  1808. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1809. local NEWSOUND = nil
  1810. coroutine.resume(coroutine.create(function()
  1811. NEWSOUND = S:Clone()
  1812. NEWSOUND.Parent = PARENT
  1813. NEWSOUND.Volume = VOLUME
  1814. NEWSOUND.Pitch = PITCH
  1815. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1816. NEWSOUND:play()
  1817. if DOESLOOP == true then
  1818. NEWSOUND.Looped = true
  1819. else
  1820. repeat wait(1) until NEWSOUND.Playing == false
  1821. NEWSOUND:remove()
  1822. end
  1823. end))
  1824. return NEWSOUND
  1825. end
  1826.  
  1827. function CFrameFromTopBack(at, top, back)
  1828. local right = top:Cross(back)
  1829. 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)
  1830. end
  1831.  
  1832. --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})
  1833. function WACKYEFFECT(Table)
  1834. local TYPE = (Table.EffectType or "Sphere")
  1835. local SIZE = (Table.Size or VT(1,1,1))
  1836. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1837. local TRANSPARENCY = (Table.Transparency or 0)
  1838. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1839. local CFRAME = (Table.CFrame or Torso.CFrame)
  1840. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1841. local ROTATION1 = (Table.RotationX or 0)
  1842. local ROTATION2 = (Table.RotationY or 0)
  1843. local ROTATION3 = (Table.RotationZ or 0)
  1844. local MATERIAL = (Table.Material or "Neon")
  1845. local COLOR = (Table.Color or C3(66/255, 0/255, 127/2551))
  1846. local TIME = (Table.Time or 45)
  1847. local SOUNDID = (Table.SoundID or nil)
  1848. local SOUNDPITCH = (Table.SoundPitch or nil)
  1849. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1850. coroutine.resume(coroutine.create(function()
  1851. local PLAYSSOUND = false
  1852. local SOUND = nil
  1853. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Dark indigo"), "Effect", VT(1,1,1), true)
  1854. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1855. PLAYSSOUND = true
  1856. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1857. end
  1858. EFFECT.Color = COLOR
  1859. local MSH = nil
  1860. if TYPE == "Sphere" then
  1861. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1862. elseif TYPE == "Block" then
  1863. MSH = IT("BlockMesh",EFFECT)
  1864. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1865. elseif TYPE == "Wave" then
  1866. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1867. elseif TYPE == "Ring" then
  1868. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1869. elseif TYPE == "Slash" then
  1870. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1871. elseif TYPE == "Round Slash" then
  1872. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1873. elseif TYPE == "Swirl" then
  1874. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1875. elseif TYPE == "Skull" then
  1876. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1877. elseif TYPE == "Crystal" then
  1878. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1879. end
  1880. if MSH ~= nil then
  1881. local MOVESPEED = nil
  1882. if MOVEDIRECTION ~= nil then
  1883. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1884. end
  1885. local GROWTH = SIZE - ENDSIZE
  1886. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1887. if TYPE == "Block" then
  1888. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1889. else
  1890. EFFECT.CFrame = CFRAME
  1891. end
  1892. for LOOP = 1, TIME+1 do
  1893. Swait()
  1894. MSH.Scale = MSH.Scale - GROWTH/TIME
  1895. if TYPE == "Wave" then
  1896. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1897. end
  1898. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1899. if TYPE == "Block" then
  1900. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1901. else
  1902. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1903. end
  1904. if MOVEDIRECTION ~= nil then
  1905. local ORI = EFFECT.Orientation
  1906. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1907. EFFECT.Orientation = ORI
  1908. end
  1909. end
  1910. if PLAYSSOUND == false then
  1911. EFFECT:remove()
  1912. else
  1913. repeat Swait() until SOUND.Playing == false
  1914. EFFECT:remove()
  1915. end
  1916. else
  1917. if PLAYSSOUND == false then
  1918. EFFECT:remove()
  1919. else
  1920. repeat Swait() until SOUND.Playing == false
  1921. EFFECT:remove()
  1922. end
  1923. end
  1924. end))
  1925. end
  1926.  
  1927. function MakeForm(PART,TYPE)
  1928. if TYPE == "Cyl" then
  1929. local MSH = IT("CylinderMesh",PART)
  1930. elseif TYPE == "Ball" then
  1931. local MSH = IT("SpecialMesh",PART)
  1932. MSH.MeshType = "Sphere"
  1933. elseif TYPE == "Wedge" then
  1934. local MSH = IT("SpecialMesh",PART)
  1935. MSH.MeshType = "Wedge"
  1936. end
  1937. end
  1938.  
  1939. Debris = game:GetService("Debris")
  1940.  
  1941. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1942. local DIRECTION = CF(StartPos,EndPos).lookVector
  1943. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1944. end
  1945.  
  1946. function turnto(position)
  1947. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1948. end
  1949.  
  1950. --//=================================\\
  1951. --|| WEAPON CREATION
  1952. --\\=================================//
  1953.  
  1954. Humanoid.Parent = nil
  1955. RootPart.Size = RootPart.Size*SIZE
  1956. Torso.Size = Torso.Size*SIZE
  1957. RightArm.Size = RightArm.Size*SIZE
  1958. RightLeg.Size = RightLeg.Size*SIZE
  1959. LeftArm.Size = LeftArm.Size*SIZE
  1960. LeftLeg.Size = LeftLeg.Size*SIZE
  1961. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  1962. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  1963. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1964. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1965. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  1966. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  1967. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1968. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1969. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1970. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1971. Head.Size = Head.Size*SIZE
  1972. RootJoint.Parent = RootPart
  1973. Neck.Parent = Torso
  1974. RightShoulder.Parent = Torso
  1975. LeftShoulder.Parent = Torso
  1976. RightHip.Parent = Torso
  1977. LeftHip.Parent = Torso
  1978.  
  1979. Humanoid.DisplayDistanceType = "None"
  1980. local naeeym2 = IT("BillboardGui",Character)
  1981. naeeym2.AlwaysOnTop = true
  1982. naeeym2.Size = UDim2.new(5,35,2,15)
  1983. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1984. naeeym2.MaxDistance = 75
  1985. naeeym2.Adornee = Character.Head
  1986. naeeym2.Name = "Name"
  1987. local tecks2 = IT("TextLabel",naeeym2)
  1988. tecks2.BackgroundTransparency = 1
  1989. tecks2.TextScaled = true
  1990. tecks2.BorderSizePixel = 0
  1991. tecks2.Text = "Ruler of Space Time"
  1992. tecks2.Font = "Fantasy"
  1993. tecks2.TextSize = 30
  1994. tecks2.TextStrokeTransparency = 0
  1995. tecks2.TextColor3 = C3(0,0,0)
  1996. tecks2.TextStrokeColor3 = C3(9, 137, 207)
  1997. tecks2.Size = UDim2.new(1,0,0.5,0)
  1998. tecks2.Parent = naeeym2
  1999. local top = Instance.new("Shirt")
  2000. top.ShirtTemplate = "rbxassetid://522935841"
  2001. top.Parent = Character
  2002. top.Name = "Cloth"
  2003. local bottom = Instance.new("Pants")
  2004. bottom.PantsTemplate = "rbxassetid://129459076"
  2005. bottom.Parent = Character
  2006. bottom.Name = "Cloth"
  2007.  
  2008. local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
  2009. PRT.Color = C3(0,0,0)
  2010. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  2011. CreateMesh("SpecialMesh", PRT, "FileMesh", "", "", VT(1,1,1)*SIZE, VT(0,0,0))
  2012. PRT.Transparency = 1
  2013. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  2014. PRT.Color = C3(0,0,0)
  2015. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  2016. CreateMesh("SpecialMesh", PRT, "FileMesh", "636922328", "1311982132", VT(0.06,0.06,0.06)*SIZE, VT(0,0.08,1))
  2017. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
  2018. PRT.Color = C3(255/255, 0/255, 0/255)
  2019. MakeForm(PRT,"Ball")
  2020. PRT.Transparency = 1
  2021. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  2022. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
  2023. PRT.Transparency = 1
  2024. PRT.Color = C3(255/255, 255/255, 0/255)
  2025. MakeForm(PRT,"Ball")
  2026. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  2027. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  2028. PRT.Transparency = 1
  2029. PRT.Color = C3(255/255, 255/255, 0/255)
  2030. MakeForm(PRT,"Ball")
  2031. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  2032. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  2033. PRT.Color = C3(255/255, 255/255, 0/255)
  2034. MakeForm(PRT,"Ball")
  2035. PRT.Transparency = 1
  2036.  
  2037. local Aura = Instance.new('ParticleEmitter')
  2038. Aura.Name = "Aura"
  2039. Aura.Texture = "rbxassetid://"
  2040. Aura.Parent = PRT
  2041. Aura.LightEmission = 0.3
  2042. Aura.Transparency = NumberSequence.new(0,0.6,1)
  2043. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(255/255, 0/255, 0/255))
  2044. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  2045. Aura.LockedToPart = false
  2046. Aura.Lifetime = NumberRange.new(2)
  2047. Aura.Rate = 30
  2048. Aura.Speed = NumberRange.new(1)
  2049. Aura.EmissionDirection = "Top"
  2050. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  2051.  
  2052. local Particle = IT("ParticleEmitter",nil)
  2053. Particle.Enabled = false
  2054. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  2055. Particle.LightEmission = 0.5
  2056. Particle.Rate = 150
  2057. Particle.ZOffset = 0.2
  2058. Particle.Rotation = NumberRange.new(-180, 180)
  2059. Particle.RotSpeed = NumberRange.new(-180, 180)
  2060. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  2061. Particle.Color = ColorSequence.new(C3(0,0,0),C3(0,0,0))
  2062.  
  2063. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  2064. function ParticleEmitter(Table)
  2065. local PRTCL = Particle:Clone()
  2066. local Speed = Table.Speed or 5
  2067. local Drag = Table.Drag or 0
  2068. local Size1 = Table.Size1 or 1
  2069. local Size2 = Table.Size2 or 5
  2070. local Lifetime1 = Table.Lifetime1 or 1
  2071. local Lifetime2 = Table.Lifetime2 or 1.5
  2072. local Parent = Table.Parent or Torso
  2073. local Emit = Table.Emit or 100
  2074. local Offset = Table.Offset or 360
  2075. local Acel = Table.Acel or VT(0,0,0)
  2076. local Enabled = Table.Enabled or false
  2077. PRTCL.Parent = Parent
  2078. PRTCL.Size = NumberSequence.new(Size1,Size2)
  2079. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  2080. PRTCL.Speed = NumberRange.new(Speed)
  2081. PRTCL.VelocitySpread = Offset
  2082. PRTCL.Drag = Drag
  2083. PRTCL.Acceleration = Acel
  2084. if Enabled == false then
  2085. PRTCL:Emit(Emit)
  2086. Debris:AddItem(PRTCL,Lifetime2)
  2087. else
  2088. PRTCL.Enabled = true
  2089. end
  2090. return PRTCL
  2091. end
  2092.  
  2093.  
  2094. local Handle = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.6,0.2),false)
  2095. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  2096. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.5,0.2),false)
  2097. MakeForm(Part,"Wedge")
  2098. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  2099. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.3,0.2),false)
  2100. MakeForm(Part,"Wedge")
  2101. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  2102. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.3,0.3,0.3),false)
  2103. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2104. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.3,0.5,0.5),false)
  2105. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2106. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.4,0.4,0.4),false)
  2107. MakeForm(Part,"Cyl")
  2108. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2109. for i = 1, 8 do
  2110. local Piece = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Eye", VT(0,0.35,0.41),false)
  2111. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  2112. end
  2113. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Eye", VT(0.38,0.41,0.38),false)
  2114. MakeForm(Part,"Cyl")
  2115. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2116. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.37,0.5,0.37),false)
  2117. MakeForm(Part,"Ball")
  2118. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2119. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.7,0.4),false)
  2120. MakeForm(Part,"Wedge")
  2121. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  2122. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.3,0.4,0.2),false)
  2123. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2124. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.35,0.35,0.35),false)
  2125. MakeForm(Part,"Cyl")
  2126. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2127. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.5,0.1,0.5),false)
  2128. MakeForm(Part,"Cyl")
  2129. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2130. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.5,0.1,0.45),false)
  2131. MakeForm(Part,"Cyl")
  2132. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2133. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.5,0.2),false)
  2134. MakeForm(Part,"Wedge")
  2135. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  2136. local LASTPART = Handle
  2137. for i = 1, 10 do
  2138. if LASTPART == Handle then
  2139. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.1,0.2,0),false)
  2140. LASTPART = Part
  2141. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2142. else
  2143. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.1,0.05,0),false)
  2144. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  2145. LASTPART = Part
  2146. end
  2147. end
  2148.  
  2149. local Barrel = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.15,2,0.15),false)
  2150. MakeForm(Barrel,"Cyl")
  2151. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2152. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.25,1,0.25),false)
  2153. MakeForm(Part,"Cyl")
  2154. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  2155. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0,0.1,0.2),false)
  2156. MakeForm(Part,"Wedge")
  2157. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  2158. local Hole = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Eye", VT(0.125,0,0.125),false)
  2159. MakeForm(Hole,"Cyl")
  2160. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  2161. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0,0,0),false)
  2162. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  2163. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  2164. local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0.5, "Light gray", "Eye", VT(0,0,0),false)
  2165. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  2166. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  2167. coroutine.resume(coroutine.create(function()
  2168. while wait() do
  2169. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  2170. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  2171. end
  2172. end))
  2173.  
  2174. 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)})
  2175. --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)})
  2176.  
  2177. for _, c in pairs(Weapon:GetDescendants()) do
  2178. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  2179. c.Material = "Glass"
  2180. c.Color = C3(0,0,0)
  2181. elseif c.ClassName == "Part" and c.Name == "Eye" then
  2182. c.Color = C3(0,0,0)
  2183. c.Material = "Neon"
  2184. end
  2185. end
  2186.  
  2187. Weapon.Parent = Character
  2188. for _, c in pairs(Weapon:GetChildren()) do
  2189. if c.ClassName == "Part" then
  2190. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2191. end
  2192. end
  2193.  
  2194. local BODY = {}
  2195. for _, c in pairs(Character:GetDescendants()) do
  2196. if c:IsA("BasePart") and c.Name ~= "Handle" then
  2197. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  2198. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2199. end
  2200. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  2201. elseif c:IsA("JointInstance") then
  2202. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  2203. end
  2204. end
  2205. for e = 1, #BODY do
  2206. if BODY[e] ~= nil then
  2207. local STUFF = BODY[e]
  2208. local PART = STUFF[1]
  2209. local PARENT = STUFF[2]
  2210. local MATERIAL = STUFF[3]
  2211. local COLOR = STUFF[4]
  2212. local TRANSPARENCY = STUFF[5]
  2213. if PART.ClassName == "Part" and PART ~= RootPart then
  2214. PART.Material = MATERIAL
  2215. PART.Color = COLOR
  2216. PART.Transparency = TRANSPARENCY
  2217. end
  2218. PART.AncestryChanged:Connect(function()
  2219. PART.Parent = PARENT
  2220. end)
  2221. end
  2222. end
  2223.  
  2224. Humanoid.Died:connect(function()
  2225. Humanoid.Parent = nil
  2226. Humanoid.MaxHealth = "inf"
  2227. Humanoid.Health = "inf"
  2228. refit()
  2229. Humanoid.Parent = Character
  2230. CreateSound("907330011", Head, 10, 1.2)
  2231. end)
  2232.  
  2233. local LASTPART = Head
  2234. for i = 1, 24 do
  2235. local MATH = (1-(i/30))
  2236. if LASTPART == Head then
  2237.  
  2238. local Aura = Instance.new('ParticleEmitter')
  2239. Aura.Name = "Aura"
  2240. Aura.Texture = "rbxassetid://"
  2241. Aura.Parent = Horn
  2242. Aura.LightEmission = 0.8
  2243. Aura.Transparency = NumberSequence.new(0,0.6,1)
  2244. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
  2245. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  2246. Aura.LockedToPart = true
  2247. Aura.Lifetime = NumberRange.new(2)
  2248. Aura.Rate = 25
  2249. Aura.Speed = NumberRange.new(0.1)
  2250. Aura.EmissionDirection = "Top"
  2251. else
  2252.  
  2253. local Aura = Instance.new('ParticleEmitter')
  2254. Aura.Name = "Aura"
  2255. Aura.Texture = "rbxassetid://"
  2256. Aura.Parent = Horn
  2257. Aura.LightEmission = 0.8
  2258. Aura.Transparency = NumberSequence.new(0,0.6,1)
  2259. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
  2260. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  2261. Aura.LockedToPart = true
  2262. Aura.Lifetime = NumberRange.new(2)
  2263. Aura.Rate = 25
  2264. Aura.Speed = NumberRange.new(0.1)
  2265. Aura.EmissionDirection = "Top"
  2266. end
  2267. end
  2268. local LASTPART = Head
  2269. for i = 1, 24 do
  2270. local MATH = (1-(i/30))
  2271. if LASTPART == Head then
  2272.  
  2273. local Aura = Instance.new('ParticleEmitter')
  2274. Aura.Name = "Aura"
  2275. Aura.Texture = "rbxassetid://"
  2276. Aura.LightEmission = 0.8
  2277. Aura.Transparency = NumberSequence.new(0,0.6,1)
  2278. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
  2279. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  2280. Aura.LockedToPart = true
  2281. Aura.Lifetime = NumberRange.new(2)
  2282. Aura.Rate = 25
  2283. Aura.Speed = NumberRange.new(0.1)
  2284. Aura.EmissionDirection = "Top"
  2285. else
  2286. Aura.Name = "Aura"
  2287. Aura.Texture = "rbxassetid://"
  2288. Aura.LightEmission = 0.8
  2289. Aura.Transparency = NumberSequence.new(0,0.6,1)
  2290. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
  2291. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  2292. Aura.LockedToPart = true
  2293. Aura.Lifetime = NumberRange.new(2)
  2294. Aura.Rate = 25
  2295. Aura.Speed = NumberRange.new(0.1)
  2296. Aura.EmissionDirection = "Top"
  2297. end
  2298. end
  2299. local LASTPART = Head
  2300. for i = 1, 8 do
  2301. local MATH = (1-(i/14))
  2302. if LASTPART == Head then
  2303.  
  2304. local Aura = Instance.new('ParticleEmitter')
  2305. Aura.Name = "Aura"
  2306. Aura.Texture = "rbxassetid://"
  2307. Aura.LightEmission = 0.8
  2308. Aura.Transparency = NumberSequence.new(0,0.6,1)
  2309. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
  2310. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  2311. Aura.LockedToPart = true
  2312. Aura.Lifetime = NumberRange.new(2)
  2313. Aura.Rate = 25
  2314. Aura.Speed = NumberRange.new(0.1)
  2315. Aura.EmissionDirection = "Top"
  2316. else
  2317.  
  2318. local Aura = Instance.new('ParticleEmitter')
  2319. Aura.Name = "Aura"
  2320. Aura.Texture = "rbxassetid://"
  2321. Aura.Parent = Horn
  2322. Aura.LightEmission = 0.8
  2323. Aura.Transparency = NumberSequence.new(0,0.6,1)
  2324. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
  2325. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  2326. Aura.LockedToPart = true
  2327. Aura.Lifetime = NumberRange.new(2)
  2328. Aura.Rate = 25
  2329. Aura.Speed = NumberRange.new(0.1)
  2330. Aura.EmissionDirection = "Top"
  2331. end
  2332. end
  2333. local LASTPART = Head
  2334. for i = 1, 8 do
  2335. local MATH = (1-(i/14))
  2336. if LASTPART == Head then
  2337. local Aura = Instance.new('ParticleEmitter')
  2338. Aura.Name = "Aura"
  2339. Aura.Texture = "rbxassetid://"
  2340. Aura.Parent = Horn
  2341. Aura.LightEmission = 0.8
  2342. Aura.Transparency = NumberSequence.new(0,0.6,1)
  2343. Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255))
  2344. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  2345. Aura.LockedToPart = true
  2346. Aura.Lifetime = NumberRange.new(2)
  2347. Aura.Rate = 25
  2348. Aura.Speed = NumberRange.new(0.1)
  2349. Aura.EmissionDirection = "Top"
  2350. else
  2351. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  2352. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  2353. LASTPART = Horn
  2354. Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255)
  2355. local Aura = Instance.new('ParticleEmitter')
  2356. Aura.Name = "Aura"
  2357. Aura.Texture = "rbxassetid://"
  2358. Aura.Parent = Horn
  2359. Aura.LightEmission = 0.8
  2360. Aura.Transparency = NumberSequence.new(0,0.6,1)
  2361. Aura.Color = ColorSequence.new(Color3.new(255255/255, 255/255, 255/),Color3.new(0/255, 0/255, 0/255))
  2362. Aura.Size = NumberSequence.new(0.3,0.2,0.1)
  2363. Aura.LockedToPart = true
  2364. Aura.Lifetime = NumberRange.new(2)
  2365. Aura.Rate = 25
  2366. Aura.Speed = NumberRange.new(0.1)
  2367. Aura.EmissionDirection = "Top"
  2368. end
  2369. end
  2370. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
  2371. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2372. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
  2373. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  2374. MakeForm(PRT,"Cyl")
  2375. local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
  2376. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  2377. MakeForm(PRT,"Cyl")
  2378. PRT.Color = C3(98, 37, 209)
  2379. local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
  2380. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  2381. MakeForm(RING,"Cyl")
  2382. RING.Color = C3(0,0,0)
  2383. for i = 1, 12 do
  2384. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
  2385. PRT.Color = C3(0,0,0)
  2386. local MSH = IT("BlockMesh",PRT)
  2387. MSH.Scale = VT(0.6,1,1)
  2388. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
  2389. end
  2390. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
  2391. PRT.Color = C3(0,0,0)
  2392. local MSH = IT("BlockMesh",PRT)
  2393. MSH.Scale = VT(0.4,1,1)
  2394. local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
  2395. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
  2396. PRT.Color = C3(0,0,0)
  2397. local MSH = IT("BlockMesh",PRT)
  2398. MSH.Scale = VT(0.4,1,1)
  2399. local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
  2400. coroutine.resume(coroutine.create(function()
  2401. while true do
  2402. Swait()
  2403. CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
  2404. WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
  2405. WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
  2406. if CLOCKLOOP <= -150 then
  2407. if VALUE1 == false then
  2408. CLOCKLOOP = 0
  2409. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0, 0, 255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 1})
  2410. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  2411. ApplyAoE(HITPOS,10,15,45,75,true)
  2412. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0, 0, 255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4})
  2413. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0, 0, 255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4})
  2414. if CLOCKTARGET ~= nil then
  2415. CLOCKTARGET.Health = CLOCKTARGET.Health - 20
  2416. if CLOCKTARGET.Torso ~= nil then
  2417. CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  2418. end
  2419. if CLOCKTARGET.Health == 0 then
  2420. CLOCKTARGET = nil
  2421. end
  2422. end
  2423. end
  2424. end
  2425. end
  2426. end))
  2427.  
  2428. for _, c in pairs(Weapon:GetChildren()) do
  2429. if c.ClassName == "Part" then
  2430. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2431. end
  2432. end
  2433.  
  2434. Neck.Name = "Weld"
  2435. RootJoint.Name = "Weld"
  2436. RightShoulder.Name = "Weld"
  2437. LeftShoulder.Name = "Weld"
  2438. RightHip.Name = "Weld"
  2439. LeftHip.Name = "Weld"
  2440.  
  2441. local BODY = {}
  2442. for _, c in pairs(Character:GetDescendants()) do
  2443. if c:IsA("BasePart") and c.Name ~= "Handle" then
  2444. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  2445. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2446. end
  2447. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  2448. elseif c:IsA("JointInstance") then
  2449. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  2450. end
  2451. end
  2452. for e = 1, #BODY do
  2453. if BODY[e] ~= nil then
  2454. local STUFF = BODY[e]
  2455. local PART = STUFF[1]
  2456. local PARENT = STUFF[2]
  2457. local MATERIAL = STUFF[3]
  2458. local COLOR = STUFF[4]
  2459. local TRANSPARENCY = STUFF[5]
  2460. if PART.ClassName == "Part" and PART ~= RootPart then
  2461. PART.Material = MATERIAL
  2462. PART.Color = COLOR
  2463. PART.Transparency = TRANSPARENCY
  2464. end
  2465. PART.AncestryChanged:Connect(function()
  2466. PART.Parent = PARENT
  2467. end)
  2468. end
  2469. end
  2470.  
  2471. function refit()
  2472. Character.Parent = workspace
  2473. for e = 1, #BODY do
  2474. if BODY[e] ~= nil then
  2475. local STUFF = BODY[e]
  2476. local PART = STUFF[1]
  2477. local PARENT = STUFF[2]
  2478. local MATERIAL = STUFF[3]
  2479. local COLOR = STUFF[4]
  2480. local TRANSPARENCY = STUFF[5]
  2481. if PART.ClassName == "Part" and PART ~= RootPart then
  2482. PART.Material = MATERIAL
  2483. PART.Color = COLOR
  2484. PART.Transparency = TRANSPARENCY
  2485. end
  2486. if PART.Parent ~= PARENT then
  2487. Humanoid:remove()
  2488. PART.Parent = PARENT
  2489. Humanoid = IT("Humanoid",Character)
  2490. end
  2491. end
  2492. end
  2493. end
  2494. local SKILLTEXTCOLOR = C3(255/255, 255/255, 0/255)
  2495. local SKILLFONT = "Fantasy"
  2496. local SKILLTEXTSIZE = 7
  2497.  
  2498. Weapon.Parent = Character
  2499. Humanoid.Parent = Character
  2500.  
  2501. Humanoid.Died:connect(function()
  2502. Humanoid.Parent = nil
  2503. Humanoid.MaxHealth = "inf"
  2504. Humanoid.Health = "inf"
  2505. refit()
  2506. Humanoid.Parent = Character
  2507. CreateSound("907330011", Head, 10, 1.2)
  2508. end)
  2509.  
  2510. 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")
  2511. 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")
  2512. 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")
  2513. 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")
  2514. 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")
  2515. local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  2516. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.100, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  2517. local SKILL9FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.475, 0, 0.100, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 9 Frame")
  2518. local SKILL10FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.225, 0, 0.100, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 10 Frame")
  2519.  
  2520. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Time Spikes", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 1")
  2521. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Time Stop", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 2")
  2522. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Space's Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  2523. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Time Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  2524. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Red Star", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0, "Text 5")
  2525. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[R] Time Blast", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
  2526. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[F] Ultimate Blast", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 6")
  2527. local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[Q] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 9")
  2528. local SKILL10TEXT = CreateLabel(SKILL10FRAME, "[E] God Mode", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 10")
  2529.  
  2530. function printbye(Name)
  2531. 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, "}
  2532. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  2533. end
  2534.  
  2535. workspace.ChildAdded:connect(function(instance)
  2536. for BANISH = 1, #TOBANISH do
  2537. if TOBANISH[BANISH] ~= nil then
  2538. if instance.Name == TOBANISH[BANISH] then
  2539. coroutine.resume(coroutine.create(function()
  2540. printbye(instance.Name)
  2541. instance:ClearAllChildren()
  2542. Debris:AddItem(instance,0.0005)
  2543. end))
  2544. end
  2545. end
  2546. end
  2547. end)
  2548.  
  2549.  
  2550. --//=================================\\
  2551. --|| DAMAGING
  2552. --\\=================================//
  2553.  
  2554. function Kill(Foe)
  2555. if Foe then
  2556. coroutine.resume(coroutine.create(function()
  2557. --if game.Players:FindFirstChild(Foe.Name) then
  2558. table.insert(TOBANISH,Foe.Name)
  2559. printbye(Foe.Name)
  2560. --end
  2561. Foe.Archivable = true
  2562. local CLONE = Foe:Clone()
  2563. Foe:Destroy()
  2564. CLONE.Parent = Effects
  2565. CLONE:BreakJoints()
  2566. local MATERIALS = {"Glass","Neon"}
  2567. for _, c in pairs(CLONE:GetDescendants()) do
  2568. if c:IsA("BasePart") then
  2569. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  2570. CreateSound(340722848, c, 10, 1, false)
  2571. end
  2572. c.Anchored = true
  2573. c.Transparency = c.Transparency + 0.2
  2574. c.Material = MATERIALS[MRANDOM(1,2)]
  2575. c.Color = C3(0,0,0)
  2576. if c.ClassName == "MeshPart" then
  2577. c.TextureID = ""
  2578. end
  2579. if c:FindFirstChildOfClass("SpecialMesh") then
  2580. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2581. end
  2582. if c:FindFirstChildOfClass("Decal") then
  2583. c:FindFirstChildOfClass("Decal"):remove()
  2584. end
  2585. c.Name = "Banished"
  2586. c.CanCollide = false
  2587. else
  2588. c:remove()
  2589. end
  2590. end
  2591. local A = false
  2592. for i = 1, 35 do
  2593. if A == false then
  2594. A = true
  2595. elseif A == true then
  2596. A = false
  2597. end
  2598. for _, c in pairs(CLONE:GetDescendants()) do
  2599. if c:IsA("BasePart") then
  2600. c.Anchored = true
  2601. c.Material = MATERIALS[MRANDOM(1,2)]
  2602. c.Transparency = c.Transparency + 0.8/35
  2603. if A == false then
  2604. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2605. elseif A == true then
  2606. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2607. end
  2608. end
  2609. end
  2610. Swait()
  2611. end
  2612. CLONE:remove()
  2613. end))
  2614. end
  2615. end
  2616.  
  2617. local asd = Instance.new("ParticleEmitter")
  2618. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  2619. asd.LightEmission = .1
  2620. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  2621. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  2622. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  2623. asd.Transparency = bbb
  2624. asd.Size = aaa
  2625. asd.ZOffset = .9
  2626. asd.Acceleration = Vector3.new(0, -15, 0)
  2627. asd.LockedToPart = false
  2628. asd.EmissionDirection = "Back"
  2629. asd.Lifetime = NumberRange.new(1, 2)
  2630. asd.Rotation = NumberRange.new(-100, 100)
  2631. asd.RotSpeed = NumberRange.new(-100, 100)
  2632. asd.Speed = NumberRange.new(10)
  2633. asd.Enabled = false
  2634. asd.VelocitySpread = 999
  2635. function getbloody(victim,amount)
  2636. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  2637. PART.CFrame = victim.CFrame
  2638. local HITPLAYERSOUNDS = {"356551938","264486467"}
  2639. Debris:AddItem(PART,5)
  2640. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  2641. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  2642. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  2643. local prtcl = asd:Clone()
  2644. prtcl.Parent = PART
  2645. prtcl:Emit(amount*10)
  2646. end
  2647. function Banish(Char)
  2648. local NewCharacter = Instance.new("Model",Effects)
  2649. NewCharacter.Name = "Ow im ded ;-;"
  2650. for _, c in pairs(Char:GetDescendants()) do
  2651. if c:IsA("BasePart") and c.Transparency == 0 then
  2652. if c.Parent == Char then
  2653. getbloody(c,5)
  2654. end
  2655. c:BreakJoints()
  2656. c.Material = "Glass"
  2657. c.Color = C3(0.5,0,0)
  2658. c.CanCollide = true
  2659. c.Transparency = 0.3
  2660. if c:FindFirstChildOfClass("SpecialMesh") then
  2661. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2662. end
  2663. if c.Name == "Head" then
  2664. c:ClearAllChildren()
  2665. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  2666. end
  2667. if c.ClassName == "MeshPart" then
  2668. c.TextureID = ""
  2669. end
  2670. if c:FindFirstChildOfClass("BodyPosition") then
  2671. c:FindFirstChildOfClass("BodyPosition"):remove()
  2672. end
  2673. if c:FindFirstChildOfClass("ParticleEmitter") then
  2674. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2675. end
  2676. c.Parent = NewCharacter
  2677. c.Name = "DeadPart"
  2678. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  2679. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  2680. end
  2681. end
  2682. Char:remove()
  2683. Debris:AddItem(NewCharacter,5)
  2684. end
  2685.  
  2686. function ApplyAoE(POSITION,RANGE,ISBANISH)
  2687. local CHILDREN = workspace:GetDescendants()
  2688. for index, CHILD in pairs(CHILDREN) do
  2689. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2690. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2691. if HUM then
  2692. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2693. if TORSO then
  2694. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2695. if ISBANISH == true then
  2696. Banish(CHILD)
  2697. else
  2698. if ISBANISH == "Gravity" then
  2699. HUM.PlatformStand = true
  2700. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  2701. local grav = Instance.new("BodyPosition",TORSO)
  2702. grav.D = 15
  2703. grav.P = 20000
  2704. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2705. grav.position = TORSO.Position
  2706. grav.Name = "V3BanishForce"..Player.Name
  2707. else
  2708. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  2709. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  2710. end
  2711. else
  2712. HUM.PlatformStand = false
  2713. end
  2714. end
  2715. elseif ISBANISH == "Gravity" then
  2716. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  2717. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  2718. HUM.PlatformStand = false
  2719. end
  2720. end
  2721. end
  2722. end
  2723. end
  2724. end
  2725. end
  2726. function ApplyKill(POSITION,RANGE,BRUTAL)
  2727. local CHILDREN = workspace:GetDescendants()
  2728. for index, CHILD in pairs(CHILDREN) do
  2729. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2730. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2731. if HUM then
  2732. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2733. if TORSO then
  2734. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2735. if BRUTAL == true then
  2736. Banish(CHILD)
  2737. else
  2738. CHILD:BreakJoints()
  2739. end
  2740. end
  2741. end
  2742. end
  2743. end
  2744. end
  2745. end
  2746.  
  2747. function ApplyDamage(Humanoid,Damage)
  2748. Damage = Damage * DAMAGEMULTIPLIER
  2749. if Humanoid.Health ~= 0 then
  2750. Humanoid.Health = Humanoid.Health - Damage
  2751. end
  2752. end
  2753.  
  2754. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL,OPTION)
  2755. local CHILDREN = workspace:GetDescendants()
  2756. for index, CHILD in pairs(CHILDREN) do
  2757. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2758. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2759. if HUM then
  2760. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2761. if TORSO then
  2762. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2763. if INSTAKILL == true then
  2764. CHILD:BreakJoints()
  2765. if OPTION ~= nil then
  2766. Kill(CHILD,OPTION)
  2767. end
  2768. else
  2769. local DMG = MRANDOM(MINDMG,MAXDMG)
  2770. ApplyDamage(HUM,DMG)
  2771. end
  2772. if FLING ~= 0 then
  2773. for _, c in pairs(CHILD:GetChildren()) do
  2774. if c:IsA("BasePart") then
  2775. local bv = Instance.new("BodyVelocity")
  2776. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2777. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2778. bv.Parent = c
  2779. Debris:AddItem(bv,0.05)
  2780. end
  2781. end
  2782. end
  2783. end
  2784. end
  2785. end
  2786. end
  2787. end
  2788. end
  2789.  
  2790. function Kill(Victim,Fire)
  2791. coroutine.resume(coroutine.create(function()
  2792. local NIL = script.TotalNil:Clone()
  2793. NIL.Parent = Victim
  2794. NIL.Disabled = false
  2795. if Fire ~= true then
  2796. Victim:BreakJoints()
  2797. for _, c in pairs(Victim:GetChildren()) do
  2798. if c:IsA("BasePart") then
  2799. c.Anchored = true
  2800. end
  2801. end
  2802. for _, c in pairs(Victim:GetChildren()) do
  2803. if c:IsA("BasePart") then
  2804. Shatter(c)
  2805. end
  2806. end
  2807. else
  2808. Victim:BreakJoints()
  2809. local FIRES = {}
  2810. for _, e in pairs(Victim:GetDescendants()) do
  2811. if e:IsA("BasePart") and e.Name ~= "HumanoidRootPart" and e.Parent.ClassName ~= "Folder" then
  2812. e.Transparency = 1
  2813. e:ClearAllChildren()
  2814. local FIRE = script.HellFire:Clone()
  2815. FIRE.Parent = e
  2816. FIRE.Enabled = true
  2817. table.insert(FIRES,FIRE)
  2818. elseif e.ClassName == "Decal" then
  2819. e:remove()
  2820. end
  2821. end
  2822. for i = 1, 50 do
  2823. Victim:BreakJoints()
  2824. wait()
  2825. end
  2826. for i = 1, #FIRES do
  2827. FIRES[i].Enabled = false
  2828. end
  2829. wait(1.1)
  2830. Victim:remove()
  2831. end
  2832. end))
  2833. end
  2834.  
  2835. --//=================================\\
  2836. --|| ATTACK FUNCTIONS AND STUFF
  2837. --\\=================================//
  2838.  
  2839. function Kill(Foe)
  2840. if Foe then
  2841. coroutine.resume(coroutine.create(function()
  2842. --if game.Players:FindFirstChild(Foe.Name) then
  2843. table.insert(TOBANISH,Foe.Name)
  2844. printbye(Foe.Name)
  2845. --end
  2846. Foe.Archivable = true
  2847. local CLONE = Foe:Clone()
  2848. Foe:Destroy()
  2849. CLONE.Parent = Effects
  2850. CLONE:BreakJoints()
  2851. local MATERIALS = {"Glass","Neon"}
  2852. for _, c in pairs(CLONE:GetDescendants()) do
  2853. if c:IsA("BasePart") then
  2854. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  2855. CreateSound(340722848, c, 10, 1, false)
  2856. end
  2857. c.Anchored = true
  2858. c.Transparency = c.Transparency + 0.2
  2859. c.Material = MATERIALS[MRANDOM(1,2)]
  2860. c.Color = C3(0,0,0)
  2861. if c.ClassName == "MeshPart" then
  2862. c.TextureID = ""
  2863. end
  2864. if c:FindFirstChildOfClass("SpecialMesh") then
  2865. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2866. end
  2867. if c:FindFirstChildOfClass("Decal") then
  2868. c:FindFirstChildOfClass("Decal"):remove()
  2869. end
  2870. c.Name = "Banished"
  2871. c.CanCollide = false
  2872. else
  2873. c:remove()
  2874. end
  2875. end
  2876. local A = false
  2877. for i = 1, 35 do
  2878. if A == false then
  2879. A = true
  2880. elseif A == true then
  2881. A = false
  2882. end
  2883. for _, c in pairs(CLONE:GetDescendants()) do
  2884. if c:IsA("BasePart") then
  2885. c.Anchored = true
  2886. c.Material = MATERIALS[MRANDOM(1,2)]
  2887. c.Transparency = c.Transparency + 0.8/35
  2888. if A == false then
  2889. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2890. elseif A == true then
  2891. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  2892. end
  2893. end
  2894. end
  2895. Swait()
  2896. end
  2897. CLONE:remove()
  2898. end))
  2899. end
  2900. end
  2901.  
  2902. function Madness()
  2903. ATTACK = true
  2904. Rooted = false
  2905. local GYRO = IT("BodyGyro",RootPart)
  2906. GYRO.D = 750
  2907. GYRO.P = 20000
  2908. GYRO.MaxTorque = VT(0,40000000,0)
  2909. local LOCKED = true
  2910. local SHOT = false
  2911. coroutine.resume(coroutine.create(function()
  2912. for i=0, 1, 0.1 / Animation_Speed do
  2913. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  2914. Swait()
  2915. 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(45 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2916. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2917. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(100), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2918. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2919. end
  2920. LOCKED = false
  2921. SHOT = true
  2922. repeat
  2923. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  2924. Swait()
  2925. 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(45 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2926. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2927. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(100), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2928. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2929. until HOLD == false and SHOT == false
  2930. for i=0, 0.3, 0.1 / Animation_Speed do
  2931. Swait()
  2932. 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(45 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2933. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2934. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(100), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2935. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2936. end
  2937. GYRO:remove()
  2938. ATTACK = false
  2939. Rooted = false
  2940. end))
  2941. repeat wait() until LOCKED == false
  2942. repeat
  2943. SHOT = true
  2944. wait(0.2)
  2945. SHOT = false
  2946. local BULLET = Lightning({Material = "Glass", FadeIn = true, Color = C3(0,0,0), Start = Hole.CFrame*CF(0, 1, 0.045).p, End = Mouse.Hit.p, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false})
  2947. local HIT = BULLET.Hit
  2948. local HITPOS = BULLET.End
  2949. if HIT then
  2950. if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  2951. Kill(HIT.Parent)
  2952. end
  2953. end
  2954. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = 304999618, SoundPitch = 2, SoundVolume = 1})
  2955. WACKYEFFECT({Time = 15, EffectType = "Skull", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0, 1, 0.045) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 2})
  2956. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(1,1.2,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0, 1, 0.045) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1, SoundVolume = 2})
  2957. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(2,1,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0, 1, 0.045) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 145080998, SoundPitch = 1, SoundVolume = 2})
  2958. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2959. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2960. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2961. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2962. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2963. until HOLD == false
  2964. end
  2965.  
  2966. function Banisher_Bullet()
  2967. ATTACK = true
  2968. Rooted = false
  2969. for i=0, 0.4, 0.1 / Animation_Speed do
  2970. Swait()
  2971. turnto(Mouse.Hit.p)
  2972. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2973. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2974. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2975. end
  2976. repeat
  2977. for i=0, 0.2, 0.1 / Animation_Speed do
  2978. Swait()
  2979. turnto(Mouse.Hit.p)
  2980. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2981. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2982. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2983. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2984. end
  2985. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  2986. SpawnTrail(Hole.Position,POS)
  2987. if HIT ~= nil then
  2988. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2989. Banish(HIT.Parent)
  2990. end
  2991. end
  2992. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), 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(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2993. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2994. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), 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(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2995. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), 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(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2996. for i=0, 0.3, 0.1 / Animation_Speed do
  2997. Swait()
  2998. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2999. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  3000. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  3001. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  3002. end
  3003. until KEYHOLD == false
  3004. ATTACK = false
  3005. Rooted = false
  3006. end
  3007.  
  3008. function AttackTemplate()
  3009. ATTACK = true
  3010. Rooted = false
  3011. for i=0, 1, 0.1 / Animation_Speed do
  3012. Swait()
  3013. 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)
  3014. 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)
  3015. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3016. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3017. 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)
  3018. 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)
  3019. end
  3020. ATTACK = false
  3021. Rooted = false
  3022. end
  3023.  
  3024. function HI()
  3025. ATTACK = true
  3026. Rooted = false
  3027. local LOOP = 0
  3028. for i=0, 0.1, 0.1 / Animation_Speed do
  3029. Swait()
  3030. 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)
  3031. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3032. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3033. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3034. end
  3035. for i=0, 3, 0.1 / Animation_Speed do
  3036. Swait()
  3037. LOOP = LOOP + 1
  3038. 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(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3039. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3040. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3041. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.8, 0.4) * ANGLES(RAD(170), RAD(0), RAD(-25 - 25 * SIN(LOOP / 5))) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3042. end
  3043. for i=0, 0.1, 0.1 / Animation_Speed do
  3044. Swait()
  3045. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3046. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3047. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3048. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3049. end
  3050. ATTACK = false
  3051. Rooted = false
  3052. end
  3053.  
  3054. function Mercy()
  3055. ATTACK = true
  3056. Rooted = true
  3057. local SPOTS = {}
  3058. for i = 1, 15 do
  3059. Swait()
  3060. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3061. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed)
  3062. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  3063. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3064. end
  3065. WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Maroon".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  3066. for i=0, 0.5, 0.1 / Animation_Speed do
  3067. Swait()
  3068. 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(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3069. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3070. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3071. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3072. end
  3073. local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 150, Character)
  3074. table.insert(SPOTS,HITPOS)
  3075. CreateSound(145080998, Hole, 2, 1, false)
  3076. Lightning({Material = "Neon", FadeIn = false, Color = C3(1,0,0), Start = Hole.CFrame*CF(0, 1, 0.045).p, End = Hole.CFrame*CF(0, 1000, 0.045).p, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false})
  3077. coroutine.resume(coroutine.create(function()
  3078. local POS = Mouse.Hit.p
  3079. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  3080. MakeForm(RAY,"Cyl")
  3081. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  3082. MakeForm(SPHERE,"Ball")
  3083. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  3084. MakeForm(SHIELD,"Ball")
  3085. SHIELD.CFrame = CF(POS)
  3086. RAY.CFrame = CF(POS)
  3087. SPHERE.CFrame = CF(POS)
  3088. CreateSound(440145570, SPHERE, 10, 0.8, false)
  3089. CreateSound(415700134, SPHERE, 10, 0.8, false)
  3090. for i = 1, 200 do
  3091. Swait()
  3092. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3093. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  3094. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*2,5+(i),SPHERE.Size.X*2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  3095. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  3096. SPHERE.Size = SPHERE.Size + VT(0.4,0.4,0.4)
  3097. SHIELD.Size = SPHERE.Size + VT(0.5,0.5,0.5)
  3098. ApplyKill(SPHERE.Position,SPHERE.Size.X/2,true)
  3099. end
  3100. for i = 1, 45 do
  3101. Swait()
  3102. RAY.Transparency = RAY.Transparency + 1/45
  3103. SPHERE.Transparency = RAY.Transparency
  3104. SHIELD.Transparency = SPHERE.Transparency + 1/45
  3105. end
  3106. RAY:remove()
  3107. SHIELD:remove()
  3108. SPHERE:remove()
  3109. end))
  3110. ATTACK = false
  3111. Rooted = false
  3112. end
  3113. function Warp()
  3114. for e = 1, #BODY do
  3115. if BODY[e] ~= nil then
  3116. local STUFF = BODY[e]
  3117. local PART = STUFF[1]
  3118. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  3119. local PRT = PART:Clone()
  3120. PRT.Anchored = true
  3121. PRT.CanCollide = false
  3122. PRT.Material = "Neon"
  3123. PRT.Color = C3(0,0,0)
  3124. PRT.Name = "WarpEffect"
  3125. PRT.Parent = Effects
  3126. PRT.CFrame = PART.CFrame
  3127. PRT:BreakJoints()
  3128. if PRT:FindFirstChildOfClass("Sound") then
  3129. PRT:FindFirstChildOfClass("Sound"):remove()
  3130. end
  3131. if PRT:FindFirstChildOfClass("Decal") then
  3132. PRT:FindFirstChildOfClass("Decal"):remove()
  3133. end
  3134. coroutine.resume(coroutine.create(function()
  3135. for i = 1, 100 do
  3136. Swait()
  3137. PRT.Transparency = PRT.Transparency + 1/100
  3138. end
  3139. PRT:remove()
  3140. end))
  3141. end
  3142. end
  3143. end
  3144. CreateSound(217767125, Torso, 10, 1)
  3145. local POS = RootPart.Orientation
  3146. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  3147. RootPart.Orientation = POS
  3148. RootJoint.Parent = RootPart
  3149. WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eyes.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  3150. ATTACK = false
  3151. Rooted = false
  3152. end
  3153. function killnearest(position,range,maxstrength,BRUTAL,RANGE)
  3154. for i,v in ipairs(workspace:GetChildren()) do
  3155. local body = v:GetChildren()
  3156. for part = 1, #body do
  3157. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  3158. if(body[part].Position - position).Magnitude < range then
  3159. if v.ClassName == "Model" then
  3160. v:BreakJoints()
  3161. end
  3162. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  3163. local bv = Instance.new("BodyVelocity")
  3164. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3165. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  3166. bv.Parent = body[part]
  3167. Debris:AddItem(bv,0.2)
  3168. end
  3169. end
  3170. end
  3171. if v.ClassName == "Part" then
  3172. if v.Anchored == false and (v.Position - position).Magnitude < range then
  3173. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  3174. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  3175. end
  3176. end
  3177. end
  3178. end
  3179. function Darkness()
  3180. ATTACK = true
  3181. Rooted = true
  3182. local GYRO = IT("BodyGyro",RootPart)
  3183. GYRO.D = 100
  3184. GYRO.P = 2000
  3185. GYRO.MaxTorque = VT(0,4000000,0)
  3186. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  3187. CreateSound("429459101", RightArm, 10, 0.8)
  3188. for i=0, 3.5, 0.1 / Animation_Speed do
  3189. Swait()
  3190. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  3191. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,10,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  3192. 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(-25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3193. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3194. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.75 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3195. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3196. end
  3197. GYRO:remove()
  3198. for i=0, 0.15, 0.1 / Animation_Speed do
  3199. Swait()
  3200. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  3201. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,10,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  3202. 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(-25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3203. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3204. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.75 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3205. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3206. end
  3207. local BOMBSPOTS = {}
  3208. for i = 1, 25 do
  3209. local SPOT = CreatePart(3, Effects, "Neon", 0, 0, "Relly black", "Blade", VT(8,1,8))
  3210. SPOT.Color = SKILLTEXTCOLOR
  3211. SPOT.CFrame = RootPart.CFrame*CF((MRANDOM(-15,15)/40)*i,-5,-i*5)
  3212. table.insert(BOMBSPOTS,SPOT)
  3213. MakeForm(SPOT,"Cyl2")
  3214. end
  3215. for i=0, 0.2, 0.1 / Animation_Speed do
  3216. Swait()
  3217. WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  3218. 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(-25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3219. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3220. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.75 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3221. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3222. end
  3223. ATTACK = false
  3224. Rooted = false
  3225. coroutine.resume(coroutine.create(function()
  3226. Swait(3)
  3227. for i = 1, #BOMBSPOTS do
  3228. if BOMBSPOTS[i] ~= nil then
  3229. local E = BOMBSPOTS[i]
  3230. coroutine.resume(coroutine.create(function()
  3231. local BLADE = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Relly black", "Blade", VT(0,0,0))
  3232. BLADE.Color = SKILLTEXTCOLOR
  3233. CreateMesh("SpecialMesh", BLADE, "FileMesh", "93108071", "", VT(0.6,1,0.4)*3, VT(0,0,0))
  3234. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE, 4, 0.6)
  3235. BLADE.CFrame = E.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-15,15)),RAD(90),RAD(MRANDOM(-15,15)))
  3236. for i = 1, 10 do
  3237. Swait()
  3238. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.5,0.5,0.5), Size2 = VT(0,50,0), Transparency = 0, Transparency2 = 1, CFrame = CF(BLADE.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  3239. killnearest(BLADE.Position,6,80)
  3240. BLADE.CFrame = BLADE.CFrame*CF(0,0.3,0)
  3241. BLADE.Transparency = BLADE.Transparency - 0.1
  3242. end
  3243. Swait(45)
  3244. for i = 1, 100 do
  3245. Swait()
  3246. BLADE.Transparency = BLADE.Transparency + 0.01
  3247. E.Transparency = E.Transparency + 0.01
  3248. end
  3249. BLADE:remove()
  3250. E:remove()
  3251. end))
  3252. end
  3253. end
  3254. end))
  3255. end
  3256. function Death()
  3257. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3258. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  3259. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  3260. if TORSO and HUM.Health > 0 then
  3261. ATTACK = true
  3262. Rooted = true
  3263. local GYRO = IT("BodyGyro",RootPart)
  3264. GYRO.D = 175
  3265. GYRO.P = 20000
  3266. GYRO.MaxTorque = VT(0,40000,0)
  3267. for i=0, 1, 0.1 / Animation_Speed do
  3268. Swait()
  3269. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  3270. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  3271. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
  3272. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3273. end
  3274. WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  3275. WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  3276. local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true})
  3277. MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  3278. local grav = Instance.new("BodyPosition",TORSO)
  3279. grav.D = 1500
  3280. grav.P = 20000
  3281. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3282. grav.position = TORSO.Position+VT(0,15,0)
  3283. Debris:AddItem(grav,10)
  3284. Debris:AddItem(MAGIC,10)
  3285. CreateSound(429459101, Torso, 7, 1, false)
  3286. CreateSound(429459101, TORSO, 7, 1, false)
  3287. GYRO:remove()
  3288. ATTACK = false
  3289. Rooted = false
  3290. end
  3291. end
  3292. end
  3293.  
  3294. function TimeStop ()
  3295. local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  3296. CHOICE = 6
  3297. CreateSound(1193182658, Character, 5, 1, false)
  3298. back = CreateSound(1841228386, Character, 9999, 1, false)
  3299. local killsky = Instance.new('Sky', game:GetService'Lighting')
  3300. killsky.SkyboxBk = "rbxassetid://1013852"
  3301. killsky.SkyboxDn = "rbxassetid://1013853"
  3302. killsky.SkyboxFt = "rbxassetid://1013850"
  3303. killsky.SkyboxLf = "rbxassetid://1013851"
  3304. killsky.SkyboxRt = "rbxassetid://1013849"
  3305. killsky.SkyboxUp = "rbxassetid://1013854"
  3306. killsky.StarCount = 0
  3307. killsky.SunAngularSize = 0
  3308. killsky.MoonAngularSize = 0
  3309. killsky.MoonTextureId = ""
  3310. killsky.CelestialBodiesShown = false
  3311. game.Lighting.FogColor = Color3.new(1,1,0)
  3312. game.Lighting.FogEnd = 1400
  3313. if HITFLOOR ~= nil then
  3314. ATTACK = false
  3315. Rooted = false
  3316. local RINGSPIN = true
  3317. local CONSTRUCTING = true
  3318. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Electric blue", "Ring", VT(0,0,0))
  3319. RING.Color = C3(0,0,0)
  3320. MakeForm(RING,"Cyl")
  3321. RING.CFrame = CF(HITPOS)
  3322. coroutine.resume(coroutine.create(function()
  3323. repeat
  3324. Swait()
  3325. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  3326. until CONSTRUCTING == false
  3327. repeat
  3328. Swait()
  3329. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  3330. until RINGSPIN == false
  3331. for i = 1, 25 do
  3332. Swait()
  3333. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  3334. RING.Size = RING.Size - VT(0.15,0,0.15)
  3335. --DECAL.Transparency = DECAL.Transparency + 1/25
  3336. RING.Transparency = RING.Transparency + 1/25
  3337. end
  3338. RING:remove()
  3339. end))
  3340. for i = 1, 15 do
  3341. Swait()
  3342. RING.Size = RING.Size + VT(0,0,0)
  3343. RING.Transparency = RING.Transparency - 1/15
  3344. end
  3345. end
  3346. local RANDOMEFFECT = MRANDOM(1)
  3347. local BASE = CreatePart(3, Character, "Neon", 0, 0, "Electric blue", "Black", VT(2,1.8,2))
  3348. BASE.Color = C3(0,0,0)
  3349. BASE.Transparency = 1
  3350. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  3351. if RANDOMEFFECT == 1 then
  3352. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Electric blue", "Field", VT(0.3,0.3,0.3))
  3353. FIELD.CFrame = BASE.CFrame
  3354. MakeForm(FIELD,"Ball")
  3355. for i = 1, 50 do
  3356. Swait()
  3357. FIELD.Size = VT(0,0,0)
  3358. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  3359. end
  3360. end
  3361. wait(0.2)
  3362. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Electric blue", "Field", VT(0.3,0.3,0.3))
  3363. FIELD.CFrame = BASE.CFrame
  3364. local LOOP = CreateSound(1393698948, Character, 0, 1, true)
  3365. coroutine.resume(coroutine.create(function()
  3366. for i = 1, 75 do
  3367. Swait()
  3368. LOOP.Volume = LOOP.Volume + 10/75
  3369. LOOP.Parent = FIELD
  3370. local CHILDREN = workspace:GetDescendants()
  3371. for index, CHILD in pairs(CHILDREN) do
  3372. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  3373. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  3374. if HUM then
  3375. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  3376. if TORSO then
  3377. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  3378. HUM.Health = HUM.Health - 0
  3379. TORSO.Velocity = VT(0,5,0)
  3380. HUM.PlatformStand = true
  3381. if TORSO.RotVelocity.Magnitude < 15 then
  3382. TORSO.Anchored = true
  3383. end
  3384. end
  3385. end
  3386. end
  3387. end
  3388. end
  3389. FIELD.Size = FIELD.Size + VT(90,90,90)
  3390. FIELD.Transparency = FIELD.Transparency + 0.8/75
  3391. end
  3392. for i = 1, 500 do
  3393. Swait()
  3394. LOOP.Parent = FIELD
  3395. local CHILDREN = workspace:GetDescendants()
  3396. for index, CHILD in pairs(CHILDREN) do
  3397. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  3398. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  3399. if HUM then
  3400. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  3401. if TORSO then
  3402. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  3403. TORSO.Velocity = VT(0,5,0)
  3404. HUM.Health = HUM.Health - 0
  3405. HUM.PlatformStand = true
  3406. if TORSO.RotVelocity.Magnitude < 15 then
  3407. TORSO.Anchored = true
  3408. end
  3409. end
  3410. end
  3411. end
  3412. end
  3413. end
  3414. end
  3415. wait (20)
  3416. back:Remove()
  3417. CreateSound(1538466750, Character, 99999, 1, false)
  3418. killsky:Remove()
  3419. game.Lighting.FogEnd = 90000000
  3420. wait (5)
  3421. CHOICE = MRANDOM (1,5)
  3422. for i = 1, 25 do
  3423. Swait()
  3424. LOOP.Volume = LOOP.Volume + 10/25
  3425. LOOP.Parent = FIELD
  3426. local CHILDREN = workspace:GetDescendants()
  3427. for index, CHILD in pairs(CHILDREN) do
  3428. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  3429. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  3430. if HUM then
  3431. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  3432. if TORSO then
  3433. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  3434. TORSO.Velocity = VT(0,5,0)
  3435. HUM.Health = HUM.Health - 0
  3436. HUM.PlatformStand = false
  3437. if TORSO.RotVelocity.Magnitude < 15 then
  3438. TORSO.Anchored = false
  3439. end
  3440. end
  3441. end
  3442. end
  3443. end
  3444. FIELD.Size = FIELD.Size - VT(3,3,3)
  3445. FIELD.Transparency = FIELD.Transparency + 0.2/25
  3446. end
  3447. end
  3448. end))
  3449. FIELD:Remove()
  3450. ATTACK = false
  3451. Rooted = false
  3452. end
  3453.  
  3454. function FingerMagic()
  3455. ATTACK = true
  3456. Rooted = false
  3457. for i=0, 0.1, 0.1 / Animation_Speed do
  3458. Swait()
  3459. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3460. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3461. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3462. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3463. end
  3464. for i=0, 1, 0.1 / Animation_Speed do
  3465. Swait()
  3466. 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(0 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3467. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3468. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3469. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.15 + 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(160), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3470. end
  3471. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 304999618, SoundPitch = 1, SoundVolume = 1})
  3472. for i = 1, 5 do
  3473. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1), Size2 = VT(0,7,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 2, SoundVolume = 1})
  3474. end
  3475. CreateSound(217767125, LeftArm, 10, 1, false)
  3476. coroutine.resume(coroutine.create(function()
  3477. local EXPLODED = false
  3478. for i = 1, 3 do
  3479. coroutine.resume(coroutine.create(function()
  3480. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  3481. if HITFLOOR then
  3482. local CFRAME = CF(HITPOS) * ANGLES(RAD(0), RAD((360/3)*i), RAD(0))
  3483. for i = 1, 35 do
  3484. wait()
  3485. for _, c in pairs(workspace:GetChildren()) do
  3486. if EXPLODED == false and c.ClassName == "Model" and c:FindFirstChildOfClass("Humanoid") and c ~= Character then
  3487. local HUM = c:FindFirstChildOfClass("Humanoid")
  3488. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  3489. if TORSO and HUM.Health > 0 then
  3490. if (TORSO.Position - CFRAME.p).Magnitude < 10 then
  3491. EXPLODED = true
  3492. coroutine.resume(coroutine.create(function()
  3493. for i = 1, 15 do
  3494. Kill(CFRAME*CF(0,10,0).p,30+(i*4),0,0,-35,false)
  3495. wait(0.2)
  3496. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(15+(i*2),5,15+(i*2)), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  3497. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(15,15,15)+VT(i*2,i*2,i*2), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CFRAME*CF(0,10,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 304999618, SoundPitch = 1, SoundVolume = 1})
  3498. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(12,12,12)+VT(i*2,i*2,i*2), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CFRAME*CF(0,10,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.7,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 1})
  3499. end
  3500. WACKYEFFECT({Time = 50, EffectType = "Block", Size = VT(15,15,15)+VT(i*2,i*2,i*2), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CFRAME*CF(0,10,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 304999618, SoundPitch = 1, SoundVolume = 1})
  3501. wait(1)
  3502. WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(100,100,100)*5, Transparency = 0.4, Transparency2 = 1, CFrame = CFRAME*CF(0,10,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.3,0,0), SoundID = 461105534, SoundPitch = 1, SoundVolume = 10})
  3503. local PART = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  3504. PART.CFrame = CFRAME*CF(0,10,0)
  3505. Debris:AddItem(PART,10)
  3506. local PARTICLES = script.Explode:Clone()
  3507. PARTICLES.Parent = PART
  3508. PARTICLES:Emit(500)
  3509. Kill(CFRAME*CF(0,10,0).p,45*2,0,0,350,true)
  3510. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(90,90,90)*2, Transparency = 0.8, Transparency2 = 1, CFrame = CFRAME*CF(0,10,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 3})
  3511. WACKYEFFECT({EffectType = "Ring", Size = VT(00,0.01)/20, Size2 = VT(35,35,0.01), Transparency = 0.7, Transparency2 = 1, CFrame = CFRAME*CF(0,10,0)*ANGLES(RAD(0), RAD(90), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3512. WACKYEFFECT({EffectType = "Ring", Size = VT(00,0.01)/20, Size2 = VT(35,35,0.01), Transparency = 0.7, Transparency2 = 1, CFrame = CFRAME*CF(0,10,0)*ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3513. end))
  3514. end
  3515. end
  3516. end
  3517. end
  3518. if EXPLODED == true then
  3519. break
  3520. end
  3521. CFRAME = CFRAME * ANGLES(RAD(0), RAD(10), RAD(0)) * CF(0,0,-3)
  3522. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(10,15,10), Size2 = VT(0,35,0), Transparency = 1, Transparency2 = 0.9, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  3523. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(15,15,15), Size2 = VT(0,25,0), Transparency = 1, Transparency2 = 0.6, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Maroon".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  3524. end
  3525. end
  3526. end))
  3527. end
  3528. end))
  3529. for i=0, 1, 0.1 / Animation_Speed do
  3530. Swait()
  3531. 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(0 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3532. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3533. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3534. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15 + 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(170), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3535. end
  3536. ATTACK = false
  3537. Rooted = false
  3538. end
  3539.  
  3540. function PainlessRain()
  3541. ATTACK = true
  3542. Rooted = true
  3543. local SPOTS = {}
  3544. local BULLETS = 0
  3545. repeat
  3546. BULLETS = BULLETS + 1
  3547. for i = 1, 15 do
  3548. Swait()
  3549. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3550. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed)
  3551. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  3552. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3553. end
  3554. until KEYHOLD == false
  3555. for i = 1, BULLETS do
  3556. for i=0, 0.5, 0.1 / Animation_Speed do
  3557. Swait()
  3558. 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(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3559. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3560. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3561. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3562. end
  3563. local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 150, Character)
  3564. table.insert(SPOTS,HITPOS)
  3565.  
  3566. for i=0, 0.35, 0.1 / Animation_Speed do
  3567. Swait()
  3568.  
  3569. 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(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3570. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  3571. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3572. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3573. end
  3574. end
  3575. coroutine.resume(coroutine.create(function()
  3576. for i = 1, #SPOTS do
  3577. wait(0.1)
  3578. coroutine.resume(coroutine.create(function()
  3579. local SPOT = SPOTS[i]
  3580. local BOLT = Lightning({Material = "Neon", FadeIn = true, Color = C3(1,0,0), Start = SPOT+VT(0,150,0), End = SPOT, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 125, Thicken = true})
  3581. local POSITION = BOLT.Pos
  3582. ApplyAoE(POSITION,75/2,0,0,350,true)
  3583. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(50,150,50), Transparency = 0.3, Transparency2 = 1, CFrame = CF(POSITION), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 3})
  3584. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(75,5,75), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 165970126, SoundPitch = 1, SoundVolume = 4})
  3585. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(35,15,35), Transparency = 0, Transparency2 = 1, CFrame = CF(POSITION), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7})
  3586. end))
  3587. end
  3588. end))
  3589. ATTACK = false
  3590. Rooted = false
  3591. end
  3592.  
  3593. function Noclip()
  3594. ATTACK = true
  3595. Rooted = true
  3596. UNANCHOR = false
  3597. RootPart.Anchored = true
  3598. local CLIPPING = true
  3599. local MOVEMENT = nil
  3600. CreateSound(96098241, Torso, 3, MRANDOM(9,12)/10, false)
  3601. for i = 1, 50 do
  3602. Swait()
  3603. EXTRATRANS = EXTRATRANS + 0.5/50
  3604. RootPart.CFrame = RootPart.CFrame * CF(0,(1-(i/50))/4.3,0)
  3605. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3606. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3607. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3608. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3609. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3610. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3611. end
  3612. local AURA = CreateSound(1393698948, Torso, 3, 1, true)
  3613. local KEY = Mouse.KeyDown:connect(function(NEWKEY)
  3614. if NEWKEY == "w" then
  3615. MOVEMENT = "Forward"
  3616. repeat
  3617. Swait()
  3618. RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.2)
  3619. until KEYHOLD == false
  3620. elseif NEWKEY == "s" then
  3621. MOVEMENT = "Backwards"
  3622. repeat
  3623. Swait()
  3624. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.2)
  3625. until KEYHOLD == false
  3626. elseif NEWKEY == "a" then
  3627. MOVEMENT = "Strafe"
  3628. repeat
  3629. Swait()
  3630. RootPart.CFrame = RootPart.CFrame * CF(0.2,0,0)
  3631. until KEYHOLD == false
  3632. elseif NEWKEY == "d" then
  3633. MOVEMENT = "Strafe"
  3634. repeat
  3635. Swait()
  3636. RootPart.CFrame = RootPart.CFrame * CF(-0.2,0,0)
  3637. until KEYHOLD == false
  3638. elseif NEWKEY == "e" then
  3639. CLIPPING = false
  3640. end
  3641. MOVEMENT = nil
  3642. end)
  3643. local LOOP = 0
  3644. repeat
  3645. Swait()
  3646. AURA.Parent = Torso
  3647. LOOP = LOOP + 1
  3648. if LOOP >= 15 then
  3649. LOOP = 0
  3650. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-3.5,0).p), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3651. end
  3652. if MOVEMENT == nil then
  3653. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3654. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3655. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3656. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3657. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3658. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3659. elseif MOVEMENT == "Forward" then
  3660. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  3661. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3662. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3663. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3664. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3665. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3666. elseif MOVEMENT == "Backwards" then
  3667. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  3668. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3669. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3670. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3671. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3672. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3673. elseif MOVEMENT == "Strafe" then
  3674. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3675. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3676. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3677. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3678. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3679. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3680. end
  3681. until CLIPPING == false
  3682. KEY:Disconnect()
  3683. coroutine.resume(coroutine.create(function()
  3684. for i = 1, 20 do
  3685. Swait()
  3686. AURA.Volume = AURA.Volume - 3/20
  3687. end
  3688. AURA:remove()
  3689. end))
  3690. CreateSound(814168787, Torso, 1, MRANDOM(9,12)/10, false)
  3691. for i = 1, 50 do
  3692. Swait()
  3693. EXTRATRANS = EXTRATRANS - 0.5/50
  3694. RootPart.CFrame = RootPart.CFrame * CF(0,-(1-(i/50))/4.3,0)
  3695. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3696. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3697. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3698. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3699. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3700. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  3701. end
  3702. EXTRATRANS = 0
  3703. UNANCHOR = true
  3704. ATTACK = false
  3705. Rooted = false
  3706. end
  3707.  
  3708. --//=================================\\
  3709. --|| ASSIGN THINGS TO KEYS
  3710. --\\=================================//
  3711.  
  3712. function MouseDown(Mouse)
  3713. HOLD = true
  3714. if ATTACK == false then
  3715. end
  3716. end
  3717.  
  3718. function MouseUp(Mouse)
  3719. HOLD = false
  3720. end
  3721.  
  3722. function KeyDown(Key)
  3723. KEYHOLD = true
  3724. if Key == "q" and ATTACK == false then
  3725. Warp()
  3726. end
  3727.  
  3728. if Key == "b" and ATTACK == false then
  3729. TimeStop()
  3730. end
  3731.  
  3732. if Key == "v" and ATTACK == false then
  3733. Madness()
  3734. end
  3735.  
  3736. if Key == "x" and ATTACK == false then
  3737. Mercy()
  3738. end
  3739.  
  3740. if Key == "t" and ATTACK == false then
  3741. HI()
  3742. end
  3743.  
  3744. if Key == "f" and ATTACK == false then
  3745. FingerMagic()
  3746. end
  3747.  
  3748. if Key == "r" and ATTACK == false then
  3749. PainlessRain()
  3750. end
  3751.  
  3752. if Key == "z" and ATTACK == false then
  3753. Darkness()
  3754. end
  3755.  
  3756. if Key == "c" and ATTACK == false then
  3757. Banisher_Bullet()
  3758. end
  3759.  
  3760. if Key == "e" and ATTACK == false then
  3761. Noclip()
  3762. end
  3763. end
  3764.  
  3765. function KeyUp(Key)
  3766. KEYHOLD = false
  3767. end
  3768.  
  3769. Mouse.Button1Down:connect(function(NEWKEY)
  3770. MouseDown(NEWKEY)
  3771. end)
  3772. Mouse.Button1Up:connect(function(NEWKEY)
  3773. MouseUp(NEWKEY)
  3774. end)
  3775. Mouse.KeyDown:connect(function(NEWKEY)
  3776. KeyDown(NEWKEY)
  3777. end)
  3778. Mouse.KeyUp:connect(function(NEWKEY)
  3779. KeyUp(NEWKEY)
  3780. end)
  3781.  
  3782. --//=================================\\
  3783. --\\=================================//
  3784.  
  3785.  
  3786. function unanchor()
  3787. if UNANCHOR == true then
  3788. RootPart.Anchored = false
  3789. end
  3790. g = Character:GetChildren()
  3791. for i = 1, #g do
  3792. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  3793. g[i].Anchored = false
  3794. end
  3795. end
  3796. g = Weapon:GetChildren()
  3797. for i = 1, #g do
  3798. if g[i].ClassName == "Part" then
  3799. g[i].Anchored = false
  3800. end
  3801. end
  3802. end
  3803.  
  3804.  
  3805. --//=================================\\
  3806. --|| WRAP THE WHOLE SCRIPT UP
  3807. --\\=================================//
  3808.  
  3809. Humanoid.Changed:connect(function(Jump)
  3810. if Jump == "Jump" and (Disable_Jump == true) then
  3811. Humanoid.Jump = false
  3812. end
  3813. end)
  3814.  
  3815. while true do
  3816. Swait()
  3817. refit()
  3818. script.Parent = WEAPONGUI
  3819. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3820. v:Stop();
  3821. end
  3822. ANIMATE.Parent = nil
  3823. SINE = SINE + CHANGE*1.5
  3824. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3825. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3826. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  3827. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  3828. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  3829. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0 * COS(SINE / (WALKSPEEDVALUE / 2)) * SIZE) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3830. Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3831. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  3832. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3833. Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3834. end
  3835. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3836. ANIM = "Jump"
  3837. if ATTACK == false then
  3838. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3839. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  3840. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3841. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3842. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  3843. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  3844. end
  3845. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3846. ANIM = "Fall"
  3847. if ATTACK == false then
  3848. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3849. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  3850. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3851. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3852. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  3853. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  3854. end
  3855. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3856. ANIM = "Idle"
  3857. if ATTACK == false then
  3858. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3859. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3860. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75*SIZE, 0.5*SIZE, -1*SIZE) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  3861. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3862. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3863. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3864. end
  3865. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3866. ANIM = "Walk"
  3867. if ATTACK == false then
  3868. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  3869. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3870. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3871. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3872. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3873. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3874. end
  3875. end
  3876. unanchor()
  3877. Humanoid.MaxHealth = "inf"
  3878. Humanoid.Health = "inf"
  3879. if Rooted == false then
  3880. Disable_Jump = false
  3881. Humanoid.WalkSpeed = Speed
  3882. elseif Rooted == true then
  3883. Disable_Jump = true
  3884. Humanoid.WalkSpeed = 0
  3885. end
  3886. for _, c in pairs(Character:GetChildren()) do
  3887. if c.ClassName == "Part" and c.Name ~= "Detail" then
  3888. c.Material = "Fabric"
  3889. if c:FindFirstChildOfClass("ParticleEmitter") then
  3890. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  3891. end
  3892. if c ~= Head then
  3893. c.Color = C3(0,0,0)
  3894. else
  3895. c.Color = C3(0,0,0)
  3896. end
  3897. if c == Head then
  3898. if c:FindFirstChild("face") then
  3899. c.face:remove()
  3900. end
  3901. end
  3902. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  3903. c:remove()
  3904. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  3905. c:remove()
  3906. end
  3907. end
  3908. sick.SoundId = "rbxassetid://"..bored[CHOICE]
  3909. sick.Looped = true
  3910. sick.Pitch = 1
  3911. sick.Volume = 999999
  3912. sick.Parent = Character
  3913. sick:Resume()
  3914. --sick.Playing = false
  3915. Humanoid.Name = "Master of Time = "..Player.Name
  3916. end
  3917.  
  3918. --//=================================\\
  3919. --\\=================================//
  3920.  
  3921.  
  3922.  
  3923.  
  3924.  
  3925. --//====================================================\\--
  3926. --|| END OF SCRIPT
  3927. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement