Advertisement
zombieslayerwtf

Bizzaro [Leaked]

Aug 21st, 2018
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.00 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5. wait(0.2)
  6.  
  7.  
  8.  
  9. Player = game:GetService("Players").LocalPlayer
  10. PlayerGui = Player.PlayerGui
  11. Cam = workspace.CurrentCamera
  12. Backpack = Player.Backpack
  13. Character = Player.Character
  14. Humanoid = Character.Humanoid
  15. Mouse = Player:GetMouse()
  16. RootPart = Character["HumanoidRootPart"]
  17. Torso = Character["Torso"]
  18. Head = Character["Head"]
  19. RightArm = Character["Right Arm"]
  20. LeftArm = Character["Left Arm"]
  21. RightLeg = Character["Right Leg"]
  22. LeftLeg = Character["Left Leg"]
  23. RootJoint = RootPart["RootJoint"]
  24. Neck = Torso["Neck"]
  25. RightShoulder = Torso["Right Shoulder"]
  26. LeftShoulder = Torso["Left Shoulder"]
  27. RightHip = Torso["Right Hip"]
  28. LeftHip = Torso["Left Hip"]
  29. local sick = Instance.new("Sound",Character)
  30. sick.SoundId = "rbxassetid://1110421128"
  31. sick.Looped = true
  32. sick.Pitch = 1
  33. sick.Volume = 3
  34. sick:Play()
  35. local target = nil
  36.  
  37. IT = Instance.new
  38. CF = CFrame.new
  39. VT = Vector3.new
  40. RAD = math.rad
  41. C3 = Color3.new
  42. UD2 = UDim2.new
  43. BRICKC = BrickColor.new
  44. ANGLES = CFrame.Angles
  45. EULER = CFrame.fromEulerAnglesXYZ
  46. COS = math.cos
  47. ACOS = math.acos
  48. SIN = math.sin
  49. ASIN = math.asin
  50. ABS = math.abs
  51. MRANDOM = math.random
  52. FLOOR = math.floor
  53.  
  54. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  55. local NEWMESH = IT(MESH)
  56. if MESH == "SpecialMesh" then
  57. NEWMESH.MeshType = MESHTYPE
  58. if MESHID ~= "nil" and MESHID ~= "" then
  59. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  60. end
  61. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  62. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  63. end
  64. end
  65. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  66. NEWMESH.Scale = SCALE
  67. NEWMESH.Parent = PARENT
  68. return NEWMESH
  69. end
  70.  
  71. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  72. local NEWPART = IT("Part")
  73. NEWPART.formFactor = FORMFACTOR
  74. NEWPART.Reflectance = REFLECTANCE
  75. NEWPART.Transparency = TRANSPARENCY
  76. NEWPART.CanCollide = false
  77. NEWPART.Locked = true
  78. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  79. NEWPART.Name = NAME
  80. NEWPART.Size = SIZE
  81. NEWPART.Position = Torso.Position
  82. NEWPART.Material = MATERIAL
  83. NEWPART:BreakJoints()
  84. NEWPART.Parent = PARENT
  85. return NEWPART
  86. end
  87.  
  88.  
  89. --//=================================\\
  90. --|| CUSTOMIZATION
  91. --\\=================================//
  92.  
  93. Class_Name = "Template"
  94. Weapon_Name = "Add-ons"
  95.  
  96. Custom_Colors = {
  97. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  98. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  99.  
  100. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  101. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  102. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  103. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  104. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  105.  
  106. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  107. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  108. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  109. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  110. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  111. }
  112.  
  113.  
  114. Player_Size = 1 --Size of the player.
  115. Animation_Speed = 1
  116. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  117.  
  118. local Speed = 75
  119. local Effects2 = {}
  120.  
  121. --//=================================\\
  122. --|| END OF CUSTOMIZATION
  123. --\\=================================//
  124.  
  125. local function weldBetween(a, b)
  126. local weldd = Instance.new("ManualWeld")
  127. weldd.Part0 = a
  128. weldd.Part1 = b
  129. weldd.C0 = CFrame.new()
  130. weldd.C1 = b.CFrame:inverse() * a.CFrame
  131. weldd.Parent = a
  132. return weldd
  133. end
  134.  
  135. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  136. local acs = Instance.new("Part")
  137. acs.CanCollide = false
  138. acs.Anchored = false
  139. acs.Size = Vector3.new(0,0,0)
  140. acs.CFrame = attachmentpart.CFrame
  141. acs.Parent = Character
  142. acs.BrickColor = color
  143. local meshs = Instance.new("SpecialMesh")
  144. meshs.MeshId = mesh
  145. meshs.TextureId = texture
  146. meshs.Parent = acs
  147. meshs.Scale = scale
  148. meshs.Offset = offset
  149. weldBetween(attachmentpart,acs)
  150. end
  151.  
  152. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  153. if TYPE == "Gem" then
  154. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  155. acs.Anchored = false
  156. acs.CanCollide = false
  157. acs.CFrame = PART.CFrame
  158. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  159. weldBetween(PART,acs)
  160. elseif TYPE == "Skull" then
  161. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  162. acs.Anchored = false
  163. acs.CanCollide = false
  164. acs.CFrame = PART.CFrame
  165. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  166. weldBetween(PART,acs)
  167. elseif TYPE == "Eye" then
  168. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  169. acs.Anchored = false
  170. acs.CanCollide = false
  171. acs.CFrame = PART.CFrame
  172. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  173. weldBetween(PART,acs)
  174. end
  175. end
  176.  
  177. --//=================================\\
  178. --|| USEFUL VALUES
  179. --\\=================================//
  180.  
  181. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  182. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  183. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  184. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  185. local CO1 = 0
  186. local CO2 = 0
  187. local CO3 = 0
  188. local CO4 = 0
  189. local CHANGEDEFENSE = 0
  190. local CHANGEDAMAGE = 0
  191. local CHANGEMOVEMENT = 0
  192. local ANIM = "Idle"
  193. local ATTACK = false
  194. local EQUIPPED = false
  195. local HOLD = false
  196. local COMBO = 1
  197. local LASTPOINT = nil
  198. local BLCF = nil
  199. local SCFR = nil
  200. local STAGGERHITANIM = false
  201. local STAGGERANIM = false
  202. local STUNANIM = false
  203. local CRITCHANCENUMBER = 0
  204. local IDLENUMBER = 0
  205. local DONUMBER = 0
  206. local HANDIDLE = false
  207. local SINE = 0
  208. local CHANGE = 2 / Animation_Speed
  209. local WALKINGANIM = false
  210. local WALK = 0
  211. local DISABLEJUMPING = false
  212. local HASBEENBLOCKED = false
  213. local STUNDELAYNUMBER = 0
  214. local MANADELAYNUMBER = 0
  215. local SECONDARYMANADELAYNUMBER = 0
  216. local ROBLOXIDLEANIMATION = IT("Animation")
  217. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  218. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  219. --ROBLOXIDLEANIMATION.Parent = Humanoid
  220. local WEAPONGUI = IT("ScreenGui", nil)
  221. WEAPONGUI.Name = "Weapon GUI"
  222. local WEAPONTOOL = IT("HopperBin", nil)
  223. WEAPONTOOL.Name = Weapon_Name
  224. local Weapon = IT("Model")
  225. Weapon.Name = Weapon_Name
  226. local Effects = IT("Folder", Weapon)
  227. Effects.Name = "Effects"
  228. local ANIMATOR = Humanoid.Animator
  229. local ANIMATE = Character.Animate
  230. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  231. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  232. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  233. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  234. local UNANCHOR = true
  235.  
  236. --//=================================\\
  237. --\\=================================//
  238.  
  239. --//=================================\\
  240. --|| STATS
  241. --\\=================================//
  242.  
  243. if Character:FindFirstChild("Stats") ~= nil then
  244. Character:FindFirstChild("Stats").Parent = nil
  245. end
  246.  
  247. local Stats = IT("Folder", nil)
  248. Stats.Name = "Stats"
  249. local ChangeStat = IT("Folder", Stats)
  250. ChangeStat.Name = "ChangeStat"
  251. local Defense = IT("NumberValue", Stats)
  252. Defense.Name = "Defense"
  253. Defense.Value = 1
  254. local Movement = IT("NumberValue", Stats)
  255. Movement.Name = "Movement"
  256. Movement.Value = 1
  257. local Damage = IT("NumberValue", Stats)
  258. Damage.Name = "Damage"
  259. Damage.Value = 1
  260. local Mana = IT("NumberValue", Stats)
  261. Mana.Name = "Mana"
  262. Mana.Value = 0
  263. local SecondaryMana = IT("NumberValue", Stats)
  264. SecondaryMana.Name = "SecondaryMana"
  265. SecondaryMana.Value = 0
  266. local CanCrit = IT("BoolValue", Stats)
  267. CanCrit.Name = "CanCrit"
  268. CanCrit.Value = false
  269. local CritChance = IT("NumberValue", Stats)
  270. CritChance.Name = "CritChance"
  271. CritChance.Value = 20
  272. local CanPenetrateArmor = IT("BoolValue", Stats)
  273. CanPenetrateArmor.Name = "CanPenetrateArmor"
  274. CanPenetrateArmor.Value = false
  275. local AntiTeamKill = IT("BoolValue", Stats)
  276. AntiTeamKill.Name = "AntiTeamKill"
  277. AntiTeamKill.Value = false
  278. local Rooted = IT("BoolValue", Stats)
  279. Rooted.Name = "Rooted"
  280. Rooted.Value = false
  281. local Block = IT("BoolValue", Stats)
  282. Block.Name = "Block"
  283. Block.Value = false
  284. local RecentEnemy = IT("ObjectValue", Stats)
  285. RecentEnemy.Name = "RecentEnemy"
  286. RecentEnemy.Value = nil
  287. local StaggerHit = IT("BoolValue", Stats)
  288. StaggerHit.Name = "StaggerHit"
  289. StaggerHit.Value = false
  290. local Stagger = IT("BoolValue", Stats)
  291. Stagger.Name = "Stagger"
  292. Stagger.Value = false
  293. local Stun = IT("BoolValue", Stats)
  294. Stun.Name = "Stun"
  295. Stun.Value = false
  296. local StunValue = IT("NumberValue", Stats)
  297. StunValue.Name = "StunValue"
  298. StunValue.Value = 0
  299.  
  300.  
  301. --//=================================\\
  302. --\\=================================//
  303.  
  304.  
  305. abss = Instance.new("BillboardGui")
  306. abss.Size = UDim2.new(10,0,10,0)
  307. abss.Enabled = false
  308. abss.AlwaysOnTop = true
  309. img2 = Instance.new("ImageLabel",abss)
  310. img2.Position = UDim2.new(0.35,0,0.35,0)
  311. img2.Size = UDim2.new(0.3,0,0.3,0)
  312. img2.Image = "rbxassetid://108413215"
  313. img2.BackgroundTransparency = 1
  314. img2.ImageColor3 = Color3.new(1,1,1)
  315.  
  316. local boop = nil
  317.  
  318.  
  319. --//=================================\\
  320. --|| DEBUFFS / BUFFS
  321. --\\=================================//
  322.  
  323. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  324. DEFENSECHANGE1.Name = "ChangeDefense"
  325. DEFENSECHANGE1.Value = 0
  326.  
  327. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  328. MOVEMENTCHANGE1.Name = "ChangeMovement"
  329. MOVEMENTCHANGE1.Value = 0
  330.  
  331. --//=================================\\
  332. --\\=================================//
  333.  
  334.  
  335.  
  336.  
  337.  
  338. --//=================================\\
  339. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  340. --\\=================================//
  341.  
  342. ArtificialHB = Instance.new("BindableEvent", script)
  343. ArtificialHB.Name = "ArtificialHB"
  344.  
  345. script:WaitForChild("ArtificialHB")
  346.  
  347. frame = Frame_Speed
  348. tf = 0
  349. allowframeloss = false
  350. tossremainder = false
  351. lastframe = tick()
  352. script.ArtificialHB:Fire()
  353.  
  354. game:GetService("RunService").Heartbeat:connect(function(s, p)
  355. tf = tf + s
  356. if tf >= frame then
  357. if allowframeloss then
  358. script.ArtificialHB:Fire()
  359. lastframe = tick()
  360. else
  361. for i = 1, math.floor(tf / frame) do
  362. script.ArtificialHB:Fire()
  363. end
  364. lastframe = tick()
  365. end
  366. if tossremainder then
  367. tf = 0
  368. else
  369. tf = tf - frame * math.floor(tf / frame)
  370. end
  371. end
  372. end)
  373.  
  374. --//=================================\\
  375. --\\=================================//
  376.  
  377.  
  378.  
  379.  
  380.  
  381. --//=================================\\
  382. --|| SOME FUNCTIONS
  383. --\\=================================//
  384.  
  385. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  386. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  387. end
  388.  
  389. function PositiveAngle(NUMBER)
  390. if NUMBER >= 0 then
  391. NUMBER = 0
  392. end
  393. return NUMBER
  394. end
  395.  
  396. function NegativeAngle(NUMBER)
  397. if NUMBER <= 0 then
  398. NUMBER = 0
  399. end
  400. return NUMBER
  401. end
  402.  
  403. function Swait(NUMBER)
  404. if NUMBER == 0 or NUMBER == nil then
  405. ArtificialHB.Event:wait()
  406. else
  407. for i = 1, NUMBER do
  408. ArtificialHB.Event:wait()
  409. end
  410. end
  411. end
  412.  
  413. function QuaternionFromCFrame(cf)
  414. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  415. local trace = m00 + m11 + m22
  416. if trace > 0 then
  417. local s = math.sqrt(1 + trace)
  418. local recip = 0.5 / s
  419. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  420. else
  421. local i = 0
  422. if m11 > m00 then
  423. i = 1
  424. end
  425. if m22 > (i == 0 and m00 or m11) then
  426. i = 2
  427. end
  428. if i == 0 then
  429. local s = math.sqrt(m00 - m11 - m22 + 1)
  430. local recip = 0.5 / s
  431. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  432. elseif i == 1 then
  433. local s = math.sqrt(m11 - m22 - m00 + 1)
  434. local recip = 0.5 / s
  435. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  436. elseif i == 2 then
  437. local s = math.sqrt(m22 - m00 - m11 + 1)
  438. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  439. end
  440. end
  441. end
  442.  
  443. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  444. local xs, ys, zs = x + x, y + y, z + z
  445. local wx, wy, wz = w * xs, w * ys, w * zs
  446. local xx = x * xs
  447. local xy = x * ys
  448. local xz = x * zs
  449. local yy = y * ys
  450. local yz = y * zs
  451. local zz = z * zs
  452. 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))
  453. end
  454.  
  455. function QuaternionSlerp(a, b, t)
  456. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  457. local startInterp, finishInterp;
  458. if cosTheta >= 0.0001 then
  459. if (1 - cosTheta) > 0.0001 then
  460. local theta = ACOS(cosTheta)
  461. local invSinTheta = 1 / SIN(theta)
  462. startInterp = SIN((1 - t) * theta) * invSinTheta
  463. finishInterp = SIN(t * theta) * invSinTheta
  464. else
  465. startInterp = 1 - t
  466. finishInterp = t
  467. end
  468. else
  469. if (1 + cosTheta) > 0.0001 then
  470. local theta = ACOS(-cosTheta)
  471. local invSinTheta = 1 / SIN(theta)
  472. startInterp = SIN((t - 1) * theta) * invSinTheta
  473. finishInterp = SIN(t * theta) * invSinTheta
  474. else
  475. startInterp = t - 1
  476. finishInterp = t
  477. end
  478. end
  479. 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
  480. end
  481.  
  482. function Clerp(a, b, t)
  483. local qa = {QuaternionFromCFrame(a)}
  484. local qb = {QuaternionFromCFrame(b)}
  485. local ax, ay, az = a.x, a.y, a.z
  486. local bx, by, bz = b.x, b.y, b.z
  487. local _t = 1 - t
  488. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  489. end
  490.  
  491. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  492. local frame = IT("Frame")
  493. frame.BackgroundTransparency = TRANSPARENCY
  494. frame.BorderSizePixel = BORDERSIZEPIXEL
  495. frame.Position = POSITION
  496. frame.Size = SIZE
  497. frame.BackgroundColor3 = COLOR
  498. frame.BorderColor3 = BORDERCOLOR
  499. frame.Name = NAME
  500. frame.Parent = PARENT
  501. return frame
  502. end
  503.  
  504. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  505. local label = IT("TextLabel")
  506. label.BackgroundTransparency = 1
  507. label.Size = UD2(1, 0, 1, 0)
  508. label.Position = UD2(0, 0, 0, 0)
  509. label.TextColor3 = C3(255, 255, 255)
  510. label.TextStrokeTransparency = STROKETRANSPARENCY
  511. label.TextTransparency = TRANSPARENCY
  512. label.FontSize = TEXTFONTSIZE
  513. label.Font = TEXTFONT
  514. label.BorderSizePixel = BORDERSIZEPIXEL
  515. label.TextScaled = true
  516. label.Text = TEXT
  517. label.Name = NAME
  518. label.Parent = PARENT
  519. return label
  520. end
  521.  
  522. function NoOutlines(PART)
  523. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  524. end
  525.  
  526.  
  527. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  528. local NEWWELD = IT(TYPE)
  529. NEWWELD.Part0 = PART0
  530. NEWWELD.Part1 = PART1
  531. NEWWELD.C0 = C0
  532. NEWWELD.C1 = C1
  533. NEWWELD.Parent = PARENT
  534. return NEWWELD
  535. end
  536.  
  537. function CreateSound(ID, PARENT, VOLUME, PITCH)
  538. coroutine.resume(coroutine.create(function()
  539. local NEWSOUND = IT("Sound", PARENT)
  540. NEWSOUND.Volume = VOLUME
  541. NEWSOUND.Pitch = PITCH
  542. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  543. Swait()
  544. NEWSOUND:play()
  545. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  546. end))
  547. end
  548.  
  549. function CFrameFromTopBack(at, top, back)
  550. local right = top:Cross(back)
  551. 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)
  552. end
  553.  
  554. function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
  555. local MAGNITUDE = (POSITION1 - POSITION2).magnitude
  556. local CURRENTPOSITION = POSITION1
  557. local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
  558. coroutine.resume(coroutine.create(function()
  559. for i = 1, MULTIPLIERTIME do
  560. local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
  561. LIGHTNINGPART.Anchored = true
  562. local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)])
  563. local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
  564. if MULTIPLIERTIME == i then
  565. local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
  566. LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
  567. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
  568. else
  569. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
  570. end
  571. CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
  572. game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME)
  573. coroutine.resume(coroutine.create(function()
  574. while LIGHTNINGPART.Transparency ~= 1 do
  575. --local StartTransparency = tra
  576. for i=0, 1, LASTINGTIME do
  577. Swait()
  578. LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME)
  579. end
  580. end
  581. end))
  582. Swait(LIGHTNINGDELAY / Animation_Speed)
  583. end
  584. end))
  585. end
  586.  
  587. function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  588. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  589. EFFECTPART.Anchored = true
  590. EFFECTPART.CFrame = CFRAME
  591. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  592. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  593. coroutine.resume(coroutine.create(function(PART, MESH)
  594. for i = 0, 1, delay do
  595. Swait()
  596. PART.CFrame = PART.CFrame * ROTATION
  597. PART.Transparency = i
  598. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  599. end
  600. PART.Parent = nil
  601. end), EFFECTPART, EFFECTMESH)
  602. end
  603.  
  604. function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  605. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  606. EFFECTPART.Anchored = true
  607. EFFECTPART.CFrame = CFRAME
  608. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  609. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  610. coroutine.resume(coroutine.create(function(PART, MESH)
  611. for i = 0, 1, delay do
  612. Swait()
  613. PART.CFrame = PART.CFrame * ROTATION
  614. PART.Transparency = i
  615. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  616. end
  617. PART.Parent = nil
  618. end), EFFECTPART, EFFECTMESH)
  619. end
  620.  
  621. function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  622. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  623. EFFECTPART.Anchored = true
  624. EFFECTPART.CFrame = CFRAME
  625. local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  626. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  627. coroutine.resume(coroutine.create(function(PART, MESH)
  628. for i = 0, 1, delay do
  629. Swait()
  630. PART.CFrame = PART.CFrame * ROTATION
  631. PART.Transparency = i
  632. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  633. end
  634. PART.Parent = nil
  635. end), EFFECTPART, EFFECTMESH)
  636. end
  637.  
  638. function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  639. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  640. EFFECTPART.Anchored = true
  641. EFFECTPART.CFrame = CFRAME
  642. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  643. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  644. coroutine.resume(coroutine.create(function(PART, MESH)
  645. for i = 0, 1, delay do
  646. Swait()
  647. PART.CFrame = PART.CFrame * ROTATION
  648. PART.Transparency = i
  649. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  650. end
  651. PART.Parent = nil
  652. end), EFFECTPART, EFFECTMESH)
  653. end
  654.  
  655. function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  656. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  657. EFFECTPART.Anchored = true
  658. EFFECTPART.CFrame = CFRAME
  659. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  660. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  661. coroutine.resume(coroutine.create(function(PART, MESH)
  662. for i = 0, 1, delay do
  663. Swait()
  664. PART.CFrame = PART.CFrame * ROTATION
  665. PART.Transparency = i
  666. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  667. end
  668. PART.Parent = nil
  669. end), EFFECTPART, EFFECTMESH)
  670. end
  671.  
  672. function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  673. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  674. EFFECTPART.Anchored = true
  675. EFFECTPART.CFrame = CFRAME
  676. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size))
  677. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  678. coroutine.resume(coroutine.create(function(PART, MESH)
  679. for i = 0, 1, delay do
  680. Swait()
  681. PART.CFrame = PART.CFrame * ROTATION
  682. PART.Transparency = i
  683. MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z))
  684. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  685. end
  686. PART.Parent = nil
  687. end), EFFECTPART, EFFECTMESH)
  688. end
  689.  
  690. function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  691. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  692. EFFECTPART.Anchored = true
  693. EFFECTPART.CFrame = CFRAME
  694. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  695. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  696. coroutine.resume(coroutine.create(function(PART, MESH)
  697. for i = 0, 1, delay do
  698. Swait()
  699. PART.CFrame = PART.CFrame * ROTATION
  700. PART.Transparency = i
  701. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  702. end
  703. PART.Parent = nil
  704. end), EFFECTPART, EFFECTMESH)
  705. end
  706.  
  707. function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  708. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  709. EFFECTPART.Anchored = true
  710. EFFECTPART.CFrame = CFRAME
  711. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  712. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  713. coroutine.resume(coroutine.create(function(PART, MESH)
  714. for i = 0, 1, delay do
  715. Swait()
  716. PART.CFrame = PART.CFrame * ROTATION
  717. PART.Transparency = i
  718. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  719. end
  720. PART.Parent = nil
  721. end), EFFECTPART, EFFECTMESH)
  722. end
  723.  
  724. function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  725. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  726. EFFECTPART.Anchored = true
  727. EFFECTPART.CFrame = CFRAME
  728. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  729. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  730. coroutine.resume(coroutine.create(function(PART, MESH)
  731. for i = 0, 1, delay do
  732. Swait()
  733. PART.CFrame = PART.CFrame * ROTATION
  734. PART.Transparency = i
  735. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  736. end
  737. PART.Parent = nil
  738. end), EFFECTPART, EFFECTMESH)
  739. end
  740.  
  741. function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  742. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  743. EFFECTPART.Anchored = true
  744. EFFECTPART.CFrame = CFRAME
  745. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  746. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  747. coroutine.resume(coroutine.create(function(PART, MESH)
  748. for i = 0, 1, delay do
  749. Swait()
  750. PART.CFrame = PART.CFrame * ROTATION
  751. PART.Transparency = i
  752. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  753. end
  754. PART.Parent = nil
  755. end), EFFECTPART, EFFECTMESH)
  756. end
  757.  
  758. function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  759. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  760. EFFECTPART.Anchored = true
  761. EFFECTPART.CFrame = CFRAME
  762. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  763. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  764. coroutine.resume(coroutine.create(function(PART, MESH)
  765. for i = 0, 1, delay do
  766. Swait()
  767. PART.CFrame = PART.CFrame * ROTATION
  768. PART.Transparency = i
  769. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  770. end
  771. PART.Parent = nil
  772. end), EFFECTPART, EFFECTMESH)
  773. end
  774.  
  775. function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  776. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  777. EFFECTPART.Anchored = true
  778. EFFECTPART.CFrame = CFRAME
  779. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  780. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  781. coroutine.resume(coroutine.create(function(PART, MESH)
  782. for i = 0, 1, delay do
  783. Swait()
  784. PART.CFrame = PART.CFrame * ROTATION
  785. PART.Transparency = i
  786. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  787. end
  788. PART.Parent = nil
  789. end), EFFECTPART, EFFECTMESH)
  790. end
  791.  
  792. function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  793. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  794. EFFECTPART.Anchored = true
  795. EFFECTPART.CFrame = CFRAME
  796. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  797. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  798. coroutine.resume(coroutine.create(function(PART, MESH)
  799. for i = 0, 1, delay do
  800. Swait()
  801. PART.CFrame = PART.CFrame * ROTATION
  802. PART.Transparency = i
  803. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  804. end
  805. PART.Parent = nil
  806. end), EFFECTPART, EFFECTMESH)
  807. end
  808.  
  809. function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay)
  810. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  811. EFFECTPART.Anchored = true
  812. EFFECTPART.CFrame = CFRAME
  813. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size)
  814. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  815. local XVALUE = MRANDOM()
  816. local YVALUE = MRANDOM()
  817. local ZVALUE = MRANDOM()
  818. coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE)
  819. for i = 0, 1, delay do
  820. Swait()
  821. PART.CFrame = PART.CFrame * ROTATION
  822. PART.Transparency = i
  823. THEXVALUE = THEXVALUE - 0.1 * (delay * 10)
  824. THEYVALUE = THEYVALUE - 0.1 * (delay * 10)
  825. THEZVALUE = THEZVALUE - 0.1 * (delay * 10)
  826. MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size)
  827. end
  828. PART.Parent = nil
  829. end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE)
  830. end
  831.  
  832. function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
  833. local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
  834. if MAGNITUDECFRAME > (1 / 100) then
  835. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
  836. EFFECTPART.Anchored = true
  837. EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
  838. local THEMESHTYPE = "BlockMesh"
  839. if MESHTYPE == "Cylinder" then
  840. THEMESHTYPE = "CylinderMesh"
  841. end
  842. local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
  843. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  844. coroutine.resume(coroutine.create(function(PART, MESH)
  845. for i = 0, 1, delay do
  846. Swait()
  847. PART.CFrame = PART.CFrame * ROTATION
  848. PART.Transparency = i
  849. MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size)
  850. end
  851. PART.Parent = nil
  852. end), EFFECTPART, EFFECTMESH)
  853. end
  854. end
  855.  
  856. function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
  857. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
  858. EFFECTPART.Anchored = true
  859. EFFECTPART.CFrame = CFRAME
  860. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
  861. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  862. local THELASTPOINT = CFRAME
  863. coroutine.resume(coroutine.create(function(PART)
  864. for i = 1, DURATION do
  865. Swait()
  866. PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
  867. TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay)
  868. THELASTPOINT = PART.CFrame
  869. end
  870. PART.Parent = nil
  871. end), EFFECTPART)
  872. end
  873.  
  874. --local list={}
  875. function Triangle(Color, Material, a, b, c, delay)
  876. local edge1 = (c - a):Dot((b - a).unit)
  877. local edge2 = (a - b):Dot((c - b).unit)
  878. local edge3 = (b - c):Dot((a - c).unit)
  879. if edge1 <= (b - a).magnitude and edge1 >= 0 then
  880. a, b, c=a, b, c
  881. elseif edge2 <= (c - b).magnitude and edge2 >= 0 then
  882. a, b, c=b, c, a
  883. elseif edge3 <= (a - c).magnitude and edge3 >= 0 then
  884. a, b, c=c, a, b
  885. else
  886. assert(false, "unreachable")
  887. end
  888. local len1 = (c - a):Dot((b - a).unit)
  889. local len2 = (b - a).magnitude - len1
  890. local width = (a + (b - a).unit * len1 - c).magnitude
  891. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit)
  892. if len1 > 1 / 100 then
  893. local sz = VT(0.2, width, len1)
  894. local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  895. local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0))
  896. w1.Anchored = true
  897. w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2)
  898. coroutine.resume(coroutine.create(function()
  899. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  900. Swait()
  901. w1.Transparency = i
  902. end
  903. w1.Parent = nil
  904. end))
  905. game:GetService("Debris"):AddItem(w1, 10)
  906. --table.insert(list, w1)
  907. end
  908. if len2 > 1 / 100 then
  909. local sz = VT(0.2, width, len2)
  910. local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  911. local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0))
  912. w2.Anchored = true
  913. w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2)
  914. coroutine.resume(coroutine.create(function()
  915. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  916. Swait()
  917. w2.Transparency = i
  918. end
  919. w2.Parent = nil
  920. end))
  921. game:GetService("Debris"):AddItem(w2, 10)
  922. --table.insert(list, w2)
  923. end
  924. --return unpack(list)
  925. end
  926.  
  927. --[[Usage:
  928. local Pos = Part
  929. local Offset = Part.CFrame * CF(0, 0, 0)
  930. local Color = "Institutional white"
  931. local Material = "Neon"
  932. local TheDelay = 0.01
  933. local Height = 4
  934. BLCF = Offset
  935. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  936. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  937. if a then game:GetService("Debris"):AddItem(a, 1) end
  938. if b then game:GetService("Debris"):AddItem(b, 1) end
  939. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  940. if a then game:GetService("Debris"):AddItem(a, 1) end
  941. if b then game:GetService("Debris"):AddItem(b, 1) end
  942. SCFR = BLCF
  943. elseif not SCFR then
  944. SCFR = BLCF
  945. end
  946. --
  947. BLCF = nil
  948. SCFR = nil
  949. --]]
  950.  
  951. --//=================================\\
  952. --\\=================================//
  953.  
  954.  
  955. --//=================================\\
  956. --|| WEAPON CREATION
  957. --\\=================================//
  958.  
  959. if Player_Size ~= 1 then
  960. for _, v in pairs (Weapon:GetChildren()) do
  961. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  962. local p1 = v.Part1
  963. v.Part1 = nil
  964. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  965. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  966. v.Part1 = p1
  967. elseif v.ClassName == "Part" then
  968. for _, b in pairs (v:GetChildren()) do
  969. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  970. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  971. end
  972. end
  973. end
  974. end
  975. end
  976.  
  977. for _, c in pairs(Weapon:GetChildren()) do
  978. if c.ClassName == "Part" then
  979. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  980. end
  981. end
  982.  
  983. Weapon.Parent = Character
  984.  
  985. Humanoid.Died:connect(function()
  986. ATTACK = true
  987. end)
  988.  
  989. print(Class_Name.." loaded.")
  990.  
  991. --//=================================\\
  992. --\\=================================//
  993.  
  994.  
  995.  
  996.  
  997.  
  998. --//=================================\\
  999. --|| DAMAGE FUNCTIONS
  1000. --\\=================================//
  1001.  
  1002. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1003. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1004. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1005. local BODYGYRO = IT("BodyGyro", STATPART)
  1006. local BODYPOSITION = IT("BodyPosition", STATPART)
  1007. BODYPOSITION.P = 2000
  1008. BODYPOSITION.D = 100
  1009. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1010. if LABELTYPE == "Normal" then
  1011. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1012. elseif LABELTYPE == "Debuff" then
  1013. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1014. elseif LABELTYPE == "Interruption" then
  1015. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1016. end
  1017. game:GetService("Debris"):AddItem(STATPART ,5)
  1018. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1019. BILLBOARDGUI.Adornee = STATPART
  1020. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1021. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1022. BILLBOARDGUI.AlwaysOnTop = false
  1023. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1024. TEXTLABEL.BackgroundTransparency = 1
  1025. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1026. TEXTLABEL.Text = TEXT
  1027. TEXTLABEL.Font = "SciFi"
  1028. TEXTLABEL.FontSize="Size42"
  1029. TEXTLABEL.TextColor3 = COLOR
  1030. TEXTLABEL.TextStrokeTransparency = 1
  1031. TEXTLABEL.TextScaled = true
  1032. TEXTLABEL.TextWrapped = true
  1033. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1034. wait(0.2)
  1035. for i=1, 5 do
  1036. wait()
  1037. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1038. end
  1039. wait(1.2)
  1040. for i=1, 5 do
  1041. wait()
  1042. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1043. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1044. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1045. end
  1046. THEPART.Parent = nil
  1047. end),STATPART, BODYPOSITION, TEXTLABEL)
  1048. end
  1049.  
  1050.  
  1051. --//=================================\\
  1052. --|| DAMAGING
  1053. --\\=================================//
  1054.  
  1055.  
  1056.  
  1057. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  1058. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  1059. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1060. local dmg = math.random(min,max)
  1061. if humanoid.Health > 0 then
  1062. if beserk == true then
  1063. humanoid.Health = 0
  1064. else
  1065. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  1066. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  1067. if math.random(1,100) < critrate+1 then
  1068. humanoid.Health = humanoid.Health - dmg*critmultiplier
  1069. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1070. else
  1071. humanoid.Health = humanoid.Health - dmg
  1072. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(255/255, 0, 0))
  1073. end
  1074. local defence = Instance.new("BoolValue",hit.Parent)
  1075. defence.Name = ("HitBy"..Player.Name)
  1076. game:GetService("Debris"):AddItem(defence, 0.5)
  1077. end
  1078. end
  1079. end
  1080. end
  1081.  
  1082. function killnearest(position,range,maxstrength)
  1083. for i,v in ipairs(workspace:GetChildren()) do
  1084. local body = v:GetChildren()
  1085. for part = 1, #body do
  1086. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1087. if(body[part].Position - position).Magnitude < range then
  1088. if v.ClassName == "Model" then
  1089. v:BreakJoints()
  1090. end
  1091. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1092. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1093. end
  1094. end
  1095. end
  1096. if v.ClassName == "Part" then
  1097. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1098. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1099. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1100. end
  1101. end
  1102. end
  1103. end
  1104.  
  1105. --//=================================\\
  1106. --|| ATTACK FUNCTIONS AND STUFF
  1107. --\\=================================//
  1108.  
  1109. function choosetarget()
  1110. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1111. target = Mouse.Target.Parent
  1112. if boop ~= nil then
  1113. boop:remove()
  1114. end
  1115. local targettorso = target:FindFirstChild("Torso") or target:FindFirstChild("UpperTorso")
  1116. if targettorso ~= nil then
  1117. boop = IT("Part",Effects)
  1118. boop.Size = VT(0,0,0)
  1119. boop.CanCollide = false
  1120. boop.Transparency = 1
  1121. boop.CFrame = targettorso.CFrame * CF(0,-0.75,0.8)
  1122. weldBetween(targettorso,boop)
  1123. local gui = abss:Clone()
  1124. gui.Parent = boop
  1125. gui.AlwaysOnTop = false
  1126. gui.Enabled = true
  1127. else
  1128. target = nil
  1129. end
  1130. end
  1131. end
  1132.  
  1133. function assgrab()
  1134. if target ~= nil then
  1135. local targettorso = target:FindFirstChild("Torso") or target:FindFirstChild("UpperTorso")
  1136. if targettorso ~= nil then
  1137. ATTACK = true
  1138. targettorso.Anchored = true
  1139. Rooted = true
  1140. CreateSound("889222890", Head, 10, 1)
  1141. RootPart.CFrame = targettorso.CFrame * CF(0,0,3)
  1142. Swait(100)
  1143. if target ~= nil and targettorso ~= nil then
  1144. for i = 1, 3 do
  1145. CreateSound("948494432", targettorso, 10, 1)
  1146. Swait(5)
  1147. end
  1148. if target ~= nil and targettorso ~= nil then
  1149. Swait(15)
  1150. RootPart.CFrame = targettorso.CFrame * CF(0,0,1.5)
  1151. Swait(20)
  1152. RootPart.CFrame = targettorso.CFrame * CF(0,0,3)
  1153. ATTACK = false
  1154. Rooted = false
  1155. targettorso.Anchored = false
  1156. local bomb = IT("Part",target)
  1157. bomb.Size = VT(0,0,0)
  1158. bomb.CFrame = boop.CFrame
  1159. bomb.CanCollide = false
  1160. local mesh = IT("SpecialMesh",bomb)
  1161. mesh.MeshType = "FileMesh"
  1162. mesh.MeshId = "rbxasset://fonts/timebomb.mesh"
  1163. mesh.TextureId = "rbxasset://textures/bombtex.png"
  1164. weldBetween(targettorso,bomb)
  1165. CreateSound("138931042", targettorso, 10, 4)
  1166. Swait(150)
  1167. target:BreakJoints()
  1168. local boom = Instance.new("Explosion",workspace)
  1169. boom.Position = targettorso.Position
  1170. CreateSound("691216625", targettorso, 50, 1)
  1171. target = nil
  1172. else
  1173. Rooted = false
  1174. ATTACK = false
  1175. end
  1176. else
  1177. Rooted = false
  1178. ATTACK = false
  1179. end
  1180. end
  1181. end
  1182. end
  1183.  
  1184. function slash()
  1185. ATTACK = true
  1186. Rooted = true
  1187. for i=0, 1, 1 / Animation_Speed do
  1188. --Swait()
  1189. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1190. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1191. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1192. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1193. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1194. 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)
  1195. --HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1196. end
  1197. local bomb = IT("Part",Effects)
  1198. bomb.Size = VT(0,0,0)
  1199. bomb.CFrame = RightArm.CFrame * CF(1.6,-1.2,0) * ANGLES(RAD(-90),RAD(0),RAD(-90))
  1200. bomb.CanCollide = false
  1201. bomb.Color = C3(123/255, 0, 123/255)
  1202. local mesh = IT("SpecialMesh",bomb)
  1203. mesh.MeshType = "FileMesh"
  1204. mesh.Scale = VT(2,2,2)
  1205. mesh.MeshId = "http://www.roblox.com/asset?id=156092238"
  1206. weldBetween(RightArm,bomb)
  1207. Swait()
  1208. CreateSound("615910787", Torso, 5, MRANDOM(7, 12) / 10)
  1209. Swait()
  1210. for i = 1, 15 do
  1211. killnearest(bomb.Position,6,150)
  1212. RootPart.CFrame = RootPart.CFrame * CF(0,0,-3)
  1213. end
  1214. killnearest(bomb.Position,6,150)
  1215. for i=0, 1, 0.1 / Animation_Speed do
  1216. --Swait()
  1217. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(25)), 0.4 / Animation_Speed)
  1218. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.2 / Animation_Speed)
  1219. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  1220. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  1221. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1222. 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)
  1223. --HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  1224. end
  1225. Swait()
  1226. bomb:remove()
  1227. ATTACK = false
  1228. Rooted = false
  1229. end
  1230.  
  1231. function hurr()
  1232. if target ~= nil then
  1233. local targettorso = target:FindFirstChild("Torso") or target:FindFirstChild("UpperTorso")
  1234. if targettorso ~= nil then
  1235. Rooted = true
  1236. ATTACK = true
  1237. RootPart.CFrame = targettorso.CFrame * CF(0,0,3)
  1238. for i = 1, 15 do
  1239. Swait(3)
  1240. RootPart.CFrame = targettorso.CFrame * CF(0,0,1)
  1241. Swait(3)
  1242. RootPart.CFrame = targettorso.CFrame * CF(0,0,3)
  1243. end
  1244. CreateSound("173137001", Head, 5, 1)
  1245. target:BreakJoints()
  1246. target = nil
  1247. Rooted = false
  1248. ATTACK = false
  1249. end
  1250. end
  1251. end
  1252.  
  1253. function beam(from,size)
  1254. local sphere = Instance.new("Part",Effects)
  1255. sphere.Size = VT(size*2,size*2,size*2)
  1256. sphere.Material = "Neon"
  1257. sphere.Shape = "Ball"
  1258. sphere.Name = "Waft"
  1259. sphere.Anchored = true
  1260. sphere.Color = C3(80/255, 109/255, 84/255)
  1261. sphere.CFrame = RootPart.CFrame * CF(0,0.5,-from)
  1262. sphere.CanCollide = false
  1263. local hit = sphere.Touched:connect(function(hit)
  1264. dealdamage(hit,0,0,0,true,0,0)
  1265. end)
  1266. --table.insert(Effects2,{Lazor,"Disappear",0.01,0.03,0,0.03,1})
  1267. table.insert(Effects2,{sphere,"Disappear",0.01,0.03,0,0.03,1})
  1268. end
  1269.  
  1270. function turnto(position)
  1271. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1272. end
  1273.  
  1274. function FARTLAZOR()
  1275. Rooted = true
  1276. ATTACK = true
  1277. for i=0, 2, 0.1 / Animation_Speed do
  1278. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(180)), 0.15 / Animation_Speed)
  1279. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1280. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1281. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1282. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1283. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1284. end
  1285. for i = 1, 25 do
  1286. Swait()
  1287. turnto(Mouse.Hit.p)
  1288. end
  1289. CreateSound("131314452", Effects, 10, 1)
  1290. beam(50,50)
  1291. Swait(50)
  1292. ATTACK = false
  1293. Rooted = false
  1294. end
  1295.  
  1296. --//=================================\\
  1297. --|| ASSIGN THINGS TO KEYS
  1298. --\\=================================//
  1299.  
  1300. Humanoid.Changed:connect(function(Jump)
  1301. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1302. Humanoid.Jump = false
  1303. end
  1304. end)
  1305.  
  1306. function MouseDown(Mouse)
  1307. if ATTACK == false then
  1308. choosetarget()
  1309. end
  1310. end
  1311.  
  1312. function MouseUp(Mouse)
  1313. HOLD = false
  1314. end
  1315.  
  1316. function KeyDown(Key)
  1317. if Key == "e" and ATTACK == false then
  1318. assgrab()
  1319. end
  1320. if Key == "g" and ATTACK == false then
  1321. slash()
  1322. end
  1323. if Key == "x" and ATTACK == false then
  1324. FARTLAZOR()
  1325. end
  1326. if Key == "f" and ATTACK == false then
  1327. hurr()
  1328. end
  1329. end
  1330.  
  1331. function KeyUp(Key)
  1332. end
  1333.  
  1334. Mouse.Button1Down:connect(function(NEWKEY)
  1335. MouseDown(NEWKEY)
  1336. end)
  1337. Mouse.Button1Up:connect(function(NEWKEY)
  1338. MouseUp(NEWKEY)
  1339. end)
  1340. Mouse.KeyDown:connect(function(NEWKEY)
  1341. KeyDown(NEWKEY)
  1342. end)
  1343. Mouse.KeyUp:connect(function(NEWKEY)
  1344. KeyUp(NEWKEY)
  1345. end)
  1346.  
  1347. --//=================================\\
  1348. --\\=================================//
  1349.  
  1350.  
  1351. function unanchor()
  1352. if UNANCHOR == true then
  1353. g = Character:GetChildren()
  1354. for i = 1, #g do
  1355. if g[i].ClassName == "Part" then
  1356. g[i].Anchored = false
  1357. end
  1358. end
  1359. end
  1360. end
  1361.  
  1362.  
  1363. --//=================================\\
  1364. --|| WRAP THE WHOLE SCRIPT UP
  1365. --\\=================================//
  1366.  
  1367. Humanoid.Changed:connect(function(Jump)
  1368. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1369. Humanoid.Jump = false
  1370. end
  1371. end)
  1372. Rooted = true
  1373. ANIMATE.Parent = nil
  1374. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1375. IDLEANIMATION:Play()
  1376. Swait()
  1377. Rooted = false
  1378.  
  1379. local loop = 0
  1380.  
  1381. while true do
  1382. Swait()
  1383. SINE = SINE + CHANGE
  1384. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1385. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1386. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1387. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1388. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1389. if ATTACK == false then
  1390. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1391. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1392. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1393. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1394. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1395. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1396. end
  1397. if #Effects2>0 then
  1398. for e=1,#Effects2 do
  1399. if Effects2[e]~=nil then
  1400. local Thing=Effects2[e]
  1401. if Thing~=nil then
  1402. local Part=Thing[1]
  1403. local Mode=Thing[2]
  1404. local Delay=Thing[3]
  1405. local IncX=Thing[4]
  1406. local IncY=Thing[5]
  1407. local IncZ=Thing[6]
  1408. local Part2=Thing[8]
  1409. if Thing[1].Transparency<=1 then
  1410. if Thing[2]=="Block1" then
  1411. Thing[1].CFrame=Part2.CFrame
  1412. Mesh=Thing[1].Mesh
  1413. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1414. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1415. elseif Thing[2]=="Cylinder" then
  1416. Mesh=Thing[1].Mesh
  1417. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1418. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1419. elseif Thing[2]=="Blood" then
  1420. Mesh=Thing[7]
  1421. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1422. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1423. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1424. elseif Thing[2]=="Elec" then
  1425. Mesh=Thing[1].Mesh
  1426. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1427. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1428. elseif Thing[2]=="Disappear" then
  1429. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1430. end
  1431. else
  1432. Part.Parent=nil
  1433. table.remove(Effects2,e)
  1434. end
  1435. end
  1436. end
  1437. end
  1438. end
  1439. unanchor()
  1440. Humanoid.MaxHealth = "inf"
  1441. Humanoid.Health = "inf"
  1442. if Rooted == false then
  1443. Disable_Jump = false
  1444. Humanoid.WalkSpeed = Speed
  1445. elseif Rooted == true then
  1446. Disable_Jump = true
  1447. Humanoid.WalkSpeed = 0
  1448. end
  1449. if target ~= nil then
  1450. loop = loop + 1
  1451. if loop == 35 then
  1452. if target:FindFirstChild("HumanoidRootPart") then
  1453. CreateSound("161164363", target.HumanoidRootPart, 10, 1.1)
  1454. end
  1455. loop = 0
  1456. end
  1457. end
  1458. end
  1459.  
  1460. --//=================================\\
  1461. --\\=================================//
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467. --//====================================================\\--
  1468. --|| END OF SCRIPT
  1469. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement