Advertisement
Guest User

Untitled

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