Advertisement
lafur

Untitled

Sep 28th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.56 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --//=========================\\--
  6. --|| CREATED BY SHACKLUSTER ||--
  7. --\\=========================//--
  8.  
  9. wait(0.2)
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://408178043"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 10
  36. sick:Play()
  37. local sick2 = Instance.new("Sound",Character)
  38. sick2.SoundId = "rbxassetid://1143358136"
  39. sick2.Looped = true
  40. sick2.Pitch = 1
  41. sick2.Volume = 10
  42. Humanoid.DisplayDistanceType = "None"
  43. Player:ClearCharacterAppearance()
  44.  
  45. IT = Instance.new
  46. CF = CFrame.new
  47. VT = Vector3.new
  48. RAD = math.rad
  49. C3 = Color3.new
  50. UD2 = UDim2.new
  51. BRICKC = BrickColor.new
  52. ANGLES = CFrame.Angles
  53. EULER = CFrame.fromEulerAnglesXYZ
  54. COS = math.cos
  55. ACOS = math.acos
  56. SIN = math.sin
  57. ASIN = math.asin
  58. ABS = math.abs
  59. MRANDOM = math.random
  60. FLOOR = math.floor
  61.  
  62. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  63. local NEWMESH = IT(MESH)
  64. if MESH == "SpecialMesh" then
  65. NEWMESH.MeshType = MESHTYPE
  66. if MESHID ~= "nil" and MESHID ~= "" then
  67. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  68. end
  69. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  70. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  71. end
  72. end
  73. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  74. NEWMESH.Scale = SCALE
  75. NEWMESH.Parent = PARENT
  76. return NEWMESH
  77. end
  78.  
  79. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  80. local NEWPART = IT("Part")
  81. NEWPART.formFactor = FORMFACTOR
  82. NEWPART.Reflectance = REFLECTANCE
  83. NEWPART.Transparency = TRANSPARENCY
  84. NEWPART.CanCollide = false
  85. NEWPART.Locked = true
  86. NEWPART.Anchored = true
  87. if ANCHOR == false then
  88. NEWPART.Anchored = false
  89. end
  90. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  91. NEWPART.Name = NAME
  92. NEWPART.Size = SIZE
  93. NEWPART.Position = Torso.Position
  94. NEWPART.Material = MATERIAL
  95. NEWPART:BreakJoints()
  96. NEWPART.Parent = PARENT
  97. return NEWPART
  98. end
  99.  
  100.  
  101.  
  102. local HBill = Instance.new("BillboardGui",Head)
  103. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  104. local HName = Instance.new("TextLabel")
  105. HBill.Size = UDim2.new(15,0,2.2,0)
  106. HBill.Name = "Health Display"
  107. HBill.StudsOffset = Vector3.new(3.675,2,0)
  108. HBill.AlwaysOnTop = true
  109. HBill.Enabled = true
  110. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  111. HMain.BackgroundTransparency = 1
  112. HMain.Size = UDim2.new(.5,0,.5,0)
  113. HName.Parent = HMain
  114. HName.BackgroundTransparency = 1
  115. HName.BackgroundColor3 = Color3.new(0,0,0)
  116. HName.BorderColor3 = Color3.new(0,0,0)
  117. HName.BorderSizePixel = 2
  118. HName.Size = UDim2.new(1,0,.75,0)
  119. HName.Font = "SciFi"
  120. HName.Text = "Ravager Of Death"
  121. HName.TextScaled = true
  122. HName.TextColor3 = Color3.new(255,0,0)
  123. HName.TextStrokeColor3 = Color3.new(0,0,0)
  124. HName.TextStrokeTransparency = 0
  125. HName.TextYAlignment = "Bottom"
  126.  
  127.  
  128. --//=================================\\
  129. --|| CUSTOMIZATION
  130. --\\=================================//
  131.  
  132. Class_Name = "SatanBot.exe"
  133. Weapon_Name = "Add-ons"
  134.  
  135. Custom_Colors = {
  136. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  137. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  138.  
  139. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  140. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  141. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  142. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  143. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  144.  
  145. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  146. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  147. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  148. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  149. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  150. }
  151.  
  152.  
  153. Player_Size = 1 --Size of the player.
  154. Animation_Speed = 3
  155. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  156.  
  157. local Speed = 35
  158. local Effects2 = {}
  159.  
  160. --//=================================\\
  161. --|| END OF CUSTOMIZATION
  162. --\\=================================//
  163.  
  164. local function weldBetween(a, b)
  165. local weldd = Instance.new("ManualWeld")
  166. weldd.Part0 = a
  167. weldd.Part1 = b
  168. weldd.C0 = CFrame.new()
  169. weldd.C1 = b.CFrame:inverse() * a.CFrame
  170. weldd.Parent = a
  171. return weldd
  172. end
  173.  
  174. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  175. local acs = Instance.new("Part")
  176. acs.CanCollide = false
  177. acs.Anchored = false
  178. acs.Size = Vector3.new(0,0,0)
  179. acs.CFrame = attachmentpart.CFrame
  180. acs.Parent = attachmentpart
  181. acs.BrickColor = color
  182. local meshs = Instance.new("SpecialMesh")
  183. meshs.MeshId = mesh
  184. meshs.TextureId = texture
  185. meshs.Parent = acs
  186. meshs.Scale = scale
  187. meshs.Offset = offset
  188. weldBetween(attachmentpart,acs)
  189. end
  190.  
  191. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  192. if TYPE == "Gem" then
  193. local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  194. acs.Anchored = false
  195. acs.CanCollide = false
  196. acs.CFrame = PART.CFrame
  197. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  198. weldBetween(PART,acs)
  199. elseif TYPE == "Skull" then
  200. local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  201. acs.Anchored = false
  202. acs.CanCollide = false
  203. acs.CFrame = PART.CFrame
  204. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  205. weldBetween(PART,acs)
  206. elseif TYPE == "Eye" then
  207. local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  208. acs.Anchored = false
  209. acs.CanCollide = false
  210. acs.CFrame = PART.CFrame
  211. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  212. weldBetween(PART,acs)
  213. end
  214. end
  215.  
  216. createbodypart("Eye", "Really red", Head, VT(0.2, 0, -0.55), VT(2, 6, 2))
  217. createbodypart("Eye", "Really red", Head, VT(-0.2, 0, -0.55), VT(2, 6, 2))
  218. createbodypart("Eye", "Really red", Head, VT(0, 0, -0.6), VT(2, 8, 2))
  219.  
  220. --//=================================\\
  221. --|| USEFUL VALUES
  222. --\\=================================//
  223.  
  224. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  225. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  226. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  227. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  228. local CO1 = 0
  229. local CO2 = 0
  230. local CO3 = 0
  231. local CO4 = 0
  232. local CHANGEDEFENSE = 0
  233. local CHANGEDAMAGE = 0
  234. local CHANGEMOVEMENT = 0
  235. local ANIM = "Idle"
  236. local ATTACK = false
  237. local EQUIPPED = false
  238. local HOLD = false
  239. local COMBO = 1
  240. local LASTPOINT = nil
  241. local BLCF = nil
  242. local SCFR = nil
  243. local KEYHOLD = false
  244. local STAGGERHITANIM = false
  245. local STAGGERANIM = false
  246. local STUNANIM = false
  247. local CRITCHANCENUMBER = 0
  248. local IDLENUMBER = 0
  249. local DONUMBER = 0
  250. local HANDIDLE = false
  251. local Rooted = false
  252. local SINE = 0
  253. local CHANGE = 2 / Animation_Speed
  254. local WALKINGANIM = false
  255. local WALK = 0
  256. local DANCE = false
  257. local DISABLEJUMPING = false
  258. local ROBLOXIDLEANIMATION = IT("Animation")
  259. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  260. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  261. --ROBLOXIDLEANIMATION.Parent = Humanoid
  262. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  263. WEAPONGUI.Name = "Weapon GUI"
  264. local Weapon = IT("Model")
  265. Weapon.Name = Weapon_Name
  266. local Effects = IT("Folder", Weapon)
  267. Effects.Name = "Effects"
  268. local Bombs = IT("Folder", Weapon)
  269. Bombs.Name = "BombsHolder"
  270. local ANIMATOR = Humanoid.Animator
  271. local ANIMATE = Character.Animate
  272. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  273. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  274. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  275. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  276. local UNANCHOR = true
  277. local MAGICPARTICLE = "655109389"
  278.  
  279. local SKILLTEXTCOLOR = C3(0,0,0)
  280.  
  281. --//=================================\\
  282. --\\=================================//
  283.  
  284.  
  285. --//=================================\\
  286. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  287. --\\=================================//
  288.  
  289. ArtificialHB = Instance.new("BindableEvent", script)
  290. ArtificialHB.Name = "ArtificialHB"
  291.  
  292. script:WaitForChild("ArtificialHB")
  293.  
  294. frame = Frame_Speed
  295. tf = 0
  296. allowframeloss = false
  297. tossremainder = false
  298. lastframe = tick()
  299. script.ArtificialHB:Fire()
  300.  
  301. game:GetService("RunService").Heartbeat:connect(function(s, p)
  302. tf = tf + s
  303. if tf >= frame then
  304. if allowframeloss then
  305. script.ArtificialHB:Fire()
  306. lastframe = tick()
  307. else
  308. for i = 1, math.floor(tf / frame) do
  309. script.ArtificialHB:Fire()
  310. end
  311. lastframe = tick()
  312. end
  313. if tossremainder then
  314. tf = 0
  315. else
  316. tf = tf - frame * math.floor(tf / frame)
  317. end
  318. end
  319. end)
  320.  
  321. --//=================================\\
  322. --\\=================================//
  323.  
  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 QuaternionFromCFrame(cf)
  361. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  362. local trace = m00 + m11 + m22
  363. if trace > 0 then
  364. local s = math.sqrt(1 + trace)
  365. local recip = 0.5 / s
  366. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  367. else
  368. local i = 0
  369. if m11 > m00 then
  370. i = 1
  371. end
  372. if m22 > (i == 0 and m00 or m11) then
  373. i = 2
  374. end
  375. if i == 0 then
  376. local s = math.sqrt(m00 - m11 - m22 + 1)
  377. local recip = 0.5 / s
  378. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  379. elseif i == 1 then
  380. local s = math.sqrt(m11 - m22 - m00 + 1)
  381. local recip = 0.5 / s
  382. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  383. elseif i == 2 then
  384. local s = math.sqrt(m22 - m00 - m11 + 1)
  385. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  386. end
  387. end
  388. end
  389.  
  390. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  391. local xs, ys, zs = x + x, y + y, z + z
  392. local wx, wy, wz = w * xs, w * ys, w * zs
  393. local xx = x * xs
  394. local xy = x * ys
  395. local xz = x * zs
  396. local yy = y * ys
  397. local yz = y * zs
  398. local zz = z * zs
  399. 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))
  400. end
  401.  
  402. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  403. local fp=IT("Part")
  404. fp.formFactor=formfactor
  405. fp.Parent=parent
  406. fp.Reflectance=reflectance
  407. fp.Transparency=transparency
  408. fp.CanCollide=false
  409. fp.Locked=true
  410. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  411. fp.Name=name
  412. fp.Size=size
  413. fp.Position=Character.Torso.Position
  414. NoOutlines(fp)
  415. fp.Material=material
  416. fp:BreakJoints()
  417. return fp
  418. end
  419.  
  420. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  421. local mesh=IT(Mesh)
  422. mesh.Parent=part
  423. if Mesh=="SpecialMesh" then
  424. mesh.MeshType=meshtype
  425. mesh.MeshId=meshid
  426. end
  427. mesh.Offset=offset
  428. mesh.Scale=scale
  429. return mesh
  430. end
  431.  
  432. function QuaternionSlerp(a, b, t)
  433. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  434. local startInterp, finishInterp;
  435. if cosTheta >= 0.0001 then
  436. if (1 - cosTheta) > 0.0001 then
  437. local theta = ACOS(cosTheta)
  438. local invSinTheta = 1 / SIN(theta)
  439. startInterp = SIN((1 - t) * theta) * invSinTheta
  440. finishInterp = SIN(t * theta) * invSinTheta
  441. else
  442. startInterp = 1 - t
  443. finishInterp = t
  444. end
  445. else
  446. if (1 + cosTheta) > 0.0001 then
  447. local theta = ACOS(-cosTheta)
  448. local invSinTheta = 1 / SIN(theta)
  449. startInterp = SIN((t - 1) * theta) * invSinTheta
  450. finishInterp = SIN(t * theta) * invSinTheta
  451. else
  452. startInterp = t - 1
  453. finishInterp = t
  454. end
  455. end
  456. 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
  457. end
  458.  
  459. function Clerp(a, b, t)
  460. local qa = {QuaternionFromCFrame(a)}
  461. local qb = {QuaternionFromCFrame(b)}
  462. local ax, ay, az = a.x, a.y, a.z
  463. local bx, by, bz = b.x, b.y, b.z
  464. local _t = 1 - t
  465. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  466. end
  467.  
  468. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  469. local frame = IT("Frame")
  470. frame.BackgroundTransparency = TRANSPARENCY
  471. frame.BorderSizePixel = BORDERSIZEPIXEL
  472. frame.Position = POSITION
  473. frame.Size = SIZE
  474. frame.BackgroundColor3 = COLOR
  475. frame.BorderColor3 = BORDERCOLOR
  476. frame.Name = NAME
  477. frame.Parent = PARENT
  478. return frame
  479. end
  480.  
  481. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  482. local label = IT("TextLabel")
  483. label.BackgroundTransparency = 1
  484. label.Size = UD2(1, 0, 1, 0)
  485. label.Position = UD2(0, 0, 0, 0)
  486. label.TextColor3 = TEXTCOLOR
  487. label.TextStrokeTransparency = STROKETRANSPARENCY
  488. label.TextTransparency = TRANSPARENCY
  489. label.FontSize = TEXTFONTSIZE
  490. label.Font = TEXTFONT
  491. label.BorderSizePixel = BORDERSIZEPIXEL
  492. label.TextScaled = false
  493. label.Text = TEXT
  494. label.Name = NAME
  495. label.Parent = PARENT
  496. return label
  497. end
  498.  
  499. function NoOutlines(PART)
  500. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  501. end
  502.  
  503.  
  504. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  505. local NEWWELD = IT(TYPE)
  506. NEWWELD.Part0 = PART0
  507. NEWWELD.Part1 = PART1
  508. NEWWELD.C0 = C0
  509. NEWWELD.C1 = C1
  510. NEWWELD.Parent = PARENT
  511. return NEWWELD
  512. end
  513.  
  514. function CreateSound(ID, PARENT, VOLUME, PITCH)
  515. local NEWSOUND = nil
  516. coroutine.resume(coroutine.create(function()
  517. NEWSOUND = IT("Sound", PARENT)
  518. NEWSOUND.Volume = VOLUME
  519. NEWSOUND.Pitch = PITCH
  520. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  521. Swait()
  522. NEWSOUND:play()
  523. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  524. end))
  525. return NEWSOUND
  526. end
  527.  
  528. function CFrameFromTopBack(at, top, back)
  529. local right = top:Cross(back)
  530. 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)
  531. end
  532.  
  533. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  534. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  535. local mesh = IT("SpecialMesh",wave)
  536. mesh.MeshType = "FileMesh"
  537. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  538. mesh.Scale = VT(size,size,size)
  539. mesh.Offset = VT(0,0,-size/8)
  540. wave.CFrame = cframe
  541. coroutine.resume(coroutine.create(function(PART)
  542. for i = 1, waitt do
  543. Swait()
  544. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  545. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  546. if doesrotate == true then
  547. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  548. end
  549. wave.Transparency = wave.Transparency + (0.5/waitt)
  550. if wave.Transparency > 0.99 then
  551. wave:remove()
  552. end
  553. end
  554. end))
  555. end
  556.  
  557. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  558. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  559. local mesh = IT("SpecialMesh",wave)
  560. mesh.MeshType = "FileMesh"
  561. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  562. mesh.Scale = VT(size,size,size)
  563. wave.CFrame = cframe
  564. coroutine.resume(coroutine.create(function(PART)
  565. for i = 1, waitt do
  566. Swait()
  567. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  568. if doesrotate == true then
  569. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  570. end
  571. wave.Transparency = wave.Transparency + (0.5/waitt)
  572. if wave.Transparency > 0.99 then
  573. wave:remove()
  574. end
  575. end
  576. end))
  577. end
  578.  
  579. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  580. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  581. local mesh = IT("SpecialMesh",wave)
  582. mesh.MeshType = "FileMesh"
  583. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  584. mesh.Scale = VT(size,size,size)
  585. wave.CFrame = cframe
  586. coroutine.resume(coroutine.create(function(PART)
  587. for i = 1, waitt do
  588. Swait()
  589. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  590. if doesrotate == true then
  591. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  592. end
  593. wave.Transparency = wave.Transparency + (0.5/waitt)
  594. if wave.Transparency > 0.99 then
  595. wave:remove()
  596. end
  597. end
  598. end))
  599. end
  600.  
  601. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color)
  602. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  603. local mesh = IT("SpecialMesh",wave)
  604. mesh.MeshType = "FileMesh"
  605. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  606. mesh.Scale = VT(size,size,size)
  607. mesh.Offset = VT(0,0,0)
  608. wave.CFrame = cframe
  609. coroutine.resume(coroutine.create(function(PART)
  610. for i = 1, waitt do
  611. Swait()
  612. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  613. if doesrotate == true then
  614. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  615. end
  616. wave.Transparency = wave.Transparency + (0.5/waitt)
  617. if wave.Transparency > 0.99 then
  618. wave:remove()
  619. end
  620. end
  621. end))
  622. end
  623.  
  624. function MagicSphere(size,waitt,cframe,color)
  625. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  626. local mesh = IT("SpecialMesh",wave)
  627. mesh.MeshType = "Sphere"
  628. mesh.Scale = VT(size,size,size)
  629. mesh.Offset = VT(0,0,0)
  630. wave.CFrame = cframe
  631. coroutine.resume(coroutine.create(function(PART)
  632. for i = 1, waitt do
  633. Swait()
  634. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  635. wave.Transparency = wave.Transparency + (1/waitt)
  636. if wave.Transparency > 0.99 then
  637. wave:remove()
  638. end
  639. end
  640. end))
  641. end
  642.  
  643. function MagicSphere2(size,waitt,cframe,color)
  644. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  645. local mesh = IT("SpecialMesh",wave)
  646. mesh.MeshType = "Sphere"
  647. mesh.Scale = VT(size,size,size)
  648. mesh.Offset = VT(0,0,0)
  649. wave.CFrame = cframe
  650. coroutine.resume(coroutine.create(function(PART)
  651. for i = 1, waitt do
  652. Swait()
  653. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  654. wave.Transparency = wave.Transparency - (1/waitt)
  655. end
  656. wave:remove()
  657. end))
  658. end
  659.  
  660. function BreakEffect(brickcolor,cframe,x1,y1,z1,material)
  661. local prt=part("Custom",workspace,material,0,0,brickcolor,"Effect",VT(0.5,0.5,0.5))
  662. prt.Anchored=true
  663. prt.CFrame=cframe*EULER(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  664. local msh=mesh("SpecialMesh",prt,"Sphere","",VT(0,0,0),VT(x1,y1,z1))
  665. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  666. CF=Part.CFrame
  667. Numbb=0
  668. randnumb=math.random()-math.random()
  669. for i=0,1,0.05 do
  670. wait()
  671. CF=CF*CF(0,1,0)
  672. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  673. Part.CFrame=CF*EULER(Numbb,0,0)
  674. Part.Transparency=i
  675. Numbb=Numbb+randnumb
  676. end
  677. Part.Parent=nil
  678. end),prt)
  679. end
  680.  
  681. function MagicBlock(size,waitt,cframe,color)
  682. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  683. local mesh = IT("BlockMesh",wave)
  684. wave.CFrame = cframe
  685. coroutine.resume(coroutine.create(function(PART)
  686. for i = 1, waitt do
  687. Swait()
  688. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  689. wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  690. wave.Transparency = wave.Transparency + (1/waitt)
  691. if wave.Transparency > 0.99 then
  692. wave:remove()
  693. end
  694. end
  695. end))
  696. end
  697.  
  698. local EyeSizes={
  699. NumberSequenceKeypoint.new(0,1,0),
  700. NumberSequenceKeypoint.new(1,0.2,0)
  701. }
  702. local EyeTrans={
  703. NumberSequenceKeypoint.new(0,0.8,0),
  704. NumberSequenceKeypoint.new(1,1,0)
  705. }
  706. local PE=Instance.new("ParticleEmitter")
  707. PE.LightEmission=0
  708. PE.Size=NumberSequence.new(EyeSizes)
  709. PE.Transparency=NumberSequence.new(EyeTrans)
  710. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  711. PE.Rotation=NumberRange.new(0,360)
  712. PE.Rate=15
  713. PE.Acceleration = Vector3.new(0,75,0)
  714. PE.Drag = 5
  715. PE.Enabled = false
  716. PE.Speed = NumberRange.new(0,0,0)
  717. PE.Texture="http://www.roblox.com/asset/?id=1179557490"
  718. PE.ZOffset = 0
  719. PE.Name = "Particles"
  720.  
  721. function CreateParticles(art,text,accel,drag,rate,type,isenabledbydefault)
  722. local particle = PE:Clone()
  723. particle.Parent = art
  724. particle.Acceleration = accel
  725. PE.Rate = rate
  726. if type == "Fire" then
  727. local EyeSizes={
  728. NumberSequenceKeypoint.new(0,1,0.3),
  729. NumberSequenceKeypoint.new(1,0.2,0.2)
  730. }
  731. PE.Size = NumberSequence.new(EyeSizes)
  732. elseif type == "Smoke" then
  733. local EyeSizes={
  734. NumberSequenceKeypoint.new(0,1,0),
  735. NumberSequenceKeypoint.new(1,5,0.5)
  736. }
  737. PE.Size = NumberSequence.new(EyeSizes)
  738. elseif type == "Solid" then
  739. local EyeSizes={
  740. NumberSequenceKeypoint.new(0,1,0),
  741. NumberSequenceKeypoint.new(1,1,0)
  742. }
  743. PE.Size = NumberSequence.new(EyeSizes)
  744. end
  745. PE.Drag = drag
  746. particle.Texture = "http://www.roblox.com/asset/?id="..text
  747. particle.Enabled = isenabledbydefault
  748. return particle
  749. end
  750.  
  751. function MakeForm(PART,TYPE)
  752. if TYPE == "Cyl" then
  753. local MSH = IT("CylinderMesh",PART)
  754. elseif TYPE == "Ball" then
  755. local MSH = IT("SpecialMesh",PART)
  756. MSH.MeshType = "Sphere"
  757. elseif TYPE == "Wedge" then
  758. local MSH = IT("SpecialMesh",PART)
  759. MSH.MeshType = "Wedge"
  760. end
  761. end
  762.  
  763. --//=================================\\
  764. --\\=================================//
  765.  
  766. function createaddongen(limb,position,size)
  767. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false)
  768. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
  769. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", limb.Name.." Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false)
  770. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
  771. end
  772.  
  773. function creategauntlet(limb)
  774. --main--
  775. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
  776. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  777. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
  778. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  779. MakeForm(part,"Wedge")
  780. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
  781. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
  782. MakeForm(part,"Wedge")
  783. local part = CreatePart(3, Weapon, "Glass", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
  784. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  785. --neon addons
  786. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", limb.Name.." Neon Gauntlet Part", VT(1.05*Player_Size,2.05*Player_Size,1.05*Player_Size),false)
  787. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  788. --misc--
  789. createaddongen(limb,0.25,0.75)
  790. createaddongen(limb,-0.2,0.25)
  791. createaddongen(limb,-0.35,0.25)
  792. createaddongen(limb,-0.65,0.45)
  793. end
  794.  
  795. --//=================================\\
  796. --|| WEAPON CREATION
  797. --\\=================================//
  798.  
  799. creategauntlet(RightArm)
  800. creategauntlet(LeftLeg)
  801.  
  802. if Player_Size ~= 1 then
  803. for _, v in pairs (Weapon:GetChildren()) do
  804. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  805. local p1 = v.Part1
  806. v.Part1 = nil
  807. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  808. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  809. v.Part1 = p1
  810. elseif v.ClassName == "Part" then
  811. for _, b in pairs (v:GetChildren()) do
  812. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  813. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  814. end
  815. end
  816. end
  817. end
  818. end
  819.  
  820. for _, c in pairs(Weapon:GetChildren()) do
  821. if c.ClassName == "Part" then
  822. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  823. end
  824. end
  825.  
  826. Weapon.Parent = Character
  827.  
  828. Humanoid.Died:connect(function()
  829. sick:remove()
  830. sick2:remove()
  831. CreateSound("167285348", Head, 3, 1)
  832. ATTACK = true
  833. end)
  834.  
  835. print(Class_Name.." loaded.")
  836.  
  837. --//=================================\\
  838. --|| SPEECH
  839. --\\=================================//
  840.  
  841. function chatfunc(text,waitt)
  842. local chat = coroutine.wrap(function()
  843. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  844. Character:FindFirstChild("TalkingBillBoard"):destroy()
  845. end
  846. local naeeym2 = Instance.new("BillboardGui",Character)
  847. naeeym2.Size = UDim2.new(0,100,0,40)
  848. naeeym2.StudsOffset = Vector3.new(0,5,0)
  849. naeeym2.Adornee = Character.Head
  850. naeeym2.Name = "TalkingBillBoard"
  851. naeeym2.AlwaysOnTop = true
  852. local tecks2 = Instance.new("TextLabel",naeeym2)
  853. tecks2.BackgroundTransparency = 1
  854. tecks2.BorderSizePixel = 0
  855. tecks2.Text = ""
  856. tecks2.Font = "SciFi"
  857. tecks2.TextSize = 30
  858. tecks2.TextStrokeTransparency = 1
  859. tecks2.TextColor3 = SKILLTEXTCOLOR
  860. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  861. tecks2.Size = UDim2.new(1,0,0.5,0)
  862. for i = 1,string.len(text),1 do
  863. tecks2.Text = string.sub(text,1,i)
  864. Swait()
  865. end
  866. wait(waitt)
  867. coroutine.resume(coroutine.create(function()
  868. for i = 1, 10 do
  869. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  870. Swait()
  871. end
  872. naeeym2:Destroy()
  873. end))
  874. end)
  875. chat()
  876. end
  877.  
  878. --//=================================\\
  879. --|| DAMAGE FUNCTIONS
  880. --\\=================================//
  881.  
  882. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  883. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  884. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  885. local BODYGYRO = IT("BodyGyro", STATPART)
  886. local BODYPOSITION = IT("BodyPosition", STATPART)
  887. BODYPOSITION.P = 2000
  888. BODYPOSITION.D = 100
  889. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  890. if LABELTYPE == "Normal" then
  891. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  892. elseif LABELTYPE == "Debuff" then
  893. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  894. elseif LABELTYPE == "Interruption" then
  895. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  896. end
  897. game:GetService("Debris"):AddItem(STATPART ,5)
  898. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  899. BILLBOARDGUI.Adornee = STATPART
  900. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  901. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  902. BILLBOARDGUI.AlwaysOnTop = false
  903. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  904. TEXTLABEL.BackgroundTransparency = 1
  905. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  906. TEXTLABEL.Text = TEXT
  907. TEXTLABEL.Font = "SciFi"
  908. TEXTLABEL.FontSize="Size42"
  909. TEXTLABEL.TextColor3 = COLOR
  910. TEXTLABEL.TextStrokeTransparency = 1
  911. TEXTLABEL.TextScaled = true
  912. TEXTLABEL.TextWrapped = true
  913. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  914. wait(0.2)
  915. for i=1, 5 do
  916. wait()
  917. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  918. end
  919. wait(1.2)
  920. for i=1, 5 do
  921. wait()
  922. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  923. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  924. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  925. end
  926. THEPART.Parent = nil
  927. end),STATPART, BODYPOSITION, TEXTLABEL)
  928. end
  929.  
  930.  
  931. --//=================================\\
  932. --|| DAMAGING
  933. --\\=================================//
  934.  
  935. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  936. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  937. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  938. local dmg = math.random(min,max)
  939. if humanoid.Health > 0 then
  940. if beserk == true then
  941. humanoid.Health = 0
  942. else
  943. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  944. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  945. if math.random(1,100) < critrate+1 then
  946. humanoid.Health = humanoid.Health - dmg*critmultiplier
  947. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  948. else
  949. humanoid.Health = humanoid.Health - dmg
  950. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
  951. end
  952. local defence = Instance.new("BoolValue",hit.Parent)
  953. defence.Name = ("HitBy"..Player.Name)
  954. game:GetService("Debris"):AddItem(defence, 0.5)
  955. end
  956. end
  957. end
  958. end
  959.  
  960. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
  961. local dmg = math.random(min,max)
  962. for i,v in ipairs(workspace:GetChildren()) do
  963. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  964. local body = v:GetChildren()
  965. for part = 1, #body do
  966. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  967. if(body[part].Position - position).Magnitude < radius then
  968. if v.ClassName == "Model" then
  969. if v:FindFirstChild("Humanoid") then
  970. if v.Humanoid.Health ~= 0 then
  971. if CanBeDodgedByJumping == true then
  972. if body[part].Position.Y < position.Y+5 then
  973. if math.random(1,100) < critrate+1 then
  974. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  975. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  976. else
  977. v.Humanoid.Health = v.Humanoid.Health - dmg
  978. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  979. end
  980. local defence = Instance.new("BoolValue",v)
  981. defence.Name = ("HitBy"..Player.Name)
  982. game:GetService("Debris"):AddItem(defence, 0.5)
  983. end
  984. else
  985. if beserk == true then
  986. v.Humanoid.Health = 0
  987. end
  988. if math.random(1,100) < critrate+1 then
  989. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  990. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  991. else
  992. v.Humanoid.Health = v.Humanoid.Health - dmg
  993. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  994. end
  995. local defence = Instance.new("BoolValue",v)
  996. defence.Name = ("HitBy"..Player.Name)
  997. game:GetService("Debris"):AddItem(defence, 0.5)
  998. end
  999. end
  1000. end
  1001. end
  1002. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1003. end
  1004. end
  1005. end
  1006. if v.ClassName == "Part" then
  1007. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1008. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1009. end
  1010. end
  1011. end
  1012. end
  1013. end
  1014.  
  1015. function killnearest(position,range,maxstrength)
  1016. for i,v in ipairs(workspace:GetChildren()) do
  1017. local body = v:GetChildren()
  1018. for part = 1, #body do
  1019. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1020. if(body[part].Position - position).Magnitude < range then
  1021. if v.ClassName == "Model" then
  1022. v:BreakJoints()
  1023. end
  1024. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1025. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1026. end
  1027. end
  1028. end
  1029. if v.ClassName == "Part" then
  1030. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1031. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1032. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1033. end
  1034. end
  1035. end
  1036. end
  1037.  
  1038. --//=================================\\
  1039. --|| ATTACK FUNCTIONS AND STUFF
  1040. --\\=================================//
  1041.  
  1042. function CheckTableForString(Table, String)
  1043. for i, v in pairs(Table) do
  1044. if string.find(string.lower(String), string.lower(v)) then
  1045. return true
  1046. end
  1047. end
  1048. return false
  1049. end
  1050.  
  1051. function CheckIntangible(Hit)
  1052. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1053. if Hit and Hit.Parent then
  1054. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1055. return true
  1056. end
  1057. end
  1058. return false
  1059. end
  1060.  
  1061. Debris = game:GetService("Debris")
  1062.  
  1063. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1064. local Direction = CFrame.new(StartPos, Vec).lookVector
  1065. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1066. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1067. if RayHit and CheckIntangible(RayHit) then
  1068. if DelayIfHit then
  1069. wait()
  1070. end
  1071. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1072. end
  1073. return RayHit, RayPos, RayNormal
  1074. end
  1075.  
  1076. function turnto(position)
  1077. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1078. end
  1079.  
  1080. function ExplodeBomb(b)
  1081. b.Parent = Effects
  1082. b.Anchored = true
  1083. CreateSound("215395285", b, 10, 1)
  1084. MagicSphere(5,50,b.CFrame,"Really red")
  1085. b.Transparency = 1
  1086. MagicBlock(3,45,b.CFrame,"Really red")
  1087. --BreakEffect("Really red",b.CFrame,2,2,2,"Neon")
  1088. for i = 1, 10 do
  1089. CreateSwirl(0,5,true,-0.2,25,b.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
  1090. end
  1091. killnearest(b.Position,30,25)
  1092. game:GetService("Debris"):AddItem(b, 5)
  1093. end
  1094.  
  1095. function Detonate()
  1096. bomb = Bombs:GetChildren()
  1097. for lol = 1, #bomb do
  1098. if bomb[lol].ClassName == "Part" then
  1099. local b = bomb[lol]
  1100. ExplodeBomb(b)
  1101. end
  1102. end
  1103. end
  1104.  
  1105.  
  1106.  
  1107. function TyranyCannon()
  1108. ATTACK = true
  1109. for i=0, 1, 0.1 / Animation_Speed do
  1110. Swait()
  1111. turnto(Mouse.Hit.p)
  1112. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed/5)
  1113. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1114. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1115. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1116. RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-1.25), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1117. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1118. end
  1119. local POS = Mouse.Hit.p
  1120. for i = 1, 5 do
  1121. MagicSphere(2,10,RightArm.CFrame * CF(0,-1,0),"Really red")
  1122. Swait(5)
  1123. end
  1124. CreateSound("438666196", RightArm, 5, 1)
  1125. MagicSphere(5,10,RightArm.CFrame * CF(0,-1,0),"Really red")
  1126. local Projectile = CreatePart(3, Bombs, "Neon", 0, 0, "Really red", "Bomb-Projectile", VT(5,5,5),false)
  1127. Projectile.CFrame = RightArm.CFrame * CF(0,-1,0)
  1128. Projectile.CanCollide = false
  1129. MakeForm(Projectile,"Ball")
  1130. local grav = Instance.new("BodyPosition",Projectile)
  1131. grav.P = 25000
  1132. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1133. grav.position = POS
  1134. grav.Name = "GravityForce"
  1135. local harm = Projectile.Touched:Connect(function(hit)
  1136. if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") and Projectile.Parent ~= Effects then
  1137. ExplodeBomb(Projectile)
  1138. end
  1139. end)
  1140. ATTACK = false
  1141. end
  1142.  
  1143. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  1144. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  1145. end
  1146.  
  1147. function EarthShatter()
  1148. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1149. if HITFLOOR ~= nil then
  1150. ATTACK = true
  1151. Rooted = true
  1152. for i=0, 1, 0.1 / Animation_Speed/2 do
  1153. Swait()
  1154. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed/8)
  1155. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1156. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, 1 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed/8)
  1157. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed/8)
  1158. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed/8)
  1159. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed/8)
  1160. end
  1161. for i=0, 1, 0.1 / Animation_Speed*5 do
  1162. Swait()
  1163. RootPart.Anchored = true
  1164. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
  1165. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
  1166. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5)
  1167. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5)
  1168. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5)
  1169. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5)
  1170. end
  1171. local POS = RightArm.CFrame * CF(0,-1,0).p
  1172. for i = 1,10 do
  1173. CreateWave(0,10,true,0.05,25,CF(POS),"Really black")
  1174. CreateWave(0,6,true,-0.05,25,CF(POS),"Really black")
  1175. CreateWave(0,2,true,0.05,25,CF(POS),"Really black")
  1176. killnearest(POS,15,25)
  1177. CreateSound("438666141", RightArm, 5, 1)
  1178. for i = 1, 40 do
  1179. local angle = math.random(-180,180)
  1180. coroutine.resume(coroutine.create(function()
  1181. local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character})
  1182. local SpawnPosition = RayPos
  1183. local floor = RayHit
  1184. local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0))
  1185. local LastPosition = RayPos
  1186. local Delay = 1
  1187. if floor ~= nil then
  1188. for i = 1, 5 do
  1189. local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace})
  1190. local End = RayPos
  1191. LastPosition = End
  1192. killnearest(End,15,25)
  1193. local locatepart = Instance.new("Part",Effects)
  1194. locatepart.Size = VT(0.5,0.5,0.5)
  1195. locatepart.Position = End
  1196. locatepart.CanCollide = false
  1197. locatepart.Anchored = true
  1198. locatepart.Name = "L0"
  1199. locatepart.Transparency = 1
  1200. if SpawnPosition then
  1201. CreateSwirl(0,2,false,0.05,25,CF(End),"Really black")
  1202. local spike = Instance.new("CornerWedgePart")
  1203. spike.Size = Vector3.new(1,15,1)
  1204. spike.Material = "Neon"
  1205. spike.Color = "Really black"
  1206. spike.Anchored = true
  1207. spike.CanCollide = false
  1208. spike.CFrame = CFrame.new(End.X,SpawnPosition.Y+2,End.Z)
  1209. spike.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15))
  1210. spike.Name = HITFLOOR.Name.."Spike"
  1211. CreateSound("341300954", spike, 1, (math.random(8,12)/10))
  1212. for i = 1, 3 do
  1213. local overlay = spike:Clone()
  1214. overlay.Size = overlay.Size + Vector3.new(0.2,0.2*2,0.2)
  1215. overlay.CFrame = spike.CFrame
  1216. overlay.Parent = nil
  1217. overlay.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15))
  1218. overlay.Parent = Effects
  1219. table.insert(Effects2,{overlay,"Disappear",0.01,0,0,0,0})
  1220. end
  1221. spike.Size = Vector3.new(2,25,2)
  1222. spike.Parent = Effects
  1223. table.insert(Effects2,{spike,"Disappear",0.01,0,0,0,0})
  1224. end
  1225. Swait(5)
  1226. game:GetService("Debris"):AddItem(locatepart, 5)
  1227. end
  1228. end
  1229. end))
  1230. end
  1231. wait(0.05)
  1232. end
  1233. for i=0, 6, 0.1 / Animation_Speed*5 do
  1234. Swait()
  1235. RootPart.Anchored = true
  1236. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
  1237. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
  1238. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5)
  1239. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5)
  1240. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5)
  1241. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5)
  1242. end
  1243. ATTACK = false
  1244. Rooted = false
  1245. end
  1246. end
  1247.  
  1248. function RavagingOverthrower()
  1249. ATTACK = true
  1250. Rooted = true
  1251. chatfunc("I will show you what is death!!!",4)
  1252. for i=0, 1, 0.1 / Animation_Speed do
  1253. Swait()
  1254. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1255. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1256. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1257. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1258. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1259. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1260. end
  1261. CreateSound("348663022", Torso, 5, 1)
  1262. local StartPos = RootPart.CFrame * CF(0,0,-10).p
  1263. for i = 1, 5 do
  1264. MagicSphere2(25,25,CF(StartPos),"Really red")
  1265. Swait(15)
  1266. end
  1267. local soundeffect = IT("Sound",Torso)
  1268. soundeffect.SoundId = "rbxassetid://487186990"
  1269. soundeffect.Looped = true
  1270. soundeffect.Volume = 10
  1271. soundeffect.Playing = true
  1272. repeat
  1273. turnto(Mouse.Hit.p)
  1274. MagicSphere2(25,25,CF(StartPos),"Really red")
  1275. MagicSphere(25/10,25,CF(StartPos),"Really red")
  1276. for i = 1, 3 do
  1277. CreateSwirl(0,25,true,-0.2,5,CF(StartPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
  1278. end
  1279. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
  1280. local distance = (StartPos - RayPos).magnitude
  1281. local RayBeam = IT("Part",Effects)
  1282. RayBeam.Material = "Neon"
  1283. RayBeam.Anchored = true
  1284. RayBeam.BrickColor = BRICKC"Really red"
  1285. local mesh = IT("SpecialMesh",RayBeam)
  1286. mesh.MeshType = "Cylinder"
  1287. RayBeam.Size = Vector3.new(distance+10, math.random(10,15), math.random(10,15))
  1288. RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0))
  1289. MagicSphere(15,5,CF(RayPos),"Really red")
  1290. killnearest(RayPos,15,100)
  1291. for i = 1, 3 do
  1292. CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
  1293. end
  1294. Swait()
  1295. if KEYHOLD == false then
  1296. coroutine.resume(coroutine.create(function()
  1297. for i = 1, 30 do
  1298. RayBeam.Transparency = i/30
  1299. Swait()
  1300. end
  1301. RayBeam:remove()
  1302. end))
  1303. else
  1304. RayBeam:remove()
  1305. end
  1306. until KEYHOLD == false
  1307. soundeffect:remove()
  1308. ATTACK = false
  1309. Rooted = false
  1310. end
  1311.  
  1312. function dodadance()
  1313. ATTACK = true
  1314. Rooted = true
  1315. DANCE = true
  1316. sick:Stop()
  1317. sick2:Play()
  1318. local Animation_Speed2 = 1.5
  1319. HName.Text = "Dance!"
  1320. repeat
  1321. for i=0, 1.3, 0.1 / Animation_Speed2 do
  1322. Swait()
  1323. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(-15)), 0.15 / Animation_Speed2)
  1324. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1325. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1326. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-180)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1327. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1328. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1329. end
  1330. MagicSphere(5,15,Torso.CFrame,"Really red")
  1331. for i=0, 1.3, 0.1 / Animation_Speed2 do
  1332. Swait()
  1333. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(15)), 0.15 / Animation_Speed2)
  1334. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
  1335. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1336. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
  1337. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1338. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(-35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1339. end
  1340. MagicSphere(5,15,Torso.CFrame,"Really red")
  1341. until DANCE == false
  1342. HName.Text = "Satan's Robot"
  1343. sick:Play()
  1344. sick2:Stop()
  1345. ATTACK = false
  1346. Rooted = false
  1347. end
  1348.  
  1349. function Warp()
  1350. MagicSphere2(10,5,Torso.CFrame,"Really red")
  1351. RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+4,Mouse.Hit.p.Z))
  1352. CreateSound("282061340", Torso, 2, 1)
  1353. MagicSphere(5,5,Torso.CFrame,"Really red")
  1354. for i = 1, 3 do
  1355. CreateSwirl(0,5,true,-0.2,25,Torso.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
  1356. end
  1357. killnearest(Torso.Position,12,25)
  1358. Swait()
  1359. turnto(Mouse.Hit.p)
  1360. end
  1361.  
  1362. --//=================================\\
  1363. --|| ASSIGN THINGS TO KEYS
  1364. --\\=================================//
  1365.  
  1366. Humanoid.Changed:connect(function(Jump)
  1367. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1368. Humanoid.Jump = false
  1369. end
  1370. end)
  1371.  
  1372. function MouseDown(Mouse)
  1373. if ATTACK == false then
  1374. end
  1375. end
  1376.  
  1377. function MouseUp(Mouse)
  1378. HOLD = false
  1379. end
  1380.  
  1381. function KeyDown(Key)
  1382. KEYHOLD = true
  1383. if Key == "e" and ATTACK == false then
  1384. TyranyCannon()
  1385. wait(1)
  1386. Detonate()
  1387. end
  1388.  
  1389. if Key == "e" and ATTACK == false then
  1390. EarthShatter()
  1391. end
  1392.  
  1393. if Key == "r" and ATTACK == false then
  1394. RavagingOverthrower()
  1395. end
  1396.  
  1397. if Key == "q" and ATTACK == false then
  1398. Warp()
  1399. end
  1400.  
  1401. if Key == "t" and ATTACK == false then
  1402. CreateSound("159882644", Head, 5, 0.8)
  1403. end
  1404.  
  1405. if Key == "t" and DANCE == true then
  1406. CreateSound("887591869", Head, 5, 1)
  1407. end
  1408.  
  1409. if Key == "x" and (ATTACK == false or DANCE == true) then
  1410. if DANCE == false then
  1411. dodadance()
  1412. elseif DANCE == true then
  1413. DANCE = false
  1414. end
  1415. end
  1416. end
  1417.  
  1418. function KeyUp(Key)
  1419. KEYHOLD = false
  1420. end
  1421.  
  1422. Mouse.Button1Down:connect(function(NEWKEY)
  1423. MouseDown(NEWKEY)
  1424. end)
  1425. Mouse.Button1Up:connect(function(NEWKEY)
  1426. MouseUp(NEWKEY)
  1427. end)
  1428. Mouse.KeyDown:connect(function(NEWKEY)
  1429. KeyDown(NEWKEY)
  1430. end)
  1431. Mouse.KeyUp:connect(function(NEWKEY)
  1432. KeyUp(NEWKEY)
  1433. end)
  1434.  
  1435. --//=================================\\
  1436. --\\=================================//
  1437.  
  1438.  
  1439. function unanchor()
  1440. if UNANCHOR == true then
  1441. g = Character:GetChildren()
  1442. for i = 1, #g do
  1443. if g[i].ClassName == "Part" then
  1444. g[i].Anchored = false
  1445. end
  1446. end
  1447. end
  1448. end
  1449.  
  1450.  
  1451. --//=================================\\
  1452. --|| WRAP THE WHOLE SCRIPT UP
  1453. --\\=================================//
  1454.  
  1455. Humanoid.Changed:connect(function(Jump)
  1456. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1457. Humanoid.Jump = false
  1458. end
  1459. end)
  1460.  
  1461. ANIMATE.Parent = nil
  1462. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1463. IDLEANIMATION:Play()
  1464.  
  1465. while true do
  1466. Swait()
  1467. SINE = SINE + CHANGE
  1468. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1469. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1470. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1471. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1472. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
  1473. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1474. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1475. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_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)
  1476. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1477. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1478. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1479. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1480. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1481. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1482. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1483. end
  1484. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1485. ANIM = "Jump"
  1486. if ATTACK == false then
  1487. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1488. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1489. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1490. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1491. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1492. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1493. end
  1494. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1495. ANIM = "Fall"
  1496. if ATTACK == false then
  1497. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1498. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1499. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1500. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1501. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1502. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1503. end
  1504. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1505. ANIM = "Idle"
  1506. if ATTACK == false then
  1507. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1508. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed)
  1509. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(30)) * ANGLES(RAD(3), RAD(25), RAD(5)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1510. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1511. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
  1512. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1513. end
  1514. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1515. ANIM = "Walk"
  1516. WALK = WALK + 1 / Animation_Speed
  1517. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1518. WALK = 0
  1519. if WALKINGANIM == true then
  1520. WALKINGANIM = false
  1521. elseif WALKINGANIM == false then
  1522. WALKINGANIM = true
  1523. end
  1524. end
  1525. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1526. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1527. if ATTACK == false then
  1528. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1529. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed)
  1530. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1531. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1532. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1533. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1534. end
  1535. end
  1536. if #Effects2>0 then
  1537. for e=1,#Effects2 do
  1538. if Effects2[e]~=nil then
  1539. local Thing=Effects2[e]
  1540. if Thing~=nil then
  1541. local Part=Thing[1]
  1542. local Mode=Thing[2]
  1543. local Delay=Thing[3]
  1544. local IncX=Thing[4]
  1545. local IncY=Thing[5]
  1546. local IncZ=Thing[6]
  1547. local Part2=Thing[8]
  1548. if Thing[1].Transparency<=1 then
  1549. if Thing[2]=="Block1" then
  1550. Thing[1].CFrame=Thing[1].CFrame
  1551. Mesh=Thing[1].Mesh
  1552. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1553. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1554. elseif Thing[2]=="Cylinder" then
  1555. Mesh=Thing[1].Mesh
  1556. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1557. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1558. elseif Thing[2]=="Blood" then
  1559. Mesh=Thing[7]
  1560. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1561. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1562. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1563. elseif Thing[2]=="Elec" then
  1564. Mesh=Thing[1].Mesh
  1565. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1566. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1567. elseif Thing[2]=="Disappear" then
  1568. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1569. end
  1570. else
  1571. Part.Parent=nil
  1572. table.remove(Effects2,e)
  1573. end
  1574. end
  1575. end
  1576. end
  1577. end
  1578. unanchor()
  1579. Humanoid.MaxHealth = "inf"
  1580. Humanoid.Health = "inf"
  1581. Humanoid.Name = "Ravage"
  1582. if Rooted == false then
  1583. Disable_Jump = false
  1584. Humanoid.WalkSpeed = Speed
  1585. elseif Rooted == true then
  1586. Disable_Jump = true
  1587. Humanoid.WalkSpeed = 0
  1588. end
  1589. q = Character:GetChildren()
  1590. for u = 1, #q do
  1591. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1592. q[u]:remove()
  1593. elseif q[u].ClassName == "Shirt" then
  1594. q[u]:Destroy()
  1595. elseif q[u].ClassName == "Pants" then
  1596. q[u]:Destroy()
  1597. elseif q[u].ClassName == "CharacterMesh" then
  1598. q[u]:remove()
  1599. elseif q[u].ClassName == "ShirtGraphic" then
  1600. q[u]:remove()
  1601. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  1602. q[u].Color = Color3.new(0/255, 0/255, 0/255)
  1603. end
  1604. end
  1605. if Head:FindFirstChild("face") then
  1606. Head.face:remove()
  1607. end
  1608. if Head:FindFirstChild("Died") then
  1609. Head.Died:remove()
  1610. end
  1611. bomb = Bombs:GetChildren()
  1612. for lol = 1, #bomb do
  1613. if bomb[lol].ClassName == "Part" then
  1614. MagicSphere2(2,5,bomb[lol].CFrame,"Really black")
  1615. end
  1616. end
  1617. end
  1618.  
  1619. --//=================================\\
  1620. --\\=================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement