Advertisement
13242

Untitled

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