kaualima12

thing

Sep 8th, 2019
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.99 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141. --//====================================================\\--
  142. --|| CREATED BY SHACKLUSTER
  143. --\\====================================================//--
  144.  
  145.  
  146.  
  147. wait(0.2)
  148.  
  149.  
  150.  
  151. Player = owner
  152. PlayerGui = Player.PlayerGui
  153. Cam = workspace.CurrentCamera
  154. Backpack = Player.Backpack
  155. Character = Player.Character
  156. Humanoid = Character.Humanoid
  157. Mouse = Player:GetMouse()
  158. RootPart = Character["HumanoidRootPart"]
  159. Torso = Character["Torso"]
  160. Head = Character["Head"]
  161. RightArm = Character["Right Arm"]
  162. LeftArm = Character["Left Arm"]
  163. RightLeg = Character["Right Leg"]
  164. LeftLeg = Character["Left Leg"]
  165. RootJoint = RootPart["RootJoint"]
  166. Neck = Torso["Neck"]
  167. RightShoulder = Torso["Right Shoulder"]
  168. LeftShoulder = Torso["Left Shoulder"]
  169. RightHip = Torso["Right Hip"]
  170. LeftHip = Torso["Left Hip"]
  171. local sick = Instance.new("Sound",Character)
  172. sick.SoundId = "rbxassetid://1117396305"
  173. sick.Looped = true
  174. sick.Pitch = 1
  175. sick.Volume = 1
  176. sick:Play()
  177.  
  178. IT = Instance.new
  179. CF = CFrame.new
  180. VT = Vector3.new
  181. RAD = math.rad
  182. C3 = Color3.new
  183. UD2 = UDim2.new
  184. BRICKC = BrickColor.new
  185. ANGLES = CFrame.Angles
  186. EULER = CFrame.fromEulerAnglesXYZ
  187. COS = math.cos
  188. ACOS = math.acos
  189. SIN = math.sin
  190. ASIN = math.asin
  191. ABS = math.abs
  192. MRANDOM = math.random
  193. FLOOR = math.floor
  194.  
  195. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  196. local NEWMESH = IT(MESH)
  197. if MESH == "SpecialMesh" then
  198. NEWMESH.MeshType = MESHTYPE
  199. if MESHID ~= "nil" and MESHID ~= "" then
  200. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  201. end
  202. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  203. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  204. end
  205. end
  206. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  207. NEWMESH.Scale = SCALE
  208. NEWMESH.Parent = PARENT
  209. return NEWMESH
  210. end
  211.  
  212. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  213. local NEWPART = IT("Part")
  214. NEWPART.formFactor = FORMFACTOR
  215. NEWPART.Reflectance = REFLECTANCE
  216. NEWPART.Transparency = TRANSPARENCY
  217. NEWPART.CanCollide = false
  218. NEWPART.Locked = true
  219. NEWPART.Anchored = true
  220. if ANCHOR == false then
  221. NEWPART.Anchored = false
  222. end
  223. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  224. NEWPART.Name = NAME
  225. NEWPART.Size = SIZE
  226. NEWPART.Position = Torso.Position
  227. NEWPART.Material = MATERIAL
  228. NEWPART:BreakJoints()
  229. NEWPART.Parent = PARENT
  230. return NEWPART
  231. end
  232.  
  233. --//=================================\\
  234. --|| CUSTOMIZATION
  235. --\\=================================//
  236.  
  237. Class_Name = "Template"
  238. Weapon_Name = "Add-ons"
  239.  
  240. Custom_Colors = {
  241. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  242. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  243.  
  244. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  245. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  246. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  247. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  248. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  249.  
  250. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  251. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  252. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  253. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  254. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  255. }
  256.  
  257.  
  258. Player_Size = 1 --Size of the player.
  259. Animation_Speed = 3
  260. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  261.  
  262. local Speed = 16
  263. local Effects2 = {}
  264.  
  265. --//=================================\\
  266. --|| END OF CUSTOMIZATION
  267. --\\=================================//
  268.  
  269. local function weldBetween(a, b)
  270. local weldd = Instance.new("ManualWeld")
  271. weldd.Part0 = a
  272. weldd.Part1 = b
  273. weldd.C0 = CFrame.new()
  274. weldd.C1 = b.CFrame:inverse() * a.CFrame
  275. weldd.Parent = a
  276. return weldd
  277. end
  278.  
  279. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  280. local acs = Instance.new("Part")
  281. acs.CanCollide = false
  282. acs.Anchored = false
  283. acs.Size = Vector3.new(0,0,0)
  284. acs.CFrame = attachmentpart.CFrame
  285. acs.Parent = Character
  286. acs.BrickColor = color
  287. local meshs = Instance.new("SpecialMesh")
  288. meshs.MeshId = mesh
  289. meshs.TextureId = texture
  290. meshs.Parent = acs
  291. meshs.Scale = scale
  292. meshs.Offset = offset
  293. weldBetween(attachmentpart,acs)
  294. end
  295.  
  296. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  297. if TYPE == "Gem" then
  298. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  299. acs.Anchored = false
  300. acs.CanCollide = false
  301. acs.CFrame = PART.CFrame
  302. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  303. weldBetween(PART,acs)
  304. elseif TYPE == "Skull" then
  305. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  306. acs.Anchored = false
  307. acs.CanCollide = false
  308. acs.CFrame = PART.CFrame
  309. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  310. weldBetween(PART,acs)
  311. elseif TYPE == "Eye" then
  312. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  313. acs.Anchored = false
  314. acs.CanCollide = false
  315. acs.CFrame = PART.CFrame
  316. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  317. weldBetween(PART,acs)
  318. end
  319. end
  320.  
  321. --//=================================\\
  322. --|| USEFUL VALUES
  323. --\\=================================//
  324.  
  325. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  326. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  327. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  328. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  329. local CHANGEDEFENSE = 0
  330. local CHANGEDAMAGE = 0
  331. local CHANGEMOVEMENT = 0
  332. local ANIM = "Idle"
  333. local ATTACK = false
  334. local EQUIPPED = false
  335. local HOLD = false
  336. local COMBO = 1
  337. local Rooted = false
  338. local SINE = 0
  339. local KEYHOLD = false
  340. local CHANGE = 2 / Animation_Speed
  341. local WALKINGANIM = false
  342. local WALK = 0
  343. local VALUE1 = false
  344. local VALUE2 = false
  345. local ROBLOXIDLEANIMATION = IT("Animation")
  346. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  347. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  348. --ROBLOXIDLEANIMATION.Parent = Humanoid
  349. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  350. WEAPONGUI.Name = "Weapon GUI"
  351. local Weapon = IT("Model")
  352. Weapon.Name = Weapon_Name
  353. local Effects = IT("Folder", Weapon)
  354. Effects.Name = "Effects"
  355. local ANIMATOR = Humanoid.Animator
  356. local ANIMATE = Character.Animate
  357. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  358. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  359. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  360. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  361. local UNANCHOR = true
  362.  
  363. local SKILLTEXTCOLOR = C3(1,0,0)
  364.  
  365. --//=================================\\
  366. --\\=================================//
  367.  
  368.  
  369. --//=================================\\
  370. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  371. --\\=================================//
  372.  
  373. ArtificialHB = Instance.new("BindableEvent", script)
  374. ArtificialHB.Name = "ArtificialHB"
  375.  
  376. script:WaitForChild("ArtificialHB")
  377.  
  378. frame = Frame_Speed
  379. tf = 0
  380. allowframeloss = false
  381. tossremainder = false
  382. lastframe = tick()
  383. script.ArtificialHB:Fire()
  384.  
  385. game:GetService("RunService").Heartbeat:connect(function(s, p)
  386. tf = tf + s
  387. if tf >= frame then
  388. if allowframeloss then
  389. script.ArtificialHB:Fire()
  390. lastframe = tick()
  391. else
  392. for i = 1, math.floor(tf / frame) do
  393. script.ArtificialHB:Fire()
  394. end
  395. lastframe = tick()
  396. end
  397. if tossremainder then
  398. tf = 0
  399. else
  400. tf = tf - frame * math.floor(tf / frame)
  401. end
  402. end
  403. end)
  404.  
  405. --//=================================\\
  406. --\\=================================//
  407.  
  408.  
  409.  
  410.  
  411.  
  412. --//=================================\\
  413. --|| SOME FUNCTIONS
  414. --\\=================================//
  415.  
  416. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  417. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  418. end
  419.  
  420. function PositiveAngle(NUMBER)
  421. if NUMBER >= 0 then
  422. NUMBER = 0
  423. end
  424. return NUMBER
  425. end
  426.  
  427. function NegativeAngle(NUMBER)
  428. if NUMBER <= 0 then
  429. NUMBER = 0
  430. end
  431. return NUMBER
  432. end
  433.  
  434. function Swait(NUMBER)
  435. if NUMBER == 0 or NUMBER == nil then
  436. ArtificialHB.Event:wait()
  437. else
  438. for i = 1, NUMBER do
  439. ArtificialHB.Event:wait()
  440. end
  441. end
  442. end
  443.  
  444. function QuaternionFromCFrame(cf)
  445. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  446. local trace = m00 + m11 + m22
  447. if trace > 0 then
  448. local s = math.sqrt(1 + trace)
  449. local recip = 0.5 / s
  450. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  451. else
  452. local i = 0
  453. if m11 > m00 then
  454. i = 1
  455. end
  456. if m22 > (i == 0 and m00 or m11) then
  457. i = 2
  458. end
  459. if i == 0 then
  460. local s = math.sqrt(m00 - m11 - m22 + 1)
  461. local recip = 0.5 / s
  462. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  463. elseif i == 1 then
  464. local s = math.sqrt(m11 - m22 - m00 + 1)
  465. local recip = 0.5 / s
  466. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  467. elseif i == 2 then
  468. local s = math.sqrt(m22 - m00 - m11 + 1)
  469. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  470. end
  471. end
  472. end
  473.  
  474. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  475. local xs, ys, zs = x + x, y + y, z + z
  476. local wx, wy, wz = w * xs, w * ys, w * zs
  477. local xx = x * xs
  478. local xy = x * ys
  479. local xz = x * zs
  480. local yy = y * ys
  481. local yz = y * zs
  482. local zz = z * zs
  483. 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))
  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(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  588. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  589. local mesh = IT("SpecialMesh",wave)
  590. mesh.MeshType = "FileMesh"
  591. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  592. mesh.Scale = SIZE
  593. mesh.Offset = VT(0,0,-SIZE.X/8)
  594. wave.CFrame = CFRAME
  595. coroutine.resume(coroutine.create(function(PART)
  596. for i = 1, WAIT do
  597. Swait()
  598. mesh.Scale = mesh.Scale + GROW
  599. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  600. if DOESROT == true then
  601. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  602. end
  603. wave.Transparency = wave.Transparency + (0.5/WAIT)
  604. if wave.Transparency > 0.99 then
  605. wave:remove()
  606. end
  607. end
  608. end))
  609. end
  610.  
  611. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  612. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  613. local mesh = IT("SpecialMesh",wave)
  614. mesh.MeshType = "FileMesh"
  615. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  616. mesh.Scale = SIZE
  617. mesh.Offset = VT(0,0,-SIZE.X/8)
  618. wave.CFrame = CFRAME
  619. coroutine.resume(coroutine.create(function(PART)
  620. for i = 1, WAIT do
  621. Swait()
  622. mesh.Scale = mesh.Scale + GROW
  623. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  624. if DOESROT == true then
  625. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  626. end
  627. wave.Transparency = wave.Transparency + (0.5/WAIT)
  628. if wave.Transparency > 0.99 then
  629. wave:remove()
  630. end
  631. end
  632. end))
  633. end
  634.  
  635. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  636. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  637. local mesh = IT("SpecialMesh",wave)
  638. mesh.MeshType = "FileMesh"
  639. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  640. mesh.Scale = SIZE
  641. mesh.Offset = VT(0,0,-SIZE.X/8)
  642. wave.CFrame = CFRAME
  643. coroutine.resume(coroutine.create(function(PART)
  644. for i = 1, WAIT do
  645. Swait()
  646. mesh.Scale = mesh.Scale + GROW
  647. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  648. if DOESROT == true then
  649. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  650. end
  651. wave.Transparency = wave.Transparency + (0.5/WAIT)
  652. if wave.Transparency > 0.99 then
  653. wave:remove()
  654. end
  655. end
  656. end))
  657. end
  658.  
  659. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  660. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  661. local mesh = IT("SpecialMesh",wave)
  662. mesh.MeshType = "FileMesh"
  663. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  664. mesh.Scale = SIZE
  665. mesh.Offset = VT(0,0,-SIZE.X/8)
  666. wave.CFrame = CFRAME
  667. coroutine.resume(coroutine.create(function(PART)
  668. for i = 1, WAIT do
  669. Swait()
  670. mesh.Scale = mesh.Scale + GROW
  671. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  672. if DOESROT == true then
  673. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  674. end
  675. wave.Transparency = wave.Transparency + (0.5/WAIT)
  676. if wave.Transparency > 0.99 then
  677. wave:remove()
  678. end
  679. end
  680. end))
  681. end
  682.  
  683. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  684. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  685. local mesh = IT("SpecialMesh",wave)
  686. mesh.MeshType = "FileMesh"
  687. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  688. mesh.Scale = SIZE
  689. wave.CFrame = CFRAME
  690. coroutine.resume(coroutine.create(function(PART)
  691. for i = 1, WAIT do
  692. Swait()
  693. mesh.Scale = mesh.Scale + GROW
  694. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  695. if DOESROT == true then
  696. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  697. end
  698. wave.Transparency = wave.Transparency + (0.5/WAIT)
  699. if wave.Transparency > 0.99 then
  700. wave:remove()
  701. end
  702. end
  703. end))
  704. end
  705.  
  706. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  707. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  708. local mesh = IT("SpecialMesh",wave)
  709. mesh.MeshType = "FileMesh"
  710. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  711. mesh.Scale = SIZE
  712. wave.CFrame = CFRAME
  713. coroutine.resume(coroutine.create(function(PART)
  714. for i = 1, WAIT do
  715. Swait()
  716. mesh.Scale = mesh.Scale + GROW
  717. if DOESROT == true then
  718. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  719. end
  720. wave.Transparency = wave.Transparency + (0.5/WAIT)
  721. if wave.Transparency > 0.99 then
  722. wave:remove()
  723. end
  724. end
  725. end))
  726. end
  727.  
  728. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  729. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  730. local mesh = IT("SpecialMesh",wave)
  731. mesh.MeshType = "FileMesh"
  732. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  733. mesh.Scale = SIZE
  734. mesh.Offset = VT(0,0,0)
  735. wave.CFrame = CFRAME
  736. coroutine.resume(coroutine.create(function(PART)
  737. for i = 1, WAIT do
  738. Swait()
  739. mesh.Scale = mesh.Scale + GROW
  740. if DOESROT == true then
  741. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  742. end
  743. wave.Transparency = wave.Transparency + (0.5/WAIT)
  744. if wave.Transparency > 0.99 then
  745. wave:remove()
  746. end
  747. end
  748. end))
  749. end
  750.  
  751. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  752. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  753. local mesh = IT("SpecialMesh",wave)
  754. mesh.MeshType = "Sphere"
  755. mesh.Scale = SIZE
  756. mesh.Offset = VT(0,0,0)
  757. wave.CFrame = CFRAME
  758. coroutine.resume(coroutine.create(function(PART)
  759. for i = 1, WAIT do
  760. Swait()
  761. mesh.Scale = mesh.Scale + GROW
  762. wave.Transparency = wave.Transparency + (1/WAIT)
  763. if wave.Transparency > 0.99 then
  764. wave:remove()
  765. end
  766. end
  767. end))
  768. return wave
  769. end
  770.  
  771. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  772. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  773. local mesh = IT("BlockMesh",wave)
  774. wave.CFrame = CFRAME
  775. coroutine.resume(coroutine.create(function(PART)
  776. for i = 1, WAIT do
  777. Swait()
  778. mesh.Scale = mesh.Scale + GROW
  779. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  780. wave.Transparency = wave.Transparency + (1/WAIT)
  781. if wave.Transparency > 0.99 then
  782. wave:remove()
  783. end
  784. end
  785. end))
  786. end
  787.  
  788. function MakeForm(PART,TYPE)
  789. if TYPE == "Cyl" then
  790. local MSH = IT("CylinderMesh",PART)
  791. elseif TYPE == "Ball" then
  792. local MSH = IT("SpecialMesh",PART)
  793. MSH.MeshType = "Sphere"
  794. elseif TYPE == "Wedge" then
  795. local MSH = IT("SpecialMesh",PART)
  796. MSH.MeshType = "Wedge"
  797. end
  798. end
  799.  
  800. function CheckTableForString(Table, String)
  801. for i, v in pairs(Table) do
  802. if string.find(string.lower(String), string.lower(v)) then
  803. return true
  804. end
  805. end
  806. return false
  807. end
  808.  
  809. function CheckIntangible(Hit)
  810. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  811. if Hit and Hit.Parent then
  812. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  813. return true
  814. end
  815. end
  816. return false
  817. end
  818.  
  819. Debris = game:GetService("Debris")
  820.  
  821. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  822. local Direction = CFrame.new(StartPos, Vec).lookVector
  823. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  824. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  825. if RayHit and CheckIntangible(RayHit) then
  826. if DelayIfHit then
  827. wait()
  828. end
  829. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  830. end
  831. return RayHit, RayPos, RayNormal
  832. end
  833.  
  834. function turnto(position)
  835. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  836. end
  837.  
  838. --//=================================\\
  839. --|| SPEECH
  840. --\\=================================//
  841.  
  842. function chatfunc(text,waitt)
  843. local chat = coroutine.wrap(function()
  844. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  845. Character:FindFirstChild("TalkingBillBoard"):destroy()
  846. end
  847. local naeeym2 = Instance.new("BillboardGui",Character)
  848. naeeym2.Size = UDim2.new(0,100,0,40)
  849. naeeym2.StudsOffset = Vector3.new(0,5,0)
  850. naeeym2.Adornee = Character.Head
  851. naeeym2.Name = "TalkingBillBoard"
  852. naeeym2.AlwaysOnTop = true
  853. local tecks2 = Instance.new("TextLabel",naeeym2)
  854. tecks2.BackgroundTransparency = 1
  855. tecks2.BorderSizePixel = 0
  856. tecks2.Text = ""
  857. tecks2.Font = "SciFi"
  858. tecks2.TextSize = 30
  859. tecks2.TextStrokeTransparency = 1
  860. tecks2.TextColor3 = SKILLTEXTCOLOR
  861. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  862. tecks2.Size = UDim2.new(1,0,0.5,0)
  863. for i = 1,string.len(text),1 do
  864. tecks2.Text = string.sub(text,1,i)
  865. Swait()
  866. end
  867. wait(waitt)
  868. coroutine.resume(coroutine.create(function()
  869. for i = 1, 10 do
  870. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  871. Swait()
  872. end
  873. naeeym2:Destroy()
  874. end))
  875. end)
  876. chat()
  877. end
  878.  
  879. --//=================================\\
  880. --|| WEAPON CREATION
  881. --\\=================================//
  882.  
  883. for _, c in pairs(Weapon:GetChildren()) do
  884. if c.ClassName == "Part" then
  885. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  886. end
  887. end
  888.  
  889. Weapon.Parent = Character
  890.  
  891. Humanoid.Died:connect(function()
  892. ATTACK = true
  893. end)
  894.  
  895. local MANA = 0
  896. local MAXMANA = 600
  897.  
  898. print(Class_Name.." loaded.")
  899.  
  900. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  901. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  902. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  903.  
  904. local MANABAR = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0),"Mana Bar")
  905. 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")
  906. local MANATEXT = CreateLabel(MANABAR, "ENERGY ["..FLOOR(MANA).."]", C3(1, 1, 1), "Size32", "SciFi", 1, 2, 1, "Mana Text")
  907.  
  908. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Blood arrow", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 1")
  909. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Blood pillar", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 2")
  910. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[V] Violence", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 3")
  911. SKILL3TEXT.TextTransparency = 1
  912.  
  913. --//=================================\\
  914. --|| DAMAGE FUNCTIONS
  915. --\\=================================//
  916.  
  917. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  918. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  919. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  920. local BODYGYRO = IT("BodyGyro", STATPART)
  921. local BODYPOSITION = IT("BodyPosition", STATPART)
  922. BODYPOSITION.P = 2000
  923. BODYPOSITION.D = 100
  924. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  925. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  926. game:GetService("Debris"):AddItem(STATPART ,5)
  927. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  928. BILLBOARDGUI.Adornee = STATPART
  929. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  930. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  931. BILLBOARDGUI.AlwaysOnTop = false
  932. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  933. TEXTLABEL.BackgroundTransparency = 1
  934. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  935. TEXTLABEL.Text = TEXT
  936. TEXTLABEL.Font = "SciFi"
  937. TEXTLABEL.FontSize="Size42"
  938. TEXTLABEL.TextColor3 = COLOR
  939. TEXTLABEL.TextStrokeTransparency = 1
  940. TEXTLABEL.TextScaled = true
  941. TEXTLABEL.TextWrapped = true
  942. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  943. if LABELTYPE == "Normal" then
  944. for i = 1, 20 do
  945. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  946. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  947. end
  948. elseif LABELTYPE == "Debuff" then
  949. for i = 1, 20 do
  950. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  951. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  952. end
  953. elseif LABELTYPE == "Shock" then
  954. local ORIGIN = STATPART.Position
  955. for i = 1, 20 do
  956. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  957. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  958. end
  959. end
  960. THEPART.Parent = nil
  961. end),STATPART, BODYPOSITION, TEXTLABEL)
  962. end
  963.  
  964.  
  965. --//=================================\\
  966. --|| DAMAGING
  967. --\\=================================//
  968.  
  969. function AddMana(amount)
  970. MANA = MANA + amount
  971. end
  972.  
  973. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesPoison)
  974. local dmg = math.random(min,max)
  975. for i,v in ipairs(workspace:GetChildren()) do
  976. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  977. local body = v:GetChildren()
  978. for part = 1, #body do
  979. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  980. if(body[part].Position - position).Magnitude < radius then
  981. if v.ClassName == "Model" then
  982. if v:FindFirstChild("Humanoid") then
  983. if v.Humanoid.Health ~= 0 then
  984. if CanBeDodgedByJumping == true then
  985. if body[part].Position.Y < position.Y+5 then
  986. if math.random(1,100) < critrate+1 then
  987. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  988. AddMana(dmg*critmultiplier)
  989. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  990. else
  991. v.Humanoid.Health = v.Humanoid.Health - dmg
  992. AddMana(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.005)
  998. end
  999. else
  1000. if beserk == true then
  1001. v.Humanoid.Health = 0
  1002. end
  1003. if math.random(1,100) < critrate+1 then
  1004. v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
  1005. AddMana(dmg*critmultiplier)
  1006. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1007. else
  1008. v.Humanoid.Health = v.Humanoid.Health - dmg
  1009. AddMana(dmg)
  1010. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1011. end
  1012. local defence = Instance.new("BoolValue",v)
  1013. defence.Name = ("HitBy"..Player.Name)
  1014. game:GetService("Debris"):AddItem(defence, 0.005)
  1015. end
  1016. end
  1017. end
  1018. end
  1019. if DoesPoison == true then
  1020. if v:FindFirstChildOfClass("Humanoid") then
  1021. Poison(v:FindFirstChildOfClass("Humanoid"),MRANDOM(7,23)*2,1)
  1022. end
  1023. end
  1024. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1025. end
  1026. end
  1027. end
  1028. if v.ClassName == "Part" then
  1029. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1030. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1031. end
  1032. end
  1033. end
  1034. end
  1035. end
  1036.  
  1037. function Poison(HUMANOID,LAST,DAMAGE)
  1038. if HUMANOID.Parent:FindFirstChild("PoisonedBy"..Player.Name) == nil then
  1039. local defence = Instance.new("BoolValue",HUMANOID.Parent)
  1040. defence.Name = ("PoisonedBy"..Player.Name)
  1041. game:GetService("Debris"):AddItem(defence, LAST)
  1042. coroutine.resume(coroutine.create(function()
  1043. for i = 1, LAST/2 do
  1044. if HUMANOID.Parent:FindFirstChild("Head") then
  1045. StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "POISON/"..DAMAGE, C3(0,1,0))
  1046. end
  1047. Swait(2)
  1048. AddMana(DAMAGE)
  1049. HUMANOID.Health = HUMANOID.Health - DAMAGE
  1050. end
  1051. end))
  1052. end
  1053. end
  1054.  
  1055. --//=================================\\
  1056. --|| ATTACK FUNCTIONS AND STUFF
  1057. --\\=================================//
  1058.  
  1059. function clerp(a, b, t)
  1060. return a:lerp(b, t)
  1061. end
  1062.  
  1063. function newBezier(startpos, pos2, pos3, endpos, t)
  1064. local A = clerp(startpos, pos2, t)
  1065. local B = clerp(pos2, pos3, t)
  1066. local C = clerp(pos3, endpos, t)
  1067. local lerp1 = clerp(A, B, t)
  1068. local lerp2 = clerp(B, C, t)
  1069. local cubic = clerp(lerp1, lerp2, t)
  1070. return cubic
  1071. end
  1072.  
  1073. function BloodArrow(Target)
  1074. ATTACK = true
  1075. local newball = Instance.new("Part", workspace)
  1076. newball.Anchored = true
  1077. newball.Shape = "Ball"
  1078. newball.Material = "Neon"
  1079. newball.Size = Vector3.new(0,0,0)
  1080. newball.CanCollide = false
  1081. newball.CFrame = CF(Target)
  1082. newball.BrickColor = BRICKC"Really red"
  1083. newball.Transparency = 1
  1084. local POS = Mouse.Hit.p
  1085. local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(0,0,0)
  1086. local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(0,0,0)
  1087. local A1 = IT("Attachment",newball)
  1088. A1.Position = Vector3.new(0, 0.5, 0)
  1089. local A2 = IT("Attachment",newball)
  1090. A2.Position = Vector3.new(0, -0.5, 0)
  1091. local Trail = IT("Trail",newball)
  1092. Trail.LightEmission = 1
  1093. Trail.FaceCamera = true
  1094. Trail.Texture = "rbxassetid://945758042"
  1095. Trail.Attachment0 = A1
  1096. Trail.Attachment1 = A2
  1097. Trail.Lifetime = 2
  1098. Trail.MinLength = 0
  1099. Trail.Transparency = NumberSequence.new(0, 1)
  1100. Trail.Color = ColorSequence.new(newball.Color)
  1101. coroutine.resume(coroutine.create(function()
  1102. for i = 0, 1, 0.07 do
  1103. Swait()
  1104. newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i))
  1105. end
  1106. newball.Transparency = 1
  1107. CreateSound("514867425", newball, 3, 1)
  1108. AoEDamage(newball.Position,5,15,25,5,false,2,2,false,false)
  1109. MagicSphere(VT(22,22,22),55,newball.CFrame,"Really red",VT(0.2,0.2,0.2))
  1110. MagicSphere(VT(20,20,20),55,newball.CFrame,"Pearl",VT(0.2,0.2,0.2))
  1111. game:GetService("Debris"):AddItem(newball, 5)
  1112. end))
  1113. ATTACK = false
  1114. end
  1115.  
  1116. function BloodPillar()
  1117. ATTACK = true
  1118. coroutine.resume(coroutine.create(function()
  1119. local CFRAME = CF(Mouse.Hit.p)
  1120. MagicSphere(VT(15,6500,15),55,CF(Mouse.Hit.p),"Really red",VT(-15/55,0,-15/55))
  1121. MagicSphere(VT(14,6500,14),55,CF(Mouse.Hit.p),"Pearl",VT(-14/55,0,-14/55))
  1122. Swait(55)
  1123. AoEDamage(Mouse.Hit.p,5,15,25,5,false,2,2,false,false)
  1124. local aaaa = MagicSphere(VT(22,22,22),55,CFRAME,"Really red",VT(0.2,0.2,0.2))
  1125. MagicSphere(VT(20,20,20),55,CFRAME,"Pearl",VT(0.2,0.2,0.2))
  1126. CreateSound("514867425", aaaa, 3, 1)
  1127. end))
  1128. ATTACK = false
  1129. end
  1130.  
  1131. function Violence()
  1132. ATTACK = true
  1133. coroutine.resume(coroutine.create(function()
  1134. local CFRAME = CF(Mouse.Hit.p)
  1135. MagicSphere(VT(35,6500,35),155,CF(Mouse.Hit.p),"Really red",VT(-35/155,0,-35/155))
  1136. MagicSphere(VT(34,6500,34),155,CF(Mouse.Hit.p),"Pearl",VT(-34/155,0,-34/155))
  1137. Swait(155)
  1138. AoEDamage(Mouse.Hit.p,65,1500,2500,45,false,2,2,false,false)
  1139. local aaaa = MagicSphere(VT(62,62,62),155,CFRAME,"Really red",VT(2,2,2))
  1140. MagicSphere(VT(60,60,60),155,CFRAME,"Pearl",VT(2,2,2))
  1141. CreateSound("514867425", aaaa, 16, 0.85)
  1142. MANA = 0
  1143. end))
  1144. ATTACK = false
  1145. end
  1146.  
  1147. --//=================================\\
  1148. --|| ASSIGN THINGS TO KEYS
  1149. --\\=================================//
  1150.  
  1151. function MouseDown(Mouse)
  1152. if ATTACK == false then
  1153. end
  1154. end
  1155.  
  1156. function MouseUp(Mouse)
  1157. HOLD = false
  1158. end
  1159.  
  1160. function KeyDown(Key)
  1161. KEYHOLD = true
  1162. if Key == "z" and ATTACK == false then
  1163. BloodArrow(Torso.CFrame*CF(0,1,0).p)
  1164. end
  1165.  
  1166. if Key == "b" and ATTACK == false then
  1167. BloodPillar()
  1168. end
  1169.  
  1170. if Key == "v" and ATTACK == false and MANA >= MAXMANA then
  1171. Violence()
  1172. end
  1173. end
  1174.  
  1175. function KeyUp(Key)
  1176. KEYHOLD = false
  1177. end
  1178.  
  1179. Mouse.Button1Down:connect(function(NEWKEY)
  1180. MouseDown(NEWKEY)
  1181. end)
  1182. Mouse.Button1Up:connect(function(NEWKEY)
  1183. MouseUp(NEWKEY)
  1184. end)
  1185. Mouse.KeyDown:connect(function(NEWKEY)
  1186. KeyDown(NEWKEY)
  1187. end)
  1188. Mouse.KeyUp:connect(function(NEWKEY)
  1189. KeyUp(NEWKEY)
  1190. end)
  1191.  
  1192. --//=================================\\
  1193. --\\=================================//
  1194.  
  1195.  
  1196. function unanchor()
  1197. if UNANCHOR == true then
  1198. g = Character:GetChildren()
  1199. for i = 1, #g do
  1200. if g[i].ClassName == "Part" then
  1201. g[i].Anchored = false
  1202. end
  1203. end
  1204. end
  1205. end
  1206.  
  1207.  
  1208. --//=================================\\
  1209. --|| WRAP THE WHOLE SCRIPT UP
  1210. --\\=================================//
  1211.  
  1212. Humanoid.Changed:connect(function(Jump)
  1213. if Jump == "Jump" and (Disable_Jump == true) then
  1214. Humanoid.Jump = false
  1215. end
  1216. end)
  1217.  
  1218. while true do
  1219. Swait()
  1220. ANIMATE.Parent = nil
  1221. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1222. IDLEANIMATION:Play()
  1223. SINE = SINE + CHANGE
  1224. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1225. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1226. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1227. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1228. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1229. if TORSOVELOCITY < 1 then
  1230. ANIM = "Idle"
  1231. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.3 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1232. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1233. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1234. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1235. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1236. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1237. elseif TORSOVELOCITY > 1 then
  1238. ANIM = "Walk"
  1239. WALK = WALK + 1 / Animation_Speed
  1240. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1241. WALK = 0
  1242. if WALKINGANIM == true then
  1243. WALKINGANIM = false
  1244. elseif WALKINGANIM == false then
  1245. WALKINGANIM = true
  1246. end
  1247. end
  1248. --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)
  1249. --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)
  1250. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.3 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1251. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-7.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1252. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1253. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1254. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1255. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1256. end
  1257. if #Effects2>0 then
  1258. for e=1,#Effects2 do
  1259. if Effects2[e]~=nil then
  1260. local Thing=Effects2[e]
  1261. if Thing~=nil then
  1262. local Part=Thing[1]
  1263. local Mode=Thing[2]
  1264. local Delay=Thing[3]
  1265. local IncX=Thing[4]
  1266. local IncY=Thing[5]
  1267. local IncZ=Thing[6]
  1268. local Part2=Thing[8]
  1269. if Thing[1].Transparency<=1 then
  1270. if Thing[2]=="Block1" then
  1271. Thing[1].CFrame=Thing[1].CFrame
  1272. Mesh=Thing[1].Mesh
  1273. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1274. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1275. elseif Thing[2]=="Cylinder" then
  1276. Mesh=Thing[1].Mesh
  1277. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1278. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1279. elseif Thing[2]=="Blood" then
  1280. Mesh=Thing[7]
  1281. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1282. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1283. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1284. elseif Thing[2]=="Elec" then
  1285. Mesh=Thing[1].Mesh
  1286. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1287. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1288. elseif Thing[2]=="Disappear" then
  1289. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1290. end
  1291. else
  1292. Part.Parent=nil
  1293. table.remove(Effects2,e)
  1294. end
  1295. end
  1296. end
  1297. end
  1298. end
  1299. unanchor()
  1300. Humanoid.MaxHealth = "inf"
  1301. Humanoid.Health = "inf"
  1302. if Rooted == false then
  1303. Disable_Jump = false
  1304. Humanoid.WalkSpeed = Speed
  1305. elseif Rooted == true then
  1306. Disable_Jump = true
  1307. Humanoid.WalkSpeed = 0
  1308. end
  1309. if Head:FindFirstChild("face") then
  1310. Head.face:remove()
  1311. end
  1312. if Head:FindFirstChildOfClass("Sound") then
  1313. Head:FindFirstChildOfClass("Sound"):remove()
  1314. end
  1315. MANACOVER:TweenSize(UD2(1 * (MANA / MAXMANA), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  1316. MANATEXT.Text = "ENERGY ["..FLOOR(MANA).."]"
  1317. if MANA >= MAXMANA then
  1318. MANACOVER.Transparency = 1
  1319. SKILL3TEXT.TextTransparency = 0
  1320. else
  1321. MANACOVER.Transparency = 0
  1322. SKILL3TEXT.TextTransparency = 1
  1323. end
  1324. end
  1325.  
  1326. --//=================================\\
  1327. --\\=================================//
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333. --//====================================================\\--
  1334. --|| END OF SCRIPT
  1335. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment