kaualima12

Untitled

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