Advertisement
Prozanity

Untitled

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