Advertisement
WagnerJunio07

Meme Dance V2

Dec 14th, 2018
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.93 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  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. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  88. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  89. local RealPlayer = Player
  90. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:owner;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  91.  
  92.  
  93.  
  94. wait(0.2)
  95.  
  96.  
  97.  
  98. Player = owner
  99. PlayerGui = Player.PlayerGui
  100. Cam = workspace.CurrentCamera
  101. Backpack = Player.Backpack
  102. Character = Player.Character
  103. Humanoid = Character.Humanoid
  104. RootPart = Character["HumanoidRootPart"]
  105. Torso = Character["Torso"]
  106. Head = Character["Head"]
  107. RightArm = Character["Right Arm"]
  108. LeftArm = Character["Left Arm"]
  109. RightLeg = Character["Right Leg"]
  110. LeftLeg = Character["Left Leg"]
  111. RootJoint = RootPart["RootJoint"]
  112. Neck = Torso["Neck"]
  113. RightShoulder = Torso["Right Shoulder"]
  114. LeftShoulder = Torso["Left Shoulder"]
  115. RightHip = Torso["Right Hip"]
  116. LeftHip = Torso["Left Hip"]
  117. local sick = Instance.new("Sound",Torso)
  118. sick.SoundId = "rbxassetid://263970261"
  119. sick.Looped = true
  120. sick.Pitch = 1
  121. sick.Volume = 3
  122. sick:Play()
  123. local target = nil
  124.  
  125. IT = Instance.new
  126. CF = CFrame.new
  127. VT = Vector3.new
  128. RAD = math.rad
  129. C3 = Color3.new
  130. UD2 = UDim2.new
  131. BRICKC = BrickColor.new
  132. ANGLES = CFrame.Angles
  133. EULER = CFrame.fromEulerAnglesXYZ
  134. COS = math.cos
  135. ACOS = math.acos
  136. SIN = math.sin
  137. ASIN = math.asin
  138. ABS = math.abs
  139. MRANDOM = math.random
  140. FLOOR = math.floor
  141.  
  142. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  143. local NEWMESH = IT(MESH)
  144. if MESH == "SpecialMesh" then
  145. NEWMESH.MeshType = MESHTYPE
  146. if MESHID ~= "nil" and MESHID ~= "" then
  147. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  148. end
  149. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  150. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  151. end
  152. end
  153. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  154. NEWMESH.Scale = SCALE
  155. NEWMESH.Parent = PARENT
  156. return NEWMESH
  157. end
  158.  
  159. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  160. local NEWPART = IT("Part")
  161. NEWPART.formFactor = FORMFACTOR
  162. NEWPART.Reflectance = REFLECTANCE
  163. NEWPART.Transparency = TRANSPARENCY
  164. NEWPART.CanCollide = false
  165. NEWPART.Locked = true
  166. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  167. NEWPART.Name = NAME
  168. NEWPART.Size = SIZE
  169. NEWPART.Position = Torso.Position
  170. NEWPART.Material = MATERIAL
  171. NEWPART:BreakJoints()
  172. NEWPART.Parent = PARENT
  173. return NEWPART
  174. end
  175.  
  176.  
  177. --//=================================\\
  178. --|| CUSTOMIZATION
  179. --\\=================================//
  180.  
  181. Class_Name = "Template"
  182. Weapon_Name = "Add-ons"
  183.  
  184. Custom_Colors = {
  185. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  186. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  187.  
  188. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  189. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  190. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  191. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  192. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  193.  
  194. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  195. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  196. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  197. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  198. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  199. }
  200.  
  201.  
  202. Player_Size = 1 --Size of the player.
  203. Animation_Speed = 1
  204. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  205.  
  206. local Speed = 75
  207. local Effects2 = {}
  208.  
  209. --//=================================\\
  210. --|| END OF CUSTOMIZATION
  211. --\\=================================//
  212.  
  213. local function weldBetween(a, b)
  214. local weldd = Instance.new("ManualWeld")
  215. weldd.Part0 = a
  216. weldd.Part1 = b
  217. weldd.C0 = CFrame.new()
  218. weldd.C1 = b.CFrame:inverse() * a.CFrame
  219. weldd.Parent = a
  220. return weldd
  221. end
  222.  
  223. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  224. local acs = Instance.new("Part")
  225. acs.CanCollide = false
  226. acs.Anchored = false
  227. acs.Size = Vector3.new(0,0,0)
  228. acs.CFrame = attachmentpart.CFrame
  229. acs.Parent = Character
  230. acs.BrickColor = color
  231. local meshs = Instance.new("SpecialMesh")
  232. meshs.MeshId = mesh
  233. meshs.TextureId = texture
  234. meshs.Parent = acs
  235. meshs.Scale = scale
  236. meshs.Offset = offset
  237. weldBetween(attachmentpart,acs)
  238. end
  239.  
  240. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  241. if TYPE == "Gem" then
  242. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  243. acs.Anchored = false
  244. acs.CanCollide = false
  245. acs.CFrame = PART.CFrame
  246. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  247. weldBetween(PART,acs)
  248. elseif TYPE == "Skull" then
  249. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  250. acs.Anchored = false
  251. acs.CanCollide = false
  252. acs.CFrame = PART.CFrame
  253. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  254. weldBetween(PART,acs)
  255. elseif TYPE == "Eye" then
  256. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  257. acs.Anchored = false
  258. acs.CanCollide = false
  259. acs.CFrame = PART.CFrame
  260. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  261. weldBetween(PART,acs)
  262. end
  263. end
  264.  
  265. --//=================================\\
  266. --|| USEFUL VALUES
  267. --\\=================================//
  268.  
  269. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  270. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  271. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  272. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  273. local CO1 = 0
  274. local CO2 = 0
  275. local CO3 = 0
  276. local CO4 = 0
  277. local CHANGEDEFENSE = 0
  278. local CHANGEDAMAGE = 0
  279. local CHANGEMOVEMENT = 0
  280. local ANIM = "Idle"
  281. local ATTACK = false
  282. local EQUIPPED = false
  283. local HOLD = false
  284. local COMBO = 1
  285. local LASTPOINT = nil
  286. local BLCF = nil
  287. local SCFR = nil
  288. local STAGGERHITANIM = false
  289. local STAGGERANIM = false
  290. local STUNANIM = false
  291. local CRITCHANCENUMBER = 0
  292. local IDLENUMBER = 0
  293. local DONUMBER = 0
  294. local HANDIDLE = false
  295. local SINE = 0
  296. local CHANGE = 2 / Animation_Speed
  297. local WALKINGANIM = false
  298. local WALK = 0
  299. local DISABLEJUMPING = false
  300. local HASBEENBLOCKED = false
  301. local STUNDELAYNUMBER = 0
  302. local MANADELAYNUMBER = 0
  303. local SECONDARYMANADELAYNUMBER = 0
  304. local ROBLOXIDLEANIMATION = IT("Animation")
  305. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  306. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  307. --ROBLOXIDLEANIMATION.Parent = Humanoid
  308. local WEAPONGUI = IT("ScreenGui", nil)
  309. WEAPONGUI.Name = "Weapon GUI"
  310. local WEAPONTOOL = IT("HopperBin", nil)
  311. WEAPONTOOL.Name = Weapon_Name
  312. local Weapon = IT("Model")
  313. Weapon.Name = Weapon_Name
  314. local Effects = IT("Folder", Weapon)
  315. Effects.Name = "Effects"
  316. local ANIMATOR = Humanoid.Animator
  317. local ANIMATE = Character.Animate
  318. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  319. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  320. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  321. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  322. local UNANCHOR = true
  323.  
  324. --//=================================\\
  325. --\\=================================//
  326.  
  327. --//=================================\\
  328. --|| STATS
  329. --\\=================================//
  330.  
  331. if Character:FindFirstChild("Stats") ~= nil then
  332. Character:FindFirstChild("Stats").Parent = nil
  333. end
  334.  
  335. local Stats = IT("Folder", nil)
  336. Stats.Name = "Stats"
  337. local ChangeStat = IT("Folder", Stats)
  338. ChangeStat.Name = "ChangeStat"
  339. local Defense = IT("NumberValue", Stats)
  340. Defense.Name = "Defense"
  341. Defense.Value = 1
  342. local Movement = IT("NumberValue", Stats)
  343. Movement.Name = "Movement"
  344. Movement.Value = 1
  345. local Damage = IT("NumberValue", Stats)
  346. Damage.Name = "Damage"
  347. Damage.Value = 1
  348. local Mana = IT("NumberValue", Stats)
  349. Mana.Name = "Mana"
  350. Mana.Value = 0
  351. local SecondaryMana = IT("NumberValue", Stats)
  352. SecondaryMana.Name = "SecondaryMana"
  353. SecondaryMana.Value = 0
  354. local CanCrit = IT("BoolValue", Stats)
  355. CanCrit.Name = "CanCrit"
  356. CanCrit.Value = false
  357. local CritChance = IT("NumberValue", Stats)
  358. CritChance.Name = "CritChance"
  359. CritChance.Value = 20
  360. local CanPenetrateArmor = IT("BoolValue", Stats)
  361. CanPenetrateArmor.Name = "CanPenetrateArmor"
  362. CanPenetrateArmor.Value = false
  363. local AntiTeamKill = IT("BoolValue", Stats)
  364. AntiTeamKill.Name = "AntiTeamKill"
  365. AntiTeamKill.Value = false
  366. local Rooted = IT("BoolValue", Stats)
  367. Rooted.Name = "Rooted"
  368. Rooted.Value = false
  369. local Block = IT("BoolValue", Stats)
  370. Block.Name = "Block"
  371. Block.Value = false
  372. local RecentEnemy = IT("ObjectValue", Stats)
  373. RecentEnemy.Name = "RecentEnemy"
  374. RecentEnemy.Value = nil
  375. local StaggerHit = IT("BoolValue", Stats)
  376. StaggerHit.Name = "StaggerHit"
  377. StaggerHit.Value = false
  378. local Stagger = IT("BoolValue", Stats)
  379. Stagger.Name = "Stagger"
  380. Stagger.Value = false
  381. local Stun = IT("BoolValue", Stats)
  382. Stun.Name = "Stun"
  383. Stun.Value = false
  384. local StunValue = IT("NumberValue", Stats)
  385. StunValue.Name = "StunValue"
  386. StunValue.Value = 0
  387.  
  388.  
  389. --//=================================\\
  390. --\\=================================//
  391.  
  392.  
  393. abss = Instance.new("BillboardGui")
  394. abss.Size = UDim2.new(10,0,10,0)
  395. abss.Enabled = false
  396. abss.AlwaysOnTop = true
  397. img2 = Instance.new("ImageLabel",abss)
  398. img2.Position = UDim2.new(0.35,0,0.35,0)
  399. img2.Size = UDim2.new(0.3,0,0.3,0)
  400. img2.Image = "rbxassetid://108413215"
  401. img2.BackgroundTransparency = 1
  402. img2.ImageColor3 = Color3.new(1,1,1)
  403.  
  404. local boop = nil
  405.  
  406.  
  407. --//=================================\\
  408. --|| DEBUFFS / BUFFS
  409. --\\=================================//
  410.  
  411. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  412. DEFENSECHANGE1.Name = "ChangeDefense"
  413. DEFENSECHANGE1.Value = 0
  414.  
  415. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  416. MOVEMENTCHANGE1.Name = "ChangeMovement"
  417. MOVEMENTCHANGE1.Value = 0
  418.  
  419. --//=================================\\
  420. --\\=================================//
  421.  
  422.  
  423.  
  424.  
  425.  
  426. --//=================================\\
  427. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  428. --\\=================================//
  429.  
  430. ArtificialHB = Instance.new("BindableEvent", script)
  431. ArtificialHB.Name = "ArtificialHB"
  432.  
  433. script:WaitForChild("ArtificialHB")
  434.  
  435. frame = Frame_Speed
  436. tf = 0
  437. allowframeloss = false
  438. tossremainder = false
  439. lastframe = tick()
  440. script.ArtificialHB:Fire()
  441.  
  442. game:GetService("RunService").Heartbeat:connect(function(s, p)
  443. tf = tf + s
  444. if tf >= frame then
  445. if allowframeloss then
  446. script.ArtificialHB:Fire()
  447. lastframe = tick()
  448. else
  449. for i = 1, math.floor(tf / frame) do
  450. script.ArtificialHB:Fire()
  451. end
  452. lastframe = tick()
  453. end
  454. if tossremainder then
  455. tf = 0
  456. else
  457. tf = tf - frame * math.floor(tf / frame)
  458. end
  459. end
  460. end)
  461.  
  462. --//=================================\\
  463. --\\=================================//
  464.  
  465.  
  466.  
  467.  
  468.  
  469. --//=================================\\
  470. --|| SOME FUNCTIONS
  471. --\\=================================//
  472.  
  473. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  474. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  475. end
  476.  
  477. function PositiveAngle(NUMBER)
  478. if NUMBER >= 0 then
  479. NUMBER = 0
  480. end
  481. return NUMBER
  482. end
  483.  
  484. function NegativeAngle(NUMBER)
  485. if NUMBER <= 0 then
  486. NUMBER = 0
  487. end
  488. return NUMBER
  489. end
  490.  
  491. function Swait(NUMBER)
  492. if NUMBER == 0 or NUMBER == nil then
  493. ArtificialHB.Event:wait()
  494. else
  495. for i = 1, NUMBER do
  496. ArtificialHB.Event:wait()
  497. end
  498. end
  499. end
  500.  
  501. function QuaternionFromCFrame(cf)
  502. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  503. local trace = m00 + m11 + m22
  504. if trace > 0 then
  505. local s = math.sqrt(1 + trace)
  506. local recip = 0.5 / s
  507. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  508. else
  509. local i = 0
  510. if m11 > m00 then
  511. i = 1
  512. end
  513. if m22 > (i == 0 and m00 or m11) then
  514. i = 2
  515. end
  516. if i == 0 then
  517. local s = math.sqrt(m00 - m11 - m22 + 1)
  518. local recip = 0.5 / s
  519. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  520. elseif i == 1 then
  521. local s = math.sqrt(m11 - m22 - m00 + 1)
  522. local recip = 0.5 / s
  523. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  524. elseif i == 2 then
  525. local s = math.sqrt(m22 - m00 - m11 + 1)
  526. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  527. end
  528. end
  529. end
  530.  
  531. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  532. local xs, ys, zs = x + x, y + y, z + z
  533. local wx, wy, wz = w * xs, w * ys, w * zs
  534. local xx = x * xs
  535. local xy = x * ys
  536. local xz = x * zs
  537. local yy = y * ys
  538. local yz = y * zs
  539. local zz = z * zs
  540. 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))
  541. end
  542.  
  543. function QuaternionSlerp(a, b, t)
  544. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  545. local startInterp, finishInterp;
  546. if cosTheta >= 0.0001 then
  547. if (1 - cosTheta) > 0.0001 then
  548. local theta = ACOS(cosTheta)
  549. local invSinTheta = 1 / SIN(theta)
  550. startInterp = SIN((1 - t) * theta) * invSinTheta
  551. finishInterp = SIN(t * theta) * invSinTheta
  552. else
  553. startInterp = 1 - t
  554. finishInterp = t
  555. end
  556. else
  557. if (1 + cosTheta) > 0.0001 then
  558. local theta = ACOS(-cosTheta)
  559. local invSinTheta = 1 / SIN(theta)
  560. startInterp = SIN((t - 1) * theta) * invSinTheta
  561. finishInterp = SIN(t * theta) * invSinTheta
  562. else
  563. startInterp = t - 1
  564. finishInterp = t
  565. end
  566. end
  567. 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
  568. end
  569.  
  570. function Clerp(a, b, t)
  571. local qa = {QuaternionFromCFrame(a)}
  572. local qb = {QuaternionFromCFrame(b)}
  573. local ax, ay, az = a.x, a.y, a.z
  574. local bx, by, bz = b.x, b.y, b.z
  575. local _t = 1 - t
  576. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  577. end
  578.  
  579. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  580. local frame = IT("Frame")
  581. frame.BackgroundTransparency = TRANSPARENCY
  582. frame.BorderSizePixel = BORDERSIZEPIXEL
  583. frame.Position = POSITION
  584. frame.Size = SIZE
  585. frame.BackgroundColor3 = COLOR
  586. frame.BorderColor3 = BORDERCOLOR
  587. frame.Name = NAME
  588. frame.Parent = PARENT
  589. return frame
  590. end
  591.  
  592. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  593. local label = IT("TextLabel")
  594. label.BackgroundTransparency = 1
  595. label.Size = UD2(1, 0, 1, 0)
  596. label.Position = UD2(0, 0, 0, 0)
  597. label.TextColor3 = C3(255, 255, 255)
  598. label.TextStrokeTransparency = STROKETRANSPARENCY
  599. label.TextTransparency = TRANSPARENCY
  600. label.FontSize = TEXTFONTSIZE
  601. label.Font = TEXTFONT
  602. label.BorderSizePixel = BORDERSIZEPIXEL
  603. label.TextScaled = true
  604. label.Text = TEXT
  605. label.Name = NAME
  606. label.Parent = PARENT
  607. return label
  608. end
  609.  
  610. function NoOutlines(PART)
  611. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  612. end
  613.  
  614.  
  615. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  616. local NEWWELD = IT(TYPE)
  617. NEWWELD.Part0 = PART0
  618. NEWWELD.Part1 = PART1
  619. NEWWELD.C0 = C0
  620. NEWWELD.C1 = C1
  621. NEWWELD.Parent = PARENT
  622. return NEWWELD
  623. end
  624.  
  625. function CreateSound(ID, PARENT, VOLUME, PITCH)
  626. coroutine.resume(coroutine.create(function()
  627. local NEWSOUND = IT("Sound", PARENT)
  628. NEWSOUND.Volume = VOLUME
  629. NEWSOUND.Pitch = PITCH
  630. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  631. Swait()
  632. NEWSOUND:play()
  633. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  634. end))
  635. end
  636.  
  637. function CFrameFromTopBack(at, top, back)
  638. local right = top:Cross(back)
  639. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  640. end
  641.  
  642. function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
  643. local MAGNITUDE = (POSITION1 - POSITION2).magnitude
  644. local CURRENTPOSITION = POSITION1
  645. local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
  646. coroutine.resume(coroutine.create(function()
  647. for i = 1, MULTIPLIERTIME do
  648. local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
  649. LIGHTNINGPART.Anchored = true
  650. local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)])
  651. local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
  652. if MULTIPLIERTIME == i then
  653. local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
  654. LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
  655. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
  656. else
  657. LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
  658. end
  659. CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
  660. game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME)
  661. coroutine.resume(coroutine.create(function()
  662. while LIGHTNINGPART.Transparency ~= 1 do
  663. --local StartTransparency = tra
  664. for i=0, 1, LASTINGTIME do
  665. Swait()
  666. LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME)
  667. end
  668. end
  669. end))
  670. Swait(LIGHTNINGDELAY / Animation_Speed)
  671. end
  672. end))
  673. end
  674.  
  675. function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  676. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  677. EFFECTPART.Anchored = true
  678. EFFECTPART.CFrame = CFRAME
  679. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  680. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  681. coroutine.resume(coroutine.create(function(PART, MESH)
  682. for i = 0, 1, delay do
  683. Swait()
  684. PART.CFrame = PART.CFrame * ROTATION
  685. PART.Transparency = i
  686. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  687. end
  688. PART.Parent = nil
  689. end), EFFECTPART, EFFECTMESH)
  690. end
  691.  
  692. function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  693. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  694. EFFECTPART.Anchored = true
  695. EFFECTPART.CFrame = CFRAME
  696. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  697. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  698. coroutine.resume(coroutine.create(function(PART, MESH)
  699. for i = 0, 1, delay do
  700. Swait()
  701. PART.CFrame = PART.CFrame * ROTATION
  702. PART.Transparency = i
  703. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  704. end
  705. PART.Parent = nil
  706. end), EFFECTPART, EFFECTMESH)
  707. end
  708.  
  709. function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  710. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  711. EFFECTPART.Anchored = true
  712. EFFECTPART.CFrame = CFRAME
  713. local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  714. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  715. coroutine.resume(coroutine.create(function(PART, MESH)
  716. for i = 0, 1, delay do
  717. Swait()
  718. PART.CFrame = PART.CFrame * ROTATION
  719. PART.Transparency = i
  720. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  721. end
  722. PART.Parent = nil
  723. end), EFFECTPART, EFFECTMESH)
  724. end
  725.  
  726. function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  727. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  728. EFFECTPART.Anchored = true
  729. EFFECTPART.CFrame = CFRAME
  730. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  731. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  732. coroutine.resume(coroutine.create(function(PART, MESH)
  733. for i = 0, 1, delay do
  734. Swait()
  735. PART.CFrame = PART.CFrame * ROTATION
  736. PART.Transparency = i
  737. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  738. end
  739. PART.Parent = nil
  740. end), EFFECTPART, EFFECTMESH)
  741. end
  742.  
  743. function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  744. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  745. EFFECTPART.Anchored = true
  746. EFFECTPART.CFrame = CFRAME
  747. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  748. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  749. coroutine.resume(coroutine.create(function(PART, MESH)
  750. for i = 0, 1, delay do
  751. Swait()
  752. PART.CFrame = PART.CFrame * ROTATION
  753. PART.Transparency = i
  754. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  755. end
  756. PART.Parent = nil
  757. end), EFFECTPART, EFFECTMESH)
  758. end
  759.  
  760. function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  761. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  762. EFFECTPART.Anchored = true
  763. EFFECTPART.CFrame = CFRAME
  764. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size))
  765. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  766. coroutine.resume(coroutine.create(function(PART, MESH)
  767. for i = 0, 1, delay do
  768. Swait()
  769. PART.CFrame = PART.CFrame * ROTATION
  770. PART.Transparency = i
  771. MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z))
  772. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  773. end
  774. PART.Parent = nil
  775. end), EFFECTPART, EFFECTMESH)
  776. end
  777.  
  778. function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  779. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  780. EFFECTPART.Anchored = true
  781. EFFECTPART.CFrame = CFRAME
  782. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  783. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  784. coroutine.resume(coroutine.create(function(PART, MESH)
  785. for i = 0, 1, delay do
  786. Swait()
  787. PART.CFrame = PART.CFrame * ROTATION
  788. PART.Transparency = i
  789. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  790. end
  791. PART.Parent = nil
  792. end), EFFECTPART, EFFECTMESH)
  793. end
  794.  
  795. function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  796. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  797. EFFECTPART.Anchored = true
  798. EFFECTPART.CFrame = CFRAME
  799. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  800. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  801. coroutine.resume(coroutine.create(function(PART, MESH)
  802. for i = 0, 1, delay do
  803. Swait()
  804. PART.CFrame = PART.CFrame * ROTATION
  805. PART.Transparency = i
  806. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  807. end
  808. PART.Parent = nil
  809. end), EFFECTPART, EFFECTMESH)
  810. end
  811.  
  812. function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  813. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  814. EFFECTPART.Anchored = true
  815. EFFECTPART.CFrame = CFRAME
  816. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  817. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  818. coroutine.resume(coroutine.create(function(PART, MESH)
  819. for i = 0, 1, delay do
  820. Swait()
  821. PART.CFrame = PART.CFrame * ROTATION
  822. PART.Transparency = i
  823. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  824. end
  825. PART.Parent = nil
  826. end), EFFECTPART, EFFECTMESH)
  827. end
  828.  
  829. function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  830. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  831. EFFECTPART.Anchored = true
  832. EFFECTPART.CFrame = CFRAME
  833. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  834. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  835. coroutine.resume(coroutine.create(function(PART, MESH)
  836. for i = 0, 1, delay do
  837. Swait()
  838. PART.CFrame = PART.CFrame * ROTATION
  839. PART.Transparency = i
  840. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  841. end
  842. PART.Parent = nil
  843. end), EFFECTPART, EFFECTMESH)
  844. end
  845.  
  846. function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  847. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  848. EFFECTPART.Anchored = true
  849. EFFECTPART.CFrame = CFRAME
  850. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  851. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  852. coroutine.resume(coroutine.create(function(PART, MESH)
  853. for i = 0, 1, delay do
  854. Swait()
  855. PART.CFrame = PART.CFrame * ROTATION
  856. PART.Transparency = i
  857. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  858. end
  859. PART.Parent = nil
  860. end), EFFECTPART, EFFECTMESH)
  861. end
  862.  
  863. function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  864. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  865. EFFECTPART.Anchored = true
  866. EFFECTPART.CFrame = CFRAME
  867. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  868. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  869. coroutine.resume(coroutine.create(function(PART, MESH)
  870. for i = 0, 1, delay do
  871. Swait()
  872. PART.CFrame = PART.CFrame * ROTATION
  873. PART.Transparency = i
  874. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  875. end
  876. PART.Parent = nil
  877. end), EFFECTPART, EFFECTMESH)
  878. end
  879.  
  880. function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
  881. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  882. EFFECTPART.Anchored = true
  883. EFFECTPART.CFrame = CFRAME
  884. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
  885. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  886. coroutine.resume(coroutine.create(function(PART, MESH)
  887. for i = 0, 1, delay do
  888. Swait()
  889. PART.CFrame = PART.CFrame * ROTATION
  890. PART.Transparency = i
  891. MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
  892. end
  893. PART.Parent = nil
  894. end), EFFECTPART, EFFECTMESH)
  895. end
  896.  
  897. function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay)
  898. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
  899. EFFECTPART.Anchored = true
  900. EFFECTPART.CFrame = CFRAME
  901. local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size)
  902. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  903. local XVALUE = MRANDOM()
  904. local YVALUE = MRANDOM()
  905. local ZVALUE = MRANDOM()
  906. coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE)
  907. for i = 0, 1, delay do
  908. Swait()
  909. PART.CFrame = PART.CFrame * ROTATION
  910. PART.Transparency = i
  911. THEXVALUE = THEXVALUE - 0.1 * (delay * 10)
  912. THEYVALUE = THEYVALUE - 0.1 * (delay * 10)
  913. THEZVALUE = THEZVALUE - 0.1 * (delay * 10)
  914. MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size)
  915. end
  916. PART.Parent = nil
  917. end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE)
  918. end
  919.  
  920. function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
  921. local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
  922. if MAGNITUDECFRAME > (1 / 100) then
  923. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
  924. EFFECTPART.Anchored = true
  925. EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
  926. local THEMESHTYPE = "BlockMesh"
  927. if MESHTYPE == "Cylinder" then
  928. THEMESHTYPE = "CylinderMesh"
  929. end
  930. local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
  931. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  932. coroutine.resume(coroutine.create(function(PART, MESH)
  933. for i = 0, 1, delay do
  934. Swait()
  935. PART.CFrame = PART.CFrame * ROTATION
  936. PART.Transparency = i
  937. MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size)
  938. end
  939. PART.Parent = nil
  940. end), EFFECTPART, EFFECTMESH)
  941. end
  942. end
  943.  
  944. function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
  945. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
  946. EFFECTPART.Anchored = true
  947. EFFECTPART.CFrame = CFRAME
  948. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
  949. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  950. local THELASTPOINT = CFRAME
  951. coroutine.resume(coroutine.create(function(PART)
  952. for i = 1, DURATION do
  953. Swait()
  954. PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
  955. TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay)
  956. THELASTPOINT = PART.CFrame
  957. end
  958. PART.Parent = nil
  959. end), EFFECTPART)
  960. end
  961.  
  962. --local list={}
  963. function Triangle(Color, Material, a, b, c, delay)
  964. local edge1 = (c - a):Dot((b - a).unit)
  965. local edge2 = (a - b):Dot((c - b).unit)
  966. local edge3 = (b - c):Dot((a - c).unit)
  967. if edge1 <= (b - a).magnitude and edge1 >= 0 then
  968. a, b, c=a, b, c
  969. elseif edge2 <= (c - b).magnitude and edge2 >= 0 then
  970. a, b, c=b, c, a
  971. elseif edge3 <= (a - c).magnitude and edge3 >= 0 then
  972. a, b, c=c, a, b
  973. else
  974. assert(false, "unreachable")
  975. end
  976. local len1 = (c - a):Dot((b - a).unit)
  977. local len2 = (b - a).magnitude - len1
  978. local width = (a + (b - a).unit * len1 - c).magnitude
  979. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit)
  980. if len1 > 1 / 100 then
  981. local sz = VT(0.2, width, len1)
  982. local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  983. local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0))
  984. w1.Anchored = true
  985. w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2)
  986. coroutine.resume(coroutine.create(function()
  987. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  988. Swait()
  989. w1.Transparency = i
  990. end
  991. w1.Parent = nil
  992. end))
  993. game:GetService("Debris"):AddItem(w1, 10)
  994. --table.insert(list, w1)
  995. end
  996. if len2 > 1 / 100 then
  997. local sz = VT(0.2, width, len2)
  998. local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  999. local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0))
  1000. w2.Anchored = true
  1001. w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2)
  1002. coroutine.resume(coroutine.create(function()
  1003. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1004. Swait()
  1005. w2.Transparency = i
  1006. end
  1007. w2.Parent = nil
  1008. end))
  1009. game:GetService("Debris"):AddItem(w2, 10)
  1010. --table.insert(list, w2)
  1011. end
  1012. --return unpack(list)
  1013. end
  1014.  
  1015. --[[Usage:
  1016. local Pos = Part
  1017. local Offset = Part.CFrame * CF(0, 0, 0)
  1018. local Color = "Institutional white"
  1019. local Material = "Neon"
  1020. local TheDelay = 0.01
  1021. local Height = 4
  1022. BLCF = Offset
  1023. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  1024. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  1025. if a then game:GetService("Debris"):AddItem(a, 1) end
  1026. if b then game:GetService("Debris"):AddItem(b, 1) end
  1027. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  1028. if a then game:GetService("Debris"):AddItem(a, 1) end
  1029. if b then game:GetService("Debris"):AddItem(b, 1) end
  1030. SCFR = BLCF
  1031. elseif not SCFR then
  1032. SCFR = BLCF
  1033. end
  1034. --
  1035. BLCF = nil
  1036. SCFR = nil
  1037. --]]
  1038.  
  1039. --//=================================\\
  1040. --\\=================================//
  1041.  
  1042.  
  1043. --//=================================\\
  1044. --|| WEAPON CREATION
  1045. --\\=================================//
  1046.  
  1047. if Player_Size ~= 1 then
  1048. for _, v in pairs (Weapon:GetChildren()) do
  1049. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  1050. local p1 = v.Part1
  1051. v.Part1 = nil
  1052. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  1053. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  1054. v.Part1 = p1
  1055. elseif v.ClassName == "Part" then
  1056. for _, b in pairs (v:GetChildren()) do
  1057. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  1058. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  1059. end
  1060. end
  1061. end
  1062. end
  1063. end
  1064.  
  1065. local BODY = {}
  1066. for _, c in pairs(Character:GetDescendants()) do
  1067. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1068. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1069. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1070. end
  1071. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1072. elseif c:IsA("JointInstance") then
  1073. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1074. end
  1075. end
  1076. for e = 1, #BODY do
  1077. if BODY[e] ~= nil then
  1078. local STUFF = BODY[e]
  1079. local PART = STUFF[1]
  1080. local PARENT = STUFF[2]
  1081. local MATERIAL = STUFF[3]
  1082. local COLOR = STUFF[4]
  1083. local TRANSPARENCY = STUFF[5]
  1084. if PART.ClassName == "Part" and PART ~= RootPart then
  1085. PART.Material = MATERIAL
  1086. PART.Color = COLOR
  1087. PART.Transparency = TRANSPARENCY
  1088. end
  1089. PART.AncestryChanged:Connect(function()
  1090. PART.Parent = PARENT
  1091. end)
  1092. end
  1093. end
  1094. function refit()
  1095. Character.Parent = workspace
  1096. for e = 1, #BODY do
  1097. if BODY[e] ~= nil then
  1098. local STUFF = BODY[e]
  1099. local PART = STUFF[1]
  1100. local PARENT = STUFF[2]
  1101. local MATERIAL = STUFF[3]
  1102. local COLOR = STUFF[4]
  1103. local TRANSPARENCY = STUFF[5]
  1104. if PART.ClassName == "Part" and PART ~= RootPart then
  1105. PART.Material = MATERIAL
  1106. PART.Color = COLOR
  1107. PART.Transparency = TRANSPARENCY
  1108. end
  1109. if PART.Parent ~= PARENT then
  1110. Humanoid:remove()
  1111. PART.Parent = PARENT
  1112. Humanoid = IT("Humanoid",Character)
  1113. end
  1114. end
  1115. end
  1116. end
  1117.  
  1118. for _, c in pairs(Weapon:GetChildren()) do
  1119. if c.ClassName == "Part" then
  1120. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1121. end
  1122. end
  1123.  
  1124. Weapon.Parent = Character
  1125.  
  1126. Humanoid.Died:connect(function()
  1127. ATTACK = true
  1128. refit()
  1129. end)
  1130.  
  1131. print(Class_Name.." loaded.")
  1132.  
  1133. --//=================================\\
  1134. --\\=================================//
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140. --//=================================\\
  1141. --|| DAMAGE FUNCTIONS
  1142. --\\=================================//
  1143.  
  1144. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1145. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1146. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1147. local BODYGYRO = IT("BodyGyro", STATPART)
  1148. local BODYPOSITION = IT("BodyPosition", STATPART)
  1149. BODYPOSITION.P = 2000
  1150. BODYPOSITION.D = 100
  1151. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1152. if LABELTYPE == "Normal" then
  1153. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1154. elseif LABELTYPE == "Debuff" then
  1155. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1156. elseif LABELTYPE == "Interruption" then
  1157. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1158. end
  1159. game:GetService("Debris"):AddItem(STATPART ,5)
  1160. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1161. BILLBOARDGUI.Adornee = STATPART
  1162. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1163. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1164. BILLBOARDGUI.AlwaysOnTop = false
  1165. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1166. TEXTLABEL.BackgroundTransparency = 1
  1167. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1168. TEXTLABEL.Text = TEXT
  1169. TEXTLABEL.Font = "SciFi"
  1170. TEXTLABEL.FontSize="Size42"
  1171. TEXTLABEL.TextColor3 = COLOR
  1172. TEXTLABEL.TextStrokeTransparency = 1
  1173. TEXTLABEL.TextScaled = true
  1174. TEXTLABEL.TextWrapped = true
  1175. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1176. wait(0.2)
  1177. for i=1, 5 do
  1178. wait()
  1179. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1180. end
  1181. wait(1.2)
  1182. for i=1, 5 do
  1183. wait()
  1184. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1185. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1186. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1187. end
  1188. THEPART.Parent = nil
  1189. end),STATPART, BODYPOSITION, TEXTLABEL)
  1190. end
  1191.  
  1192.  
  1193. --//=================================\\
  1194. --|| DAMAGING
  1195. --\\=================================//
  1196.  
  1197.  
  1198.  
  1199. function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
  1200. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
  1201. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1202. local dmg = math.random(min,max)
  1203. if humanoid.Health > 0 then
  1204. if beserk == true then
  1205. humanoid.Health = 0
  1206. else
  1207. CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10)
  1208. hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
  1209. if math.random(1,100) < critrate+1 then
  1210. humanoid.Health = humanoid.Health - dmg*critmultiplier
  1211. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1212. else
  1213. humanoid.Health = humanoid.Health - dmg
  1214. StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(255/255, 0, 0))
  1215. end
  1216. local defence = Instance.new("BoolValue",hit.Parent)
  1217. defence.Name = ("HitBy"..Player.Name)
  1218. game:GetService("Debris"):AddItem(defence, 0.5)
  1219. end
  1220. end
  1221. end
  1222. end
  1223.  
  1224. function killnearest(position,range,maxstrength)
  1225. for i,v in ipairs(workspace:GetChildren()) do
  1226. local body = v:GetChildren()
  1227. for part = 1, #body do
  1228. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1229. if(body[part].Position - position).Magnitude < range then
  1230. if v.ClassName == "Model" then
  1231. v:BreakJoints()
  1232. end
  1233. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1234. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1235. end
  1236. end
  1237. end
  1238. if v.ClassName == "Part" then
  1239. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1240. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1241. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1242. end
  1243. end
  1244. end
  1245. end
  1246.  
  1247. --//=================================\\
  1248. --|| ATTACK FUNCTIONS AND STUFF
  1249. --\\=================================//
  1250.  
  1251. function choosetarget()
  1252. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1253. target = Mouse.Target.Parent
  1254. if boop ~= nil then
  1255. boop:remove()
  1256. end
  1257. local targettorso = target:FindFirstChild("Torso") or target:FindFirstChild("UpperTorso")
  1258. if targettorso ~= nil then
  1259. boop = IT("Part",Effects)
  1260. boop.Size = VT(0,0,0)
  1261. boop.CanCollide = false
  1262. boop.Transparency = 1
  1263. boop.CFrame = targettorso.CFrame * CF(0,-0.75,0.8)
  1264. weldBetween(targettorso,boop)
  1265. local gui = abss:Clone()
  1266. gui.Parent = boop
  1267. gui.AlwaysOnTop = false
  1268. gui.Enabled = true
  1269. else
  1270. target = nil
  1271. end
  1272. end
  1273. end
  1274.  
  1275.  
  1276. NEWS = Instance.new("Sound", tors) --O NO
  1277. NEWS.SoundId = "http://www.roblox.com/asset/?id=145616154"
  1278. NEWS.Volume = 100
  1279. NEWS.Pitch = 1
  1280. NEWS.Looped = false
  1281. NEWS.TimePosition = 1
  1282.  
  1283. NEWS = Instance.new("Sound", tors) --O NO
  1284. NEWS.SoundId = "http://www.roblox.com/asset/?id=145616154"
  1285. NEWS.Volume = 100
  1286. NEWS.Pitch = 1
  1287. NEWS.Looped = false
  1288. NEWS.TimePosition = 1
  1289.  
  1290. NEWS2 = Instance.new("Sound", tors) --O NO
  1291. NEWS2.SoundId = "http://www.roblox.com/asset/?id=2218629027"
  1292. NEWS2.Volume = 100
  1293. NEWS2.Pitch = 1
  1294. NEWS2.Looped = false
  1295. NEWS2.TimePosition = 1
  1296.  
  1297. NEWS223 = Instance.new("Sound", tors) --O NO
  1298. NEWS223.SoundId = "http://www.roblox.com/asset/?id=628897044"
  1299. NEWS223.Volume = 100
  1300. NEWS223.Pitch = 1
  1301. NEWS223.Looped = false
  1302. NEWS223.TimePosition = 1
  1303.  
  1304. NEWS22 = Instance.new("Sound", tors) --O NO
  1305. NEWS22.SoundId = "http://www.roblox.com/asset/?id=205254380"
  1306. NEWS22.Volume = 100
  1307. NEWS22.Pitch = 1
  1308. NEWS22.Looped = false
  1309. NEWS22.TimePosition = 1
  1310.  
  1311. NEWS3 = Instance.new("Sound", tors) --O NO
  1312. NEWS3.SoundId = "http://www.roblox.com/asset/?id=277184220"
  1313. NEWS3.Volume = 100
  1314. NEWS3.Pitch = 1
  1315. NEWS3.Looped = false
  1316. NEWS3.TimePosition = 1
  1317.  
  1318. NEWS4 = Instance.new("Sound", tors) --O NO
  1319. NEWS4.SoundId = "http://www.roblox.com/asset/?id=374091819"
  1320. NEWS4.Volume = 100
  1321. NEWS4.Pitch = 1
  1322. NEWS4.Looped = false
  1323. NEWS4.TimePosition = 1
  1324.  
  1325. function illuminati()
  1326. ATTACK = true
  1327. Humanoid.WalkSpeed = 0
  1328. local Hair = Instance.new("Part", Character)
  1329. Hair.Name = "Hair"
  1330. Hair.CanCollide = false
  1331. Hair.BrickColor = BrickColor.new("Institutional white")
  1332. Hair.Transparency = 0
  1333. Hair.Material = "Plastic"
  1334. Hair.Size = Vector3.new(1, 1, 2)
  1335. Hair.TopSurface = Enum.SurfaceType.Smooth
  1336. Hair.BottomSurface = Enum.SurfaceType.Smooth
  1337.  
  1338. local Weld = Instance.new("Weld", Hair)
  1339. Weld.Part0 = Head
  1340. Weld.Part1 = Hair
  1341. Weld.C1 = CFrame.new(-0.53, -.6, 0.10)
  1342. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1343.  
  1344. local M2 = Instance.new("SpecialMesh")
  1345. M2.Parent = Hair
  1346. M2.MeshId = "http://www.roblox.com/asset/?id=438530093"
  1347. M2.TextureId = "http://www.roblox.com/asset/?id=438530120"
  1348. M2.Scale = Vector3.new(0.3,0.3,0.3)
  1349. NEWS:Play()
  1350. repeat
  1351. NEWS.Parent = Torso
  1352. Swait()
  1353. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1354. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 2 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(math.random(-360,360))), 1 / Animation_Speed)
  1355. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(130)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1356. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-130)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1357. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1358. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1359. until NEWS.Playing == false
  1360. M2.MeshId = "http://www.roblox.com/asset/?id=0"
  1361. M2.TextureId = "http://www.roblox.com/asset/?id=0"
  1362. ATTACK = false
  1363. Humanoid.WalkSpeed = 75
  1364. ATTACK = false
  1365. Humanoid.WalkSpeed = 75
  1366. end
  1367.  
  1368. function CameraEnshaking(Length, Intensity) --Took Straight from StarGlitcher!
  1369. coroutine.resume(coroutine.create(function()
  1370. local intensity = 1 * Intensity
  1371. local rotM = 0.01 * Intensity
  1372. for i = 0, Length, 0.1 do
  1373. swait()
  1374. intensity = intensity - 0.05 * Intensity / Length
  1375. rotM = rotM - 5.0E-4 * Intensity / Length
  1376. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  1377. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  1378. end
  1379. Humanoid.CameraOffset = Vec3(0, 0, 0)
  1380. end))
  1381. end
  1382.  
  1383. function smokeweed()
  1384. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1385. local HITBODY = Mouse.Target.Parent
  1386. local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
  1387. local HEAD = HITBODY:FindFirstChild("Head")
  1388. local HUMAN = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1389. if TORS ~= nil and HUMAN ~= nil then
  1390. attack = true
  1391. RootPart.CFrame = TORS.CFrame * CFrame.new(-1,0,3)
  1392. TORS.Anchored = true
  1393. Humanoid.WalkSpeed = 0
  1394. CreateSound("1092042211", Head, 10, 1)
  1395. CameraEnshaking(2, 4)
  1396. end
  1397. for i = 0,9,0.1 do
  1398. Swait()
  1399. for i = 1,2 do
  1400. CameraEnshaking(1, 7)
  1401. TORS:BreakJoints()
  1402. end
  1403. end
  1404. TORS.Anchored = false
  1405. attack = false
  1406. Humanoid.WalkSpeed = 70
  1407. end
  1408. end
  1409.  
  1410. function wut2()
  1411. ATTACK = true
  1412. Humanoid.WalkSpeed = 0
  1413. sick.SoundId = "rbxassetid://0"
  1414. local Hair = Instance.new("Part", Character)
  1415. Hair.Name = "Hair"
  1416. Hair.CanCollide = false
  1417. Hair.BrickColor = BrickColor.new("Really black")
  1418. Hair.Transparency = 0
  1419. Hair.Material = "Plastic"
  1420. Hair.Size = Vector3.new(1, 1, 2)
  1421. Hair.TopSurface = Enum.SurfaceType.Smooth
  1422. Hair.BottomSurface = Enum.SurfaceType.Smooth
  1423.  
  1424. local Weld = Instance.new("Weld", Hair)
  1425. Weld.Part0 = RightArm
  1426. Weld.Part1 = Hair
  1427. Weld.C1 = CFrame.new(0, 1, 0)
  1428. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1429.  
  1430. local M2 = Instance.new("SpecialMesh")
  1431. M2.Parent = Hair
  1432. M2.MeshId = "http://www.roblox.com/asset/?id=43996479"
  1433. M2.Scale = Vector3.new(0.50,0.50,0.50)
  1434. NEWS3:Play()
  1435. repeat
  1436. NEWS3.Parent = Torso
  1437. Swait()
  1438. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1439. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(math.random(-360,360)), RAD(math.random(-360,360)), RAD(math.random(-360,360))), 1 / Animation_Speed)
  1440. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(100), RAD(180), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1441. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1442. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1443. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1444. until NEWS3.Playing == false
  1445. ATTACK = false
  1446. M2.MeshId = "http://www.roblox.com/asset/?id=0"
  1447. M2.TextureId = "http://www.roblox.com/asset/?id=0"
  1448. sick.SoundId = "rbxassetid://263970261"
  1449. Humanoid.WalkSpeed = 75
  1450. ATTACK = false
  1451. Humanoid.WalkSpeed = 75
  1452. end
  1453.  
  1454. function die()
  1455. ATTACK = true
  1456. Humanoid.WalkSpeed = 0
  1457. NEWS4:Play()
  1458. repeat
  1459. NEWS4.Parent = Torso
  1460. Swait()
  1461. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1462. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(math.random(-360,360)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1463. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(math.random(-360,360)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1464. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(math.random(-360,360)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1465. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1466. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1467. until NEWS4.Playing == false
  1468. ATTACK = false
  1469. Humanoid.WalkSpeed = 75
  1470. ATTACK = false
  1471. Humanoid.WalkSpeed = 75
  1472. end
  1473.  
  1474. function wut()
  1475. ATTACK = true
  1476. Humanoid.WalkSpeed = 0
  1477. local Hair = Instance.new("Part", Character)
  1478. Hair.Name = "Hair"
  1479. Hair.CanCollide = false
  1480. Hair.BrickColor = BrickColor.new("Institutional white")
  1481. Hair.Transparency = 0
  1482. Hair.Material = "Plastic"
  1483. Hair.Size = Vector3.new(1, 1, 2)
  1484. Hair.TopSurface = Enum.SurfaceType.Smooth
  1485. Hair.BottomSurface = Enum.SurfaceType.Smooth
  1486.  
  1487. local Weld = Instance.new("Weld", Hair)
  1488. Weld.Part0 = RightArm
  1489. Weld.Part1 = Hair
  1490. Weld.C1 = CFrame.new(0, 1, 0)
  1491. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1492.  
  1493. local M2 = Instance.new("SpecialMesh")
  1494. M2.Parent = Hair
  1495. M2.MeshId = "http://www.roblox.com/asset/?id=439709401"
  1496. M2.TextureId = "http://www.roblox.com/asset/?id=439709919"
  1497. M2.Scale = Vector3.new(0.01,0.01,0.01)
  1498. NEWS2:Play()
  1499. repeat
  1500. NEWS2.Parent = Torso
  1501. Swait()
  1502. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1503. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1504. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(4030), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1505. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1506. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1507. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1508. until NEWS2.Playing == false
  1509. ATTACK = false
  1510. M2.MeshId = "http://www.roblox.com/asset/?id=0"
  1511. M2.TextureId = "http://www.roblox.com/asset/?id=0"
  1512. Humanoid.WalkSpeed = 75
  1513. ATTACK = false
  1514. Humanoid.WalkSpeed = 75
  1515. end
  1516.  
  1517. function kfc()
  1518. ATTACK = true
  1519. sick.SoundId = "rbxassetid://0"
  1520. Humanoid.WalkSpeed = 0
  1521. local Hair = Instance.new("Part", Character)
  1522. Hair.Name = "Hair"
  1523. Hair.CanCollide = false
  1524. Hair.BrickColor = BrickColor.new("Institutional white")
  1525. Hair.Transparency = 0
  1526. Hair.Material = "Plastic"
  1527. Hair.Size = Vector3.new(1, 1, 2)
  1528. Hair.TopSurface = Enum.SurfaceType.Smooth
  1529. Hair.BottomSurface = Enum.SurfaceType.Smooth
  1530.  
  1531. local Weld = Instance.new("Weld", Hair)
  1532. Weld.Part0 = RightArm
  1533. Weld.Part1 = Hair
  1534. Weld.C1 = CFrame.new(0, 1, 0)
  1535. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1536.  
  1537. local M2 = Instance.new("SpecialMesh")
  1538. M2.Parent = Hair
  1539. M2.MeshId = "http://www.roblox.com/asset/?id=17359739"
  1540. M2.TextureId = "http://www.roblox.com/asset/?id=54763141"
  1541. M2.Scale = Vector3.new(1.7,1.7,1.7)
  1542. NEWS22:Play()
  1543. repeat
  1544. NEWS22.Parent = Torso
  1545. Swait()
  1546. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1547. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1548. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1549. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1550. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1551. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1552. until NEWS22.Playing == false
  1553. ATTACK = false
  1554. M2.MeshId = "http://www.roblox.com/asset/?id=0"
  1555. M2.TextureId = "http://www.roblox.com/asset/?id=0"
  1556. sick.SoundId = "rbxassetid://263970261"
  1557. Humanoid.WalkSpeed = 75
  1558. ATTACK = false
  1559. Humanoid.WalkSpeed = 75
  1560. end
  1561.  
  1562. function kfc2()
  1563. ATTACK = true
  1564. sick.SoundId = "rbxassetid://0"
  1565. Humanoid.WalkSpeed = 0
  1566. local Hair = Instance.new("Part", Character)
  1567. Hair.Name = "Hair"
  1568. Hair.CanCollide = false
  1569. Hair.BrickColor = BrickColor.new("Institutional white")
  1570. Hair.Transparency = 0
  1571. Hair.Material = "Plastic"
  1572. Hair.Size = Vector3.new(1, 1, 2)
  1573. Hair.TopSurface = Enum.SurfaceType.Smooth
  1574. Hair.BottomSurface = Enum.SurfaceType.Smooth
  1575.  
  1576. local Weld = Instance.new("Weld", Hair)
  1577. Weld.Part0 = RightArm
  1578. Weld.Part1 = Hair
  1579. Weld.C1 = CF(-1.2, -0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(80))
  1580. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1581.  
  1582. local M2 = Instance.new("SpecialMesh")
  1583. M2.Parent = Hair
  1584. M2.MeshId = "http://www.roblox.com/asset/?id=65015623"
  1585. M2.TextureId = "http://www.roblox.com/asset/?id=89510051"
  1586. M2.Scale = Vector3.new(1.7,1.7,1.7)
  1587. CreateSound("554208103", Head, 10, 0.8)
  1588. for i = 0, 10, 0.1 do
  1589. Swait()
  1590. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1591. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1592. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(120), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1593. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1594. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1595. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1596. end
  1597. M2.MeshId = "http://www.roblox.com/asset/?id=0"
  1598. M2.TextureId = "http://www.roblox.com/asset/?id=0"
  1599. CreateSound("144508058", Head, 10, 0.8)
  1600. for i = 0, 10, 0.1 do
  1601. Swait()
  1602. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1603. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-40)), 1 / Animation_Speed)
  1604. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1605. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1606. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1607. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1608. end
  1609. NEWS223:Play()
  1610. repeat
  1611. NEWS223.Parent = Torso
  1612. Swait()
  1613. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1614. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(math.random(-360,360)), RAD(math.random(-360,360)), RAD(math.random(-360,360))), 1 / Animation_Speed)
  1615. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(math.random(-360,360)), RAD(math.random(-360,360)), RAD(math.random(-360,360))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1616. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(math.random(-360,360)), RAD(math.random(-360,360)), RAD(math.random(-360,360))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1617. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1618. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1619. until NEWS223.Playing == false
  1620. ATTACK = false
  1621. sick.SoundId = "rbxassetid://263970261"
  1622. Humanoid.WalkSpeed = 75
  1623. ATTACK = false
  1624. Humanoid.WalkSpeed = 75
  1625. end
  1626.  
  1627.  
  1628. function hurr()
  1629. if target ~= nil then
  1630. local targettorso = target:FindFirstChild("Torso") or target:FindFirstChild("UpperTorso")
  1631. if targettorso ~= nil then
  1632. Rooted = true
  1633. ATTACK = true
  1634. RootPart.CFrame = targettorso.CFrame * CF(0,0,3)
  1635. for i = 1, 15 do
  1636. Swait(3)
  1637. RootPart.CFrame = targettorso.CFrame * CF(0,0,1)
  1638. Swait(3)
  1639. RootPart.CFrame = targettorso.CFrame * CF(0,0,3)
  1640. end
  1641. CreateSound("173137001", Head, 5, 1)
  1642. target:BreakJoints()
  1643. target = nil
  1644. Rooted = false
  1645. ATTACK = false
  1646. end
  1647. end
  1648. end
  1649.  
  1650. function beam(from,size)
  1651. local sphere = Instance.new("Part",Effects)
  1652. sphere.Size = VT(size*2,size*2,size*2)
  1653. sphere.Material = "Neon"
  1654. sphere.Shape = "Ball"
  1655. sphere.Name = "Waft"
  1656. sphere.Anchored = true
  1657. sphere.Color = C3(80/255, 109/255, 84/255)
  1658. sphere.CFrame = RootPart.CFrame * CF(0,0.5,-from)
  1659. sphere.CanCollide = false
  1660. local hit = sphere.Touched:connect(function(hit)
  1661. dealdamage(hit,0,0,0,true,0,0)
  1662. end)
  1663. --table.insert(Effects2,{Lazor,"Disappear",0.01,0.03,0,0.03,1})
  1664. table.insert(Effects2,{sphere,"Disappear",0.01,0.03,0,0.03,1})
  1665. end
  1666.  
  1667. function turnto(position)
  1668. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1669. end
  1670.  
  1671.  
  1672. --//=================================\\
  1673. --|| ASSIGN THINGS TO KEYS
  1674. --\\=================================//
  1675.  
  1676. Humanoid.Changed:connect(function(Jump)
  1677. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1678. Humanoid.Jump = false
  1679. end
  1680. end)
  1681.  
  1682. function MouseDown(Mouse)
  1683. if ATTACK == false then
  1684. illuminati()
  1685. end
  1686. end
  1687.  
  1688. function MouseUp(Mouse)
  1689. HOLD = false
  1690. end
  1691.  
  1692. function KeyDown(Key)
  1693. if Key == "q" and ATTACK == false then
  1694. wut()
  1695. end
  1696. if Key == "e" and ATTACK == false then
  1697. wut2()
  1698. end
  1699. if Key == "r" and ATTACK == false then
  1700. die()
  1701. end
  1702. if Key == "y" and ATTACK == false then
  1703. kfc()
  1704. end
  1705. if Key == "f" and ATTACK == false then
  1706. smokeweed()
  1707. end
  1708. if Key == "g" and ATTACK == false then
  1709. kfc2()
  1710. end
  1711. end
  1712.  
  1713. function KeyUp(Key)
  1714. end
  1715.  
  1716. Mouse.Button1Down:connect(function(NEWKEY)
  1717. MouseDown(NEWKEY)
  1718. end)
  1719. Mouse.Button1Up:connect(function(NEWKEY)
  1720. MouseUp(NEWKEY)
  1721. end)
  1722. Mouse.KeyDown:connect(function(NEWKEY)
  1723. KeyDown(NEWKEY)
  1724. end)
  1725. Mouse.KeyUp:connect(function(NEWKEY)
  1726. KeyUp(NEWKEY)
  1727. end)
  1728.  
  1729. --//=================================\\
  1730. --\\=================================//
  1731.  
  1732. Character.Head.face.Texture = "rbxassetid://305068389"
  1733.  
  1734. function unanchor()
  1735. if UNANCHOR == true then
  1736. g = Character:GetChildren()
  1737. for i = 1, #g do
  1738. if g[i].ClassName == "Part" then
  1739. g[i].Anchored = false
  1740. end
  1741. end
  1742. end
  1743. end
  1744.  
  1745.  
  1746. --//=================================\\
  1747. --|| WRAP THE WHOLE SCRIPT UP
  1748. --\\=================================//
  1749.  
  1750. Humanoid.Changed:connect(function(Jump)
  1751. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1752. Humanoid.Jump = false
  1753. end
  1754. end)
  1755. Rooted = true
  1756. ANIMATE.Parent = nil
  1757. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1758. IDLEANIMATION:Play()
  1759. Swait()
  1760. Rooted = false
  1761.  
  1762. local loop = 0
  1763.  
  1764. while true do
  1765. Swait()
  1766. SINE = SINE + CHANGE
  1767. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1768. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1769. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1770. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1771. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1772. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1773. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1774. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1775. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1776. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1777. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1778. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1779. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1780. RightHip.C1 = Clerp(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)), 0.2 / Animation_Speed)
  1781. LeftHip.C1 = Clerp(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)), 0.2 / Animation_Speed)
  1782. end
  1783. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1784. ANIM = "Jump"
  1785. if ATTACK == false then
  1786. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1787. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1788. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1789. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1790. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1791. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1792. end
  1793. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1794. ANIM = "Fall"
  1795. if ATTACK == false then
  1796. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1797. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1798. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 20), 0.025 * COS(SINE / 20)) * ANGLES(RAD(0), RAD(0), RAD(5 - 2.5 * SIN(SINE / 20))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1799. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 20), 0.025 * COS(SINE / 20)) * ANGLES(RAD(0), RAD(0), RAD(-5 + 2.5 * SIN (SINE / 20))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1800. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1801. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1802. end
  1803. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1804. ANIM = "Idle"
  1805. if ATTACK == false then
  1806. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -.3 * Player_Size + 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1807. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1808. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.35 * SIN(SINE / 20), 0.025 * COS(SINE / 20)) * ANGLES(RAD(30), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  1809. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.35 * SIN(SINE / 20), 0.025 * COS(SINE / 20)) * ANGLES(RAD(30), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  1810. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(25), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1811. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(25), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1812. end
  1813. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1814. ANIM = "Walk"
  1815. WALK = WALK + 1 / Animation_Speed
  1816. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1817. WALK = 0
  1818. if WALKINGANIM == true then
  1819. WALKINGANIM = false
  1820. elseif WALKINGANIM == false then
  1821. WALKINGANIM = true
  1822. end
  1823. end
  1824. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1825. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1826. if ATTACK == false then
  1827. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.3 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1828. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1829. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1830. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1831. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(-35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1832. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(-35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1833. end
  1834. end
  1835. if #Effects2>0 then
  1836. for e=1,#Effects2 do
  1837. if Effects2[e]~=nil then
  1838. local Thing=Effects2[e]
  1839. if Thing~=nil then
  1840. local Part=Thing[1]
  1841. local Mode=Thing[2]
  1842. local Delay=Thing[3]
  1843. local IncX=Thing[4]
  1844. local IncY=Thing[5]
  1845. local IncZ=Thing[6]
  1846. local Part2=Thing[8]
  1847. if Thing[1].Transparency<=1 then
  1848. if Thing[2]=="Block1" then
  1849. Thing[1].CFrame=Part2.CFrame
  1850. Mesh=Thing[1].Mesh
  1851. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1852. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1853. elseif Thing[2]=="Cylinder" then
  1854. Mesh=Thing[1].Mesh
  1855. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1856. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1857. elseif Thing[2]=="Blood" then
  1858. Mesh=Thing[7]
  1859. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1860. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1861. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1862. elseif Thing[2]=="Elec" then
  1863. Mesh=Thing[1].Mesh
  1864. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1865. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1866. elseif Thing[2]=="Disappear" then
  1867. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1868. end
  1869. else
  1870. Part.Parent=nil
  1871. table.remove(Effects2,e)
  1872. end
  1873. end
  1874. end
  1875. end
  1876. end
  1877. unanchor()
  1878. Humanoid.MaxHealth = "inf"
  1879. Humanoid.Health = "inf"
  1880. if Rooted == false then
  1881. Disable_Jump = false
  1882. Humanoid.WalkSpeed = Speed
  1883. elseif Rooted == true then
  1884. Disable_Jump = true
  1885. Humanoid.WalkSpeed = 0
  1886. end
  1887. refit()
  1888. end
  1889.  
  1890. --//=================================\\
  1891. --\\=================================//
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897. --//====================================================\\--
  1898. --|| END OF SCRIPT
  1899. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement