LifeIsBoring

Untitled

Dec 2nd, 2018
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.73 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(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. wait(0.2)
  7.  
  8.  
  9.  
  10. Player = game:GetService("Players").LocalPlayer
  11. PlayerGui = Player.PlayerGui
  12. Cam = workspace.CurrentCamera
  13. Backpack = Player.Backpack
  14. Character = Player.Character
  15. Humanoid = Character.Humanoid
  16. Mouse = Player:GetMouse()
  17. RootPart = Character["HumanoidRootPart"]
  18. Torso = Character["Torso"]
  19. Head = Character["Head"]
  20. RightArm = Character["Right Arm"]
  21. LeftArm = Character["Left Arm"]
  22. RightLeg = Character["Right Leg"]
  23. LeftLeg = Character["Left Leg"]
  24. RootJoint = RootPart["RootJoint"]
  25. Neck = Torso["Neck"]
  26. RightShoulder = Torso["Right Shoulder"]
  27. LeftShoulder = Torso["Left Shoulder"]
  28. RightHip = Torso["Right Hip"]
  29. LeftHip = Torso["Left Hip"]
  30. KEYHOLD = false
  31. IT = Instance.new
  32. CF = CFrame.new
  33. VT = Vector3.new
  34. RAD = math.rad
  35. C3 = Color3.new
  36. UD2 = UDim2.new
  37. BRICKC = BrickColor.new
  38. ANGLES = CFrame.Angles
  39. EULER = CFrame.fromEulerAnglesXYZ
  40. COS = math.cos
  41. ACOS = math.acos
  42. SIN = math.sin
  43. ASIN = math.asin
  44. ABS = math.abs
  45. MRANDOM = math.random
  46. FLOOR = math.floor
  47. local Torsos = {}
  48.  
  49. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  50. local NEWMESH = IT(MESH)
  51. if MESH == "SpecialMesh" then
  52. NEWMESH.MeshType = MESHTYPE
  53. if MESHID ~= "nil" and MESHID ~= "" then
  54. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  55. end
  56. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  57. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  58. end
  59. end
  60. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  61. NEWMESH.Scale = SCALE
  62. NEWMESH.Parent = PARENT
  63. return NEWMESH
  64. end
  65.  
  66. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  67. local NEWPART = IT("Part")
  68. NEWPART.formFactor = FORMFACTOR
  69. NEWPART.Reflectance = REFLECTANCE
  70. NEWPART.Transparency = TRANSPARENCY
  71. NEWPART.CanCollide = false
  72. NEWPART.Locked = true
  73. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  74. NEWPART.Name = NAME
  75. NEWPART.Size = SIZE
  76. NEWPART.Position = Torso.Position
  77. NEWPART.Material = MATERIAL
  78. NEWPART:BreakJoints()
  79. NEWPART.Parent = PARENT
  80. return NEWPART
  81. end
  82.  
  83.  
  84. --//=================================\\
  85. --|| CUSTOMIZATION
  86. --\\=================================//
  87.  
  88. Class_Name = "Template"
  89. Weapon_Name = "Add-ons"
  90.  
  91. Custom_Colors = {
  92. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  93. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  94.  
  95. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  96. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  97. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  98. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  99. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  100.  
  101. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  102. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  103. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  104. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  105. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  106. }
  107.  
  108.  
  109. Player_Size = 1 --Size of the player.
  110. Animation_Speed = 3
  111. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  112.  
  113. local Speed = 16
  114. local Effects2 = {}
  115.  
  116. --//=================================\\
  117. --|| END OF CUSTOMIZATION
  118. --\\=================================//
  119.  
  120. local function weldBetween(a, b)
  121. local weldd = Instance.new("ManualWeld")
  122. weldd.Part0 = a
  123. weldd.Part1 = b
  124. weldd.C0 = CFrame.new()
  125. weldd.C1 = b.CFrame:inverse() * a.CFrame
  126. weldd.Parent = a
  127. return weldd
  128. end
  129.  
  130. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  131. local acs = Instance.new("Part")
  132. acs.CanCollide = false
  133. acs.Anchored = false
  134. acs.Size = Vector3.new(0,0,0)
  135. acs.CFrame = attachmentpart.CFrame
  136. acs.Parent = Character
  137. acs.BrickColor = color
  138. local meshs = Instance.new("SpecialMesh")
  139. meshs.MeshId = mesh
  140. meshs.TextureId = texture
  141. meshs.Parent = acs
  142. meshs.Scale = scale
  143. meshs.Offset = offset
  144. weldBetween(attachmentpart,acs)
  145. end
  146.  
  147. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  148. if TYPE == "Gem" then
  149. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  150. acs.Anchored = false
  151. acs.CanCollide = false
  152. acs.CFrame = PART.CFrame
  153. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  154. weldBetween(PART,acs)
  155. elseif TYPE == "Skull" then
  156. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  157. acs.Anchored = false
  158. acs.CanCollide = false
  159. acs.CFrame = PART.CFrame
  160. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  161. weldBetween(PART,acs)
  162. elseif TYPE == "Eye" then
  163. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  164. acs.Anchored = false
  165. acs.CanCollide = false
  166. acs.CFrame = PART.CFrame
  167. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  168. weldBetween(PART,acs)
  169. end
  170. end
  171.  
  172. --//=================================\\
  173. --|| USEFUL VALUES
  174. --\\=================================//
  175.  
  176. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  177. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  178. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  179. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  180. local CO1 = 0
  181. local CO2 = 0
  182. local CO3 = 0
  183. local CO4 = 0
  184. local CHANGEDEFENSE = 0
  185. local CHANGEDAMAGE = 0
  186. local CHANGEMOVEMENT = 0
  187. local ANIM = "Idle"
  188. local ATTACK = false
  189. local EQUIPPED = false
  190. local HOLD = false
  191. local COMBO = 1
  192. local LASTPOINT = nil
  193. local BLCF = nil
  194. local SCFR = nil
  195. local STAGGERHITANIM = false
  196. local STAGGERANIM = false
  197. local STUNANIM = false
  198. local CRITCHANCENUMBER = 0
  199. local IDLENUMBER = 0
  200. local DONUMBER = 0
  201. local HANDIDLE = false
  202. local SINE = 0
  203. local CHANGE = 2 / Animation_Speed
  204. local WALKINGANIM = false
  205. local WALK = 0
  206. local DISABLEJUMPING = false
  207. local HASBEENBLOCKED = false
  208. local STUNDELAYNUMBER = 0
  209. local MANADELAYNUMBER = 0
  210. local SECONDARYMANADELAYNUMBER = 0
  211. local ROBLOXIDLEANIMATION = IT("Animation")
  212. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  213. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  214. --ROBLOXIDLEANIMATION.Parent = Humanoid
  215. local WEAPONGUI = IT("ScreenGui", nil)
  216. WEAPONGUI.Name = "Weapon GUI"
  217. local WEAPONTOOL = IT("HopperBin", nil)
  218. WEAPONTOOL.Name = Weapon_Name
  219. local Weapon = IT("Model")
  220. Weapon.Name = Weapon_Name
  221. local Effects = IT("Folder", Weapon)
  222. Effects.Name = "Effects"
  223. local ANIMATOR = Humanoid.Animator
  224. local ANIMATE = Character.Animate
  225. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  226. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  227. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  228. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  229. local UNANCHOR = true
  230.  
  231. --//=================================\\
  232. --\\=================================//
  233.  
  234. --//=================================\\
  235. --|| STATS
  236. --\\=================================//
  237.  
  238. if Character:FindFirstChild("Stats") ~= nil then
  239. Character:FindFirstChild("Stats").Parent = nil
  240. end
  241.  
  242. local Stats = IT("Folder", nil)
  243. Stats.Name = "Stats"
  244. local ChangeStat = IT("Folder", Stats)
  245. ChangeStat.Name = "ChangeStat"
  246. local Defense = IT("NumberValue", Stats)
  247. Defense.Name = "Defense"
  248. Defense.Value = 1
  249. local Movement = IT("NumberValue", Stats)
  250. Movement.Name = "Movement"
  251. Movement.Value = 1
  252. local Damage = IT("NumberValue", Stats)
  253. Damage.Name = "Damage"
  254. Damage.Value = 1
  255. local Mana = IT("NumberValue", Stats)
  256. Mana.Name = "Mana"
  257. Mana.Value = 0
  258. local SecondaryMana = IT("NumberValue", Stats)
  259. SecondaryMana.Name = "SecondaryMana"
  260. SecondaryMana.Value = 0
  261. local CanCrit = IT("BoolValue", Stats)
  262. CanCrit.Name = "CanCrit"
  263. CanCrit.Value = false
  264. local CritChance = IT("NumberValue", Stats)
  265. CritChance.Name = "CritChance"
  266. CritChance.Value = 20
  267. local CanPenetrateArmor = IT("BoolValue", Stats)
  268. CanPenetrateArmor.Name = "CanPenetrateArmor"
  269. CanPenetrateArmor.Value = false
  270. local AntiTeamKill = IT("BoolValue", Stats)
  271. AntiTeamKill.Name = "AntiTeamKill"
  272. AntiTeamKill.Value = false
  273. local Rooted = IT("BoolValue", Stats)
  274. Rooted.Name = "Rooted"
  275. Rooted.Value = false
  276. local Block = IT("BoolValue", Stats)
  277. Block.Name = "Block"
  278. Block.Value = false
  279. local RecentEnemy = IT("ObjectValue", Stats)
  280. RecentEnemy.Name = "RecentEnemy"
  281. RecentEnemy.Value = nil
  282. local StaggerHit = IT("BoolValue", Stats)
  283. StaggerHit.Name = "StaggerHit"
  284. StaggerHit.Value = false
  285. local Stagger = IT("BoolValue", Stats)
  286. Stagger.Name = "Stagger"
  287. Stagger.Value = false
  288. local Stun = IT("BoolValue", Stats)
  289. Stun.Name = "Stun"
  290. Stun.Value = false
  291. local StunValue = IT("NumberValue", Stats)
  292. StunValue.Name = "StunValue"
  293. StunValue.Value = 0
  294.  
  295.  
  296. --//=================================\\
  297. --\\=================================//
  298.  
  299.  
  300.  
  301.  
  302.  
  303. --//=================================\\
  304. --|| DEBUFFS / BUFFS
  305. --\\=================================//
  306.  
  307. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  308. DEFENSECHANGE1.Name = "ChangeDefense"
  309. DEFENSECHANGE1.Value = 0
  310.  
  311. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  312. MOVEMENTCHANGE1.Name = "ChangeMovement"
  313. MOVEMENTCHANGE1.Value = 0
  314.  
  315. --//=================================\\
  316. --\\=================================//
  317.  
  318.  
  319.  
  320.  
  321.  
  322. --//=================================\\
  323. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  324. --\\=================================//
  325.  
  326. ArtificialHB = Instance.new("BindableEvent", script)
  327. ArtificialHB.Name = "ArtificialHB"
  328.  
  329. script:WaitForChild("ArtificialHB")
  330.  
  331. frame = Frame_Speed
  332. tf = 0
  333. allowframeloss = false
  334. tossremainder = false
  335. lastframe = tick()
  336. script.ArtificialHB:Fire()
  337.  
  338. game:GetService("RunService").Heartbeat:connect(function(s, p)
  339. tf = tf + s
  340. if tf >= frame then
  341. if allowframeloss then
  342. script.ArtificialHB:Fire()
  343. lastframe = tick()
  344. else
  345. for i = 1, math.floor(tf / frame) do
  346. script.ArtificialHB:Fire()
  347. end
  348. lastframe = tick()
  349. end
  350. if tossremainder then
  351. tf = 0
  352. else
  353. tf = tf - frame * math.floor(tf / frame)
  354. end
  355. end
  356. end)
  357.  
  358. --//=================================\\
  359. --\\=================================//
  360.  
  361.  
  362.  
  363.  
  364.  
  365. --//=================================\\
  366. --|| SOME FUNCTIONS
  367. --\\=================================//
  368.  
  369. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  370. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  371. end
  372.  
  373. function PositiveAngle(NUMBER)
  374. if NUMBER >= 0 then
  375. NUMBER = 0
  376. end
  377. return NUMBER
  378. end
  379.  
  380. function NegativeAngle(NUMBER)
  381. if NUMBER <= 0 then
  382. NUMBER = 0
  383. end
  384. return NUMBER
  385. end
  386.  
  387. function Swait(NUMBER)
  388. if NUMBER == 0 or NUMBER == nil then
  389. ArtificialHB.Event:wait()
  390. else
  391. for i = 1, NUMBER do
  392. ArtificialHB.Event:wait()
  393. end
  394. end
  395. end
  396.  
  397. function QuaternionFromCFrame(cf)
  398. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  399. local trace = m00 + m11 + m22
  400. if trace > 0 then
  401. local s = math.sqrt(1 + trace)
  402. local recip = 0.5 / s
  403. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  404. else
  405. local i = 0
  406. if m11 > m00 then
  407. i = 1
  408. end
  409. if m22 > (i == 0 and m00 or m11) then
  410. i = 2
  411. end
  412. if i == 0 then
  413. local s = math.sqrt(m00 - m11 - m22 + 1)
  414. local recip = 0.5 / s
  415. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  416. elseif i == 1 then
  417. local s = math.sqrt(m11 - m22 - m00 + 1)
  418. local recip = 0.5 / s
  419. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  420. elseif i == 2 then
  421. local s = math.sqrt(m22 - m00 - m11 + 1)
  422. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  423. end
  424. end
  425. end
  426.  
  427. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  428. local xs, ys, zs = x + x, y + y, z + z
  429. local wx, wy, wz = w * xs, w * ys, w * zs
  430. local xx = x * xs
  431. local xy = x * ys
  432. local xz = x * zs
  433. local yy = y * ys
  434. local yz = y * zs
  435. local zz = z * zs
  436. 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))
  437. end
  438.  
  439. function QuaternionSlerp(a, b, t)
  440. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  441. local startInterp, finishInterp;
  442. if cosTheta >= 0.0001 then
  443. if (1 - cosTheta) > 0.0001 then
  444. local theta = ACOS(cosTheta)
  445. local invSinTheta = 1 / SIN(theta)
  446. startInterp = SIN((1 - t) * theta) * invSinTheta
  447. finishInterp = SIN(t * theta) * invSinTheta
  448. else
  449. startInterp = 1 - t
  450. finishInterp = t
  451. end
  452. else
  453. if (1 + cosTheta) > 0.0001 then
  454. local theta = ACOS(-cosTheta)
  455. local invSinTheta = 1 / SIN(theta)
  456. startInterp = SIN((t - 1) * theta) * invSinTheta
  457. finishInterp = SIN(t * theta) * invSinTheta
  458. else
  459. startInterp = t - 1
  460. finishInterp = t
  461. end
  462. end
  463. 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
  464. end
  465.  
  466. function Clerp(a, b, t)
  467. local qa = {QuaternionFromCFrame(a)}
  468. local qb = {QuaternionFromCFrame(b)}
  469. local ax, ay, az = a.x, a.y, a.z
  470. local bx, by, bz = b.x, b.y, b.z
  471. local _t = 1 - t
  472. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  473. end
  474.  
  475. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  476. local frame = IT("Frame")
  477. frame.BackgroundTransparency = TRANSPARENCY
  478. frame.BorderSizePixel = BORDERSIZEPIXEL
  479. frame.Position = POSITION
  480. frame.Size = SIZE
  481. frame.BackgroundColor3 = COLOR
  482. frame.BorderColor3 = BORDERCOLOR
  483. frame.Name = NAME
  484. frame.Parent = PARENT
  485. return frame
  486. end
  487.  
  488. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  489. local label = IT("TextLabel")
  490. label.BackgroundTransparency = 1
  491. label.Size = UD2(1, 0, 1, 0)
  492. label.Position = UD2(0, 0, 0, 0)
  493. label.TextColor3 = C3(255, 255, 255)
  494. label.TextStrokeTransparency = STROKETRANSPARENCY
  495. label.TextTransparency = TRANSPARENCY
  496. label.FontSize = TEXTFONTSIZE
  497. label.Font = TEXTFONT
  498. label.BorderSizePixel = BORDERSIZEPIXEL
  499. label.TextScaled = true
  500. label.Text = TEXT
  501. label.Name = NAME
  502. label.Parent = PARENT
  503. return label
  504. end
  505.  
  506. function NoOutlines(PART)
  507. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  508. end
  509.  
  510.  
  511. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  512. local NEWWELD = IT(TYPE)
  513. NEWWELD.Part0 = PART0
  514. NEWWELD.Part1 = PART1
  515. NEWWELD.C0 = C0
  516. NEWWELD.C1 = C1
  517. NEWWELD.Parent = PARENT
  518. return NEWWELD
  519. end
  520.  
  521. function CreateSound(ID, PARENT, VOLUME, PITCH)
  522. coroutine.resume(coroutine.create(function()
  523. local NEWSOUND = IT("Sound", PARENT)
  524. NEWSOUND.Volume = VOLUME
  525. NEWSOUND.Pitch = PITCH
  526. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  527. Swait()
  528. NEWSOUND:play()
  529. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  530. end))
  531. end
  532.  
  533. --//=================================\\
  534. --\\=================================//
  535.  
  536.  
  537.  
  538.  
  539.  
  540. --//=================================\\
  541. --|| RESIZE PLAYER
  542. --\\=================================//
  543.  
  544. if Player_Size ~= 1 then
  545. RootPart.Size = RootPart.Size * Player_Size
  546. Torso.Size = Torso.Size * Player_Size
  547. Head.Size = Head.Size * Player_Size
  548. RightArm.Size = RightArm.Size * Player_Size
  549. LeftArm.Size = LeftArm.Size * Player_Size
  550. RightLeg.Size = RightLeg.Size * Player_Size
  551. LeftLeg.Size = LeftLeg.Size * Player_Size
  552. RootJoint.Parent = RootPart
  553. Neck.Parent = Torso
  554. RightShoulder.Parent = Torso
  555. LeftShoulder.Parent = Torso
  556. RightHip.Parent = Torso
  557. LeftHip.Parent = Torso
  558.  
  559. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  560. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  561. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  562. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  563. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  564. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  565. if Disable_Moving_Arms == false then
  566. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  567. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  568. else
  569. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  570. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  571. end
  572. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  573. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  574. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  575. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  576. --------------------
  577. end
  578.  
  579.  
  580. --//=================================\\
  581. --\\=================================//
  582.  
  583.  
  584.  
  585.  
  586. --//=================================\\
  587. --|| WEAPON CREATION
  588. --\\=================================//
  589.  
  590. if Player_Size ~= 1 then
  591. for _, v in pairs (Weapon:GetChildren()) do
  592. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  593. local p1 = v.Part1
  594. v.Part1 = nil
  595. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  596. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  597. v.Part1 = p1
  598. elseif v.ClassName == "Part" then
  599. for _, b in pairs (v:GetChildren()) do
  600. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  601. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  602. end
  603. end
  604. end
  605. end
  606. end
  607.  
  608. for _, c in pairs(Weapon:GetChildren()) do
  609. if c.ClassName == "Part" then
  610. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  611. end
  612. end
  613.  
  614. Weapon.Parent = Character
  615.  
  616. print(Class_Name.." loaded.")
  617.  
  618. --//=================================\\
  619. --\\=================================//
  620.  
  621.  
  622.  
  623. --//=================================\\
  624. --|| ATTACK FUNCTIONS AND STUFF
  625. --\\=================================//
  626.  
  627. local raysound = Instance.new("Sound",Character)
  628. raysound.SoundId = "rbxassetid://346067083"
  629. raysound.Pitch = 2
  630. raysound.Looped = true
  631. raysound.Volume = 10
  632.  
  633. function pew()
  634. ATTACK = true
  635. local sphere = Instance.new("Part",Effects)
  636. sphere.Size = Vector3.new(0,0,0)
  637. sphere.Material = "Neon"
  638. sphere.Shape = "Ball"
  639. sphere.Name = "AntimatterRay"
  640. sphere.Anchored = true
  641. sphere.Color = Color3.new(0,0,0)
  642. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*27
  643. sphere.CanCollide = false
  644. local db=false
  645. local hit = sphere.Touched:connect(function(hit)
  646. if db==true then return end
  647. if hit.Parent ~= Character and hit.Parent.Parent ~= Character and hit.Parent ~= Effects and hit.Anchored == false and hit:FindFirstChild("Vanishing") == nil then
  648. if hit.Parent:FindFirstChild("Humanoid") then
  649. hit.Parent:findFirstChildOfClass("Humanoid"):TakeDamage(hit.Parent:findFirstChildOfClass("Humanoid").MaxHealth/2)
  650. db=true
  651. if hit.Parent:FindFirstChild("Vanishing") == nil then
  652. local vanish = Instance.new("BoolValue",hit.Parent)
  653. vanish.Name = "Vanishing"
  654. local sound = Instance.new("Sound",hit)
  655. sound.SoundId = "rbxassetid://179497874"
  656. sound.Volume = 10
  657. sound:Play()
  658. end
  659. else
  660. local vanish = Instance.new("BoolValue",hit)
  661. vanish.Name = "Vanishing"
  662. hit.Color = Color3.new(0,0,0)
  663. table.insert(Effects2,{hit,"Disappear",0.07,0,1,1,1})
  664. if hit:FindFirstChildOfClass("SpecialMesh") then
  665. local mesh = hit:FindFirstChildOfClass("SpecialMesh")
  666. mesh.TextureId = ""
  667. end
  668. end
  669. end
  670. end)
  671. repeat
  672. Swait()
  673. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  674. sphere.Size = sphere.Size + Vector3.new(1,1,1)
  675. sphere.Color = Color3.new(0,(sphere.Size.Y/200),0)
  676. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*(sphere.Size.Y/1.75)
  677. until KEYHOLD == false or sphere.Size.Y > 200
  678. CreateSound("11944350", Effects, 10, 1)
  679. local bv = Instance.new("BodyVelocity")
  680. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  681. bv.velocity = RootPart.CFrame.lookVector*350
  682. bv.Parent = sphere
  683. bv.Name = "DASH"
  684. sphere.Anchored = false
  685. ATTACK = false
  686. game:GetService("Debris"):AddItem(sphere, 15)
  687. end
  688.  
  689. function HoldRay()
  690. ATTACK = true
  691. UNANCHOR = false
  692. CreateSound("428800263", Torso, 15, 3.5)
  693. local sphere = Instance.new("Part",Effects)
  694. sphere.Size = Vector3.new(0,0,0)
  695. sphere.Material = "Neon"
  696. sphere.Shape = "Ball"
  697. sphere.Name = "AntimatterRay"
  698. sphere.Anchored = true
  699. sphere.Color = Color3.new(59/255, 80/255, 45/255)
  700. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  701. sphere.CanCollide = false
  702. for i=0, 1, 0.1 / Animation_Speed do
  703. Swait()
  704. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  705. sphere.Size = sphere.Size + Vector3.new(0.6,0.6,0.6)
  706. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  707. end
  708. local sound = Instance.new("Sound",Effects)
  709. sound.SoundId = "rbxassetid://165487479"
  710. sound.Volume = 10
  711. sound:Play()
  712. repeat
  713. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  714. Swait()
  715. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  716. until sound.Playing == false
  717. sound:remove()
  718. raysound:Play()
  719. local timer = 1
  720. local Lazor = Instance.new("Part",Effects)
  721. Lazor.Size = Vector3.new(12,12,1000)
  722. Lazor.Name = "AntimatterRay"
  723. Lazor.Material = "Neon"
  724. Lazor.Anchored = true
  725. Lazor.CanCollide = false
  726. Lazor.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*515
  727. Lazor.Color = Color3.new(0,0,0)
  728. Lazor.CFrame = Lazor.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.random(-180,180))
  729. local hit = Lazor.Touched:connect(function(hit)
  730. if hit.Parent ~= Character and hit.Parent.Parent ~= Character and hit.Parent ~= Effects and hit.Anchored == false and hit:FindFirstChild("Vanishing") == nil then
  731. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  732. hit.Parent:findFirstChildOfClass("Humanoid"):TakeDamage(0.1)
  733. if hit.Parent:FindFirstChild("Vanishing") == nil then
  734. local vanish = Instance.new("BoolValue",hit.Parent)
  735. vanish.Name = "Vanishing"
  736. local sound = Instance.new("Sound",hit)
  737. sound.SoundId = "rbxassetid://179497874"
  738. sound.Volume = 10
  739. sound:Play()
  740. end
  741. else
  742. local vanish = Instance.new("BoolValue",hit)
  743. vanish.Name = "Vanishing"
  744. hit.Color = Color3.new(0,0,0)
  745. table.insert(Effects2,{hit,"Disappear",0.07,0,1,1,1})
  746. if hit:FindFirstChildOfClass("SpecialMesh") then
  747. local mesh = hit:FindFirstChildOfClass("SpecialMesh")
  748. mesh.TextureId = ""
  749. end
  750. end
  751. end
  752. end)
  753. local hit2 = sphere.Touched:connect(function(hit)
  754. if hit.Parent ~= Character and hit.Parent.Parent ~= Character and hit.Parent ~= Effects and hit.Anchored == false and hit:FindFirstChild("Vanishing") == nil then
  755. if hit.Parent:FindFirstChild("Humanoid") then
  756. hit.Parent:BreakJoints()
  757. if hit.Parent:FindFirstChild("Vanishing") == nil then
  758. local vanish = Instance.new("BoolValue",hit.Parent)
  759. vanish.Name = "Vanishing"
  760. local sound = Instance.new("Sound",hit)
  761. sound.SoundId = "rbxassetid://179497874"
  762. sound.Volume = 10
  763. sound:Play()
  764. end
  765. else
  766. local vanish = Instance.new("BoolValue",hit)
  767. vanish.Name = "Vanishing"
  768. hit.Color = Color3.new(0,0,0)
  769. table.insert(Effects2,{hit,"Disappear",0.07,0,1,1,1})
  770. if hit:FindFirstChildOfClass("SpecialMesh") then
  771. local mesh = hit:FindFirstChildOfClass("SpecialMesh")
  772. mesh.TextureId = ""
  773. end
  774. end
  775. end
  776. end)
  777. repeat
  778. if HOLD == true then
  779. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  780. Lazor.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*515
  781. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  782. Lazor.CFrame = Lazor.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.random(-180,180))
  783. if timer ==1 then
  784. Lazor.Color = Color3.new(59/255, 80/255, 45/255)
  785. sphere.Color = Color3.new(59/255, 80/255, 45/255)
  786. timer = 2
  787. elseif timer ==2 then
  788. Lazor.Color = Color3.new(39/255, 70/255, 45/255)
  789. sphere.Color = Color3.new(39/255, 70/255, 45/255)
  790. timer = 1
  791. end
  792. end
  793. Swait()
  794. until HOLD == false
  795. for i=0, 1, 0.1 / Animation_Speed/2 do
  796. Swait()
  797. Lazor.CFrame = Lazor.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.random(-180,180))
  798. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  799. Lazor.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*515
  800. sphere.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*15
  801. sphere.Anchored = true
  802. Lazor.Anchored = true
  803. sphere.Size = sphere.Size - Vector3.new(0.2,0.2,0.2)
  804. Lazor.Size = Lazor.Size - Vector3.new(0.5,0.5,0)
  805. Lazor.Transparency = Lazor.Transparency + 0.03
  806. sphere.Transparency = sphere.Transparency + 0.03
  807. raysound.Volume = raysound.Volume - 0.1
  808. if timer ==1 then
  809. Lazor.Color = Color3.new(59/255, 80/255, 45/255)
  810. sphere.Color = Color3.new(59/255, 80/255, 45/255)
  811. timer = 2
  812. elseif timer ==2 then
  813. Lazor.Color = Color3.new(39/255, 70/255, 45/255)
  814. sphere.Color = Color3.new(39/255, 70/255, 45/255)
  815. timer = 1
  816. end
  817. end
  818. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Vector3.new(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z)) * CFrame.new(0, 0, 0)
  819. hit2:disconnect()
  820. hit:disconnect()
  821. raysound:Stop()
  822. raysound.Volume = 5
  823. sphere:remove()
  824. Lazor:remove()
  825. BLCF = nil
  826. SCFR = nil
  827. ATTACK = false
  828. UNANCHOR = true
  829. end
  830.  
  831. local sick = Instance.new("Sound",Character)
  832. sick.SoundId = "rbxassetid://145616154"
  833. sick.Looped = true
  834. sick.Pitch = 1
  835. sick.Volume = 10
  836. sick:Play()
  837.  
  838. local Spook = false
  839.  
  840. function spooky()
  841. Spook = true
  842. local cframe = nil
  843. local pos = nil
  844. sick:Stop()
  845. local sound = Instance.new("Sound",Effects)
  846. sound.SoundId = "rbxassetid://211540835"
  847. sound.Volume = 10
  848. sound:Play()
  849. q = workspace:GetChildren()
  850. for i = 1, #q do
  851. g = q[i]:GetChildren()
  852. for t = 1, #g do
  853. if g[t].Name == "Torso" or g[t].Name == "UpperTorso" and q[i] ~= Character then
  854. table.insert(Effects2,{g[t],"TorsoSpin",0,0,0,0})
  855. end
  856. end
  857. end
  858. repeat
  859. Swait()
  860. until sound.Playing == false
  861. sound:remove()
  862. sick:Play()
  863. Spook = false
  864. end
  865.  
  866. --//=================================\\
  867. --|| ASSIGN THINGS TO KEYS
  868. --\\=================================//
  869.  
  870. Humanoid.Changed:connect(function(Jump)
  871. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  872. Humanoid.Jump = false
  873. end
  874. end)
  875.  
  876. function MouseDown(Mouse)
  877. if HOLD == false and ATTACK == false then
  878. HOLD = true
  879. HoldRay()
  880. elseif HOLD == true then
  881. HOLD = false
  882. end
  883. end
  884.  
  885. function MouseUp(Mouse)
  886. end
  887.  
  888. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  889. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  890. end
  891.  
  892. function KeyDown(Key)
  893. KEYHOLD = true
  894. if Key == "w" and HOLD == false and ATTACK == false then
  895. repeat
  896. local RayHit, RayPos = RayCast(RootPart.Position, RootPart.CFrame.lookVector*150, 1.8, {workspace})
  897. RootPart.CFrame = CFrame.new(RayPos,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  898. Swait()
  899. until KEYHOLD == false
  900. end
  901. if Key == "s" and HOLD == false and ATTACK == false then
  902. repeat
  903. local RayHit, RayPos = RayCast(RootPart.Position, RootPart.CFrame.lookVector*-150, 1.8, {workspace})
  904. RootPart.CFrame = CFrame.new(RayPos,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  905. Swait()
  906. until KEYHOLD == false
  907. end
  908. if Key == "z" and ATTACK == false then
  909. pew()
  910. end
  911. if Key == "f" and Spook == false then
  912. spooky()
  913. end
  914. end
  915.  
  916. function KeyUp(Key)
  917. KEYHOLD = false
  918. end
  919.  
  920. Mouse.Button1Down:connect(function(NEWKEY)
  921. MouseDown(NEWKEY)
  922. end)
  923. Mouse.Button1Up:connect(function(NEWKEY)
  924. MouseUp(NEWKEY)
  925. end)
  926. Mouse.KeyDown:connect(function(NEWKEY)
  927. KeyDown(NEWKEY)
  928. end)
  929. Mouse.KeyUp:connect(function(NEWKEY)
  930. KeyUp(NEWKEY)
  931. end)
  932.  
  933. --//=================================\\
  934. --\\=================================//
  935.  
  936.  
  937. function unanchor()
  938. if UNANCHOR == true then
  939. g = Character:GetChildren()
  940. for i = 1, #g do
  941. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  942. g[i].Anchored = false
  943. end
  944. end
  945. end
  946. RootPart.Anchored = true
  947. end
  948.  
  949.  
  950. --//=================================\\
  951. --|| WRAP THE WHOLE SCRIPT UP
  952. --\\=================================//
  953.  
  954. Humanoid.Changed:connect(function(Jump)
  955. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  956. Humanoid.Jump = false
  957. end
  958. end)
  959.  
  960. Humanoid.Died:connect(function()
  961. ATTACK = true
  962. sick:Stop()
  963. CreateSound("198973822", workspace, 10, 1)
  964. for i = 1, 15 do
  965. local bag = Instance.new("Part",workspace)
  966. bag.Size = VT(1.8, 1.6, 1.2)
  967. bag.CFrame = RootPart.CFrame
  968. local mesh = Instance.new("SpecialMesh",bag)
  969. mesh.MeshType = "FileMesh"
  970. mesh.MeshId = "http://www.roblox.com/asset/?id=19106014"
  971. mesh.TextureId = "rbxassetid://37305301"
  972. end
  973. q = Character:GetChildren()
  974. for i = 1, #q do
  975. if q[i].ClassName == "Model" or q[i].ClassName == "Part" then
  976. q[i]:remove()
  977. end
  978. end
  979. end)
  980.  
  981. RightArm:remove()
  982. LeftArm:remove()
  983. LeftLeg:remove()
  984. RightLeg:remove()
  985. Head.Transparency = 1
  986. Torso.Transparency = 1
  987. Head:ClearAllChildren()
  988. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0.25*Player_Size,0.25*Player_Size,1.5*Player_Size))
  989. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Torso, HandlePart, CF(0 * Player_Size, 1 * Player_Size, 1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0))
  990. local mesh = Instance.new("SpecialMesh",HandlePart)
  991. mesh.MeshId = "rbxassetid://438530093"
  992. mesh.TextureId = "rbxassetid://438530120"
  993. mesh.Scale = Vector3.new(0.7,1,1)
  994.  
  995. ANIMATE.Parent = nil
  996. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  997. IDLEANIMATION:Play()
  998.  
  999. while true do
  1000. Swait()
  1001. if #Effects2>0 then
  1002. for e=1,#Effects2 do
  1003. if Effects2[e]~=nil then
  1004. local Thing=Effects2[e]
  1005. if Thing~=nil then
  1006. local Part=Thing[1]
  1007. local Mode=Thing[2]
  1008. local Delay=Thing[3]
  1009. local IncX=Thing[4]
  1010. local IncY=Thing[5]
  1011. local IncZ=Thing[6]
  1012. local Part2=Thing[8]
  1013. if Thing[1].Transparency<=1 then
  1014. if Thing[2]=="Block1" then
  1015. Thing[1].CFrame=Part2.CFrame
  1016. Mesh=Thing[1].Mesh
  1017. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1018. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1019. elseif Thing[2]=="Cylinder" then
  1020. Mesh=Thing[1].Mesh
  1021. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1022. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1023. elseif Thing[2]=="Blood" then
  1024. Mesh=Thing[7]
  1025. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1026. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1027. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1028. elseif Thing[2]=="Elec" then
  1029. Mesh=Thing[1].Mesh
  1030. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1031. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1032. elseif Thing[2]=="Disappear" then
  1033. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1034. elseif Thing[2]=="TorsoSpin" and Spook == true then
  1035. Thing[1].CFrame = CFrame.new(Thing[1].Position,Vector3.new(math.random(-180,180),math.random(-180,180),math.random(-180,180)))
  1036. end
  1037. else
  1038. Part.Parent=nil
  1039. table.remove(Effects2,e)
  1040. end
  1041. end
  1042. end
  1043. end
  1044. end
  1045. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,Mouse.Hit.p) * CFrame.new(0, 0, 0)
  1046. q = Character:GetChildren()
  1047. for u = 1, #q do
  1048. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1049. q[u]:remove()
  1050. end
  1051. end
  1052. unanchor()
  1053. Humanoid.MaxHealth = "inf"
  1054. Humanoid.Health = "inf"
  1055. if Rooted == false then
  1056. Disable_Jump = false
  1057. Humanoid.WalkSpeed = Speed
  1058. elseif Rooted == true then
  1059. Disable_Jump = true
  1060. Humanoid.WalkSpeed = 0
  1061. end
  1062. end
  1063.  
  1064. --//=================================\\
  1065. --\\=================================//
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071. --//====================================================\\--
  1072. --|| END OF SCRIPT
  1073. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment