Advertisement
Mediakiller7Cool

Illuminati Fe

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