Void_scripter0

T-Kakyoin

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