Advertisement
DarkScriptZEditors

The mailbox

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