Advertisement
bmrx13

idk what this is

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