Advertisement
DarkScriptZEditors

Iluminati

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