Advertisement
Hermaxs

Untitled

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