Advertisement
teotv202

ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤbanisher gun without lag ㅤㅤㅤㅤㅤㅤㅤㅤㅤ

Jul 18th, 2019
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player = owner
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = RhiBel00351
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62.  
  63. local Char = Player.Character
  64. local Event = Char:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67.  
  68. local input = function(io,a)
  69. if a then return end
  70. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  71. Event:FireServer(io)
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75. local Changed = false
  76. local Mouse = Player:GetMouse()
  77. local h,t = Mouse.Hit,Mouse.Target
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  81. h,t=Mouse.Hit,Mouse.Target
  82. end
  83. end
  84. ]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87. print("lag removed")
  88.  
  89. script:ClearAllChildren()
  90. wait(0.2)
  91.  
  92. Player = owner
  93. char = Player.Character
  94.  
  95. tool = Instance.new("Tool",Player.Backpack)
  96. tool.RequiresHandle = false
  97. tool.Name = "Jump"
  98. tool.CanBeDropped = false
  99. tool.Activated:connect(function()
  100. char:FindFirstChildOfClass("Humanoid").Jump = true
  101. end)
  102.  
  103. PlayerGui = Player.PlayerGui
  104. Cam = workspace.CurrentCamera
  105. Backpack = Player.Backpack
  106. Character = Player.Character
  107. Humanoid = Character.Humanoid
  108. --Mouse = Player:GetMouse()
  109. RootPart = Character["HumanoidRootPart"]
  110. Torso = Character["Torso"]
  111. Head = Character["Head"]
  112. RightArm = Character["Right Arm"]
  113. LeftArm = Character["Left Arm"]
  114. RightLeg = Character["Right Leg"]
  115. LeftLeg = Character["Left Leg"]
  116. RootJoint = RootPart["RootJoint"]
  117. Neck = Torso["Neck"]
  118. RightShoulder = Torso["Right Shoulder"]
  119. LeftShoulder = Torso["Left Shoulder"]
  120. RightHip = Torso["Right Hip"]
  121. LeftHip = Torso["Left Hip"]
  122. local TIME = 0
  123. Humanoid.Name = "0 ANTI-DEATH 0"
  124.  
  125. Instance.new("ForceField",char).Visible = false
  126.  
  127. gc = char:GetChildren()
  128. for i=1, #gc do
  129. if gc[i].ClassName == "Hat" or gc[i].ClassName == "Accessory" then
  130. gc[i]:Destroy()
  131. end
  132. end
  133.  
  134. --local sick = Instance.new("Sound",Torso)
  135.  
  136. IT = Instance.new
  137. CF = CFrame.new
  138. VT = Vector3.new
  139. RAD = math.rad
  140. C3 = Color3.new
  141. UD2 = UDim2.new
  142. BRICKC = BrickColor.new
  143. ANGLES = CFrame.Angles
  144. EULER = CFrame.fromEulerAnglesXYZ
  145. COS = math.cos
  146. ACOS = math.acos
  147. SIN = math.sin
  148. ASIN = math.asin
  149. ABS = math.abs
  150. MRANDOM = math.random
  151. FLOOR = math.floor
  152.  
  153. --//=================================\\
  154. --|| USEFUL VALUES
  155. --\\=================================//
  156.  
  157. Animation_Speed = 3
  158. local FORCERESET = false
  159. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  160. local Speed = 16
  161. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  162. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  163. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  164. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  165. local DAMAGEMULTIPLIER = 1
  166. local ANIM = "Idle"
  167. local ATTACK = false
  168. local EQUIPPED = false
  169. local HOLD = false
  170. local COMBO = 1
  171. local Rooted = false
  172. local SINE = 0
  173. local KEYHOLD = false
  174. local CHANGE = 2 / Animation_Speed
  175. local WALKINGANIM = false
  176. local VALUE1 = false
  177. local VALUE2 = false
  178. local ROBLOXIDLEANIMATION = IT("Animation")
  179. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  180. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  181. --ROBLOXIDLEANIMATION.Parent = Humanoid
  182. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  183. WEAPONGUI.Name = "BYPASS BanishV3Gui"
  184. local Weapon = IT("Model")
  185. Weapon.Name = "Adds"
  186. local Effects = IT("Folder", Weapon)
  187. Effects.Name = "Effects"
  188. local ANIMATOR = Humanoid.Animator
  189. local ANIMATE = Character:FindFirstChild("Animate")
  190. local UNANCHOR = true
  191. local TOBANISH = {}
  192. script.Parent = PlayerGui
  193.  
  194. --//=================================\\
  195. --\\=================================//
  196.  
  197.  
  198. --//=================================\\
  199. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  200. --\\=================================//
  201.  
  202. ArtificialHB = Instance.new("BindableEvent", script)
  203. ArtificialHB.Name = "ArtificialHB"
  204.  
  205. script:WaitForChild("ArtificialHB")
  206.  
  207. frame = Frame_Speed
  208. tf = 0
  209. allowframeloss = false
  210. tossremainder = false
  211. lastframe = tick()
  212. script.ArtificialHB:Fire()
  213.  
  214. game:GetService("RunService").Heartbeat:connect(function(s, p)
  215. tf = tf + s
  216. if tf >= frame then
  217. if allowframeloss then
  218. script.ArtificialHB:Fire()
  219. lastframe = tick()
  220. else
  221. for i = 1, math.floor(tf / frame) do
  222. script.ArtificialHB:Fire()
  223. end
  224. lastframe = tick()
  225. end
  226. if tossremainder then
  227. tf = 0
  228. else
  229. tf = tf - frame * math.floor(tf / frame)
  230. end
  231. end
  232. end)
  233.  
  234. --//=================================\\
  235. --\\=================================//
  236.  
  237. --//=================================\\
  238. --|| SOME FUNCTIONS
  239. --\\=================================//
  240.  
  241. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  242. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  243. end
  244.  
  245. function PositiveAngle(NUMBER)
  246. if NUMBER >= 0 then
  247. NUMBER = 0
  248. end
  249. return NUMBER
  250. end
  251.  
  252. function NegativeAngle(NUMBER)
  253. if NUMBER <= 0 then
  254. NUMBER = 0
  255. end
  256. return NUMBER
  257. end
  258.  
  259. function Swait(NUMBER)
  260. if NUMBER == 0 or NUMBER == nil then
  261. ArtificialHB.Event:wait()
  262. else
  263. for i = 1, NUMBER do
  264. ArtificialHB.Event:wait()
  265. end
  266. end
  267. end
  268.  
  269. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  270. local NEWMESH = IT(MESH)
  271. if MESH == "SpecialMesh" then
  272. NEWMESH.MeshType = MESHTYPE
  273. if MESHID ~= "nil" and MESHID ~= "" then
  274. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  275. end
  276. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  277. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  278. end
  279. end
  280. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  281. NEWMESH.Scale = SCALE
  282. NEWMESH.Parent = PARENT
  283. return NEWMESH
  284. end
  285.  
  286. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  287. local NEWPART = IT("Part")
  288. NEWPART.formFactor = FORMFACTOR
  289. NEWPART.Reflectance = REFLECTANCE
  290. NEWPART.Transparency = TRANSPARENCY
  291. NEWPART.CanCollide = false
  292. NEWPART.Locked = true
  293. NEWPART.Anchored = true
  294. if ANCHOR == false then
  295. NEWPART.Anchored = false
  296. end
  297. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  298. NEWPART.Name = "BYPASS BANISH GUN"
  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. local function weldBetween(a, b)
  307. local weldd = Instance.new("ManualWeld")
  308. weldd.Part0 = a
  309. weldd.Part1 = b
  310. weldd.C0 = CFrame.new()
  311. weldd.C1 = b.CFrame:inverse() * a.CFrame
  312. weldd.Parent = a
  313. return weldd
  314. end
  315.  
  316.  
  317. function QuaternionFromCFrame(cf)
  318. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  319. local trace = m00 + m11 + m22
  320. if trace > 0 then
  321. local s = math.sqrt(1 + trace)
  322. local recip = 0.5 / s
  323. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  324. else
  325. local i = 0
  326. if m11 > m00 then
  327. i = 1
  328. end
  329. if m22 > (i == 0 and m00 or m11) then
  330. i = 2
  331. end
  332. if i == 0 then
  333. local s = math.sqrt(m00 - m11 - m22 + 1)
  334. local recip = 0.5 / s
  335. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  336. elseif i == 1 then
  337. local s = math.sqrt(m11 - m22 - m00 + 1)
  338. local recip = 0.5 / s
  339. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  340. elseif i == 2 then
  341. local s = math.sqrt(m22 - m00 - m11 + 1)
  342. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  343. end
  344. end
  345. end
  346.  
  347. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  348. local xs, ys, zs = x + x, y + y, z + z
  349. local wx, wy, wz = w * xs, w * ys, w * zs
  350. local xx = x * xs
  351. local xy = x * ys
  352. local xz = x * zs
  353. local yy = y * ys
  354. local yz = y * zs
  355. local zz = z * zs
  356. 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))
  357. end
  358.  
  359. function QuaternionSlerp(a, b, t)
  360. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  361. local startInterp, finishInterp;
  362. if cosTheta >= 0.0001 then
  363. if (1 - cosTheta) > 0.0001 then
  364. local theta = ACOS(cosTheta)
  365. local invSinTheta = 1 / SIN(theta)
  366. startInterp = SIN((1 - t) * theta) * invSinTheta
  367. finishInterp = SIN(t * theta) * invSinTheta
  368. else
  369. startInterp = 1 - t
  370. finishInterp = t
  371. end
  372. else
  373. if (1 + cosTheta) > 0.0001 then
  374. local theta = ACOS(-cosTheta)
  375. local invSinTheta = 1 / SIN(theta)
  376. startInterp = SIN((t - 1) * theta) * invSinTheta
  377. finishInterp = SIN(t * theta) * invSinTheta
  378. else
  379. startInterp = t - 1
  380. finishInterp = t
  381. end
  382. end
  383. 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
  384. end
  385.  
  386. function Clerp(a, b, t)
  387. local qa = {QuaternionFromCFrame(a)}
  388. local qb = {QuaternionFromCFrame(b)}
  389. local ax, ay, az = a.x, a.y, a.z
  390. local bx, by, bz = b.x, b.y, b.z
  391. local _t = 1 - t
  392. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  393. end
  394.  
  395. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  396. local frame = IT("Frame")
  397. frame.BackgroundTransparency = TRANSPARENCY
  398. frame.BorderSizePixel = BORDERSIZEPIXEL
  399. frame.Position = POSITION
  400. frame.Size = SIZE
  401. frame.BackgroundColor3 = COLOR
  402. frame.BorderColor3 = BORDERCOLOR
  403. frame.Name = NAME
  404. frame.Parent = PARENT
  405. return frame
  406. end
  407.  
  408. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  409. local label = IT("TextLabel")
  410. label.BackgroundTransparency = 1
  411. label.Size = UD2(1, 0, 1, 0)
  412. label.Position = UD2(0, 0, 0, 0)
  413. label.TextColor3 = TEXTCOLOR
  414. label.TextStrokeTransparency = STROKETRANSPARENCY
  415. label.TextTransparency = TRANSPARENCY
  416. label.FontSize = TEXTFONTSIZE
  417. label.Font = TEXTFONT
  418. label.BorderSizePixel = BORDERSIZEPIXEL
  419. label.TextScaled = false
  420. label.Text = TEXT
  421. label.Name = NAME
  422. label.Parent = PARENT
  423. return label
  424. end
  425.  
  426. function NoOutlines(PART)
  427. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  428. end
  429.  
  430. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  431. local NEWWELD = IT(TYPE)
  432. NEWWELD.Part0 = PART0
  433. NEWWELD.Part1 = PART1
  434. NEWWELD.C0 = C0
  435. NEWWELD.C1 = C1
  436. NEWWELD.Parent = PARENT
  437. return NEWWELD
  438. end
  439. --[[
  440. local S = IT("Sound")
  441. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  442. local NEWSOUND = nil
  443. coroutine.resume(coroutine.create(function()
  444. NEWSOUND = S:Clone()
  445. NEWSOUND.Parent = PARENT
  446. NEWSOUND.Volume = VOLUME
  447. NEWSOUND.Pitch = PITCH
  448. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  449. NEWSOUND:play()
  450. if DOESLOOP == true then
  451. NEWSOUND.Looped = true
  452. else
  453. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  454. NEWSOUND:remove()
  455. end
  456. end))
  457. return NEWSOUND
  458. end
  459. ]]--
  460. function CFrameFromTopBack(at, top, back)
  461. local right = top:Cross(back)
  462. 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)
  463. end
  464.  
  465. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  466. function WACKYEFFECT(Table)
  467. local TYPE = (Table.EffectType or "Sphere")
  468. local SIZE = (Table.Size or VT(1,1,1))
  469. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  470. local TRANSPARENCY = (Table.Transparency or 0)
  471. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  472. local CFRAME = (Table.CFrame or Torso.CFrame)
  473. local MOVEDIRECTION = (Table.MoveToPos or nil)
  474. local ROTATION1 = (Table.RotationX or 0)
  475. local ROTATION2 = (Table.RotationY or 0)
  476. local ROTATION3 = (Table.RotationZ or 0)
  477. local MATERIAL = (Table.Material or "Neon")
  478. local COLOR = (Table.Color or C3(1,1,1))
  479. local TIME = (Table.Time or 45)
  480. local SOUNDID = (Table.SoundID or nil)
  481. local SOUNDPITCH = (Table.SoundPitch or nil)
  482. local SOUNDVOLUME = (Table.SoundVolume or nil)
  483. coroutine.resume(coroutine.create(function()
  484. local PLAYSSOUND = false
  485. local SOUND = nil
  486. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  487. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  488. PLAYSSOUND = true
  489. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  490. end
  491. EFFECT.Color = COLOR
  492. local MSH = nil
  493. if TYPE == "Sphere" then
  494. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  495. elseif TYPE == "Block" then
  496. MSH = IT("BlockMesh",EFFECT)
  497. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  498. elseif TYPE == "Wave" then
  499. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  500. elseif TYPE == "Ring" then
  501. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  502. elseif TYPE == "Slash" then
  503. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  504. elseif TYPE == "Round Slash" then
  505. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  506. elseif TYPE == "Swirl" then
  507. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  508. elseif TYPE == "Skull" then
  509. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  510. elseif TYPE == "Crystal" then
  511. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  512. end
  513. if MSH ~= nil then
  514. local MOVESPEED = nil
  515. if MOVEDIRECTION ~= nil then
  516. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  517. end
  518. local GROWTH = SIZE - ENDSIZE
  519. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  520. if TYPE == "Block" then
  521. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  522. else
  523. EFFECT.CFrame = CFRAME
  524. end
  525. for LOOP = 1, TIME+1 do
  526. Swait()
  527. MSH.Scale = MSH.Scale - GROWTH/TIME
  528. if TYPE == "Wave" then
  529. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  530. end
  531. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  532. if TYPE == "Block" then
  533. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  534. else
  535. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  536. end
  537. if MOVEDIRECTION ~= nil then
  538. local ORI = EFFECT.Orientation
  539. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  540. EFFECT.Orientation = ORI
  541. end
  542. end
  543. if PLAYSSOUND == false then
  544. EFFECT:remove()
  545. else
  546. SOUND.Stopped:Connect(function()
  547. EFFECT:remove()
  548. end)
  549. end
  550. else
  551. if PLAYSSOUND == false then
  552. EFFECT:remove()
  553. else
  554. repeat Swait() until SOUND.Playing == false
  555. EFFECT:remove()
  556. end
  557. end
  558. end))
  559. end
  560.  
  561. function MakeForm(PART,TYPE)
  562. if TYPE == "Cyl" then
  563. local MSH = IT("CylinderMesh",PART)
  564. elseif TYPE == "Ball" then
  565. local MSH = IT("SpecialMesh",PART)
  566. MSH.MeshType = "Sphere"
  567. elseif TYPE == "Wedge" then
  568. local MSH = IT("SpecialMesh",PART)
  569. MSH.MeshType = "Wedge"
  570. end
  571. end
  572.  
  573. function SpawnTrail(FROM,TO,BIG)
  574. local TRAIL = CreatePart(0.01, Effects, "Neon", 0, 0, BrickColor.random(), "Trail", VT(0,0,0))
  575. MakeForm(TRAIL,"Cyl")
  576. local DIST = (FROM - TO).Magnitude
  577. if BIG == true then
  578. TRAIL.Size = VT(0.01,DIST,0.01)
  579. else
  580. TRAIL.Size = VT(0.01,DIST,0.01)
  581. end
  582. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  583. coroutine.resume(coroutine.create(function()
  584. for i = 1, 5 do
  585. Swait()
  586. TRAIL.Transparency = TRAIL.Transparency + 0.1
  587. end
  588. TRAIL:remove()
  589. end))
  590. end
  591.  
  592. Debris = game:GetService("Debris")
  593.  
  594. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  595. local DIRECTION = CF(StartPos,EndPos).lookVector
  596. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  597. end
  598.  
  599. function turnto(position)
  600. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  601. end
  602.  
  603. --//=================================\\
  604. --|| WEAPON CREATION
  605. --\\=================================//
  606.  
  607. local Particle = IT("ParticleEmitter",nil)
  608. Particle.Enabled = false
  609. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  610. Particle.LightEmission = 0.5
  611. Particle.Rate = 150
  612. Particle.ZOffset = 0.2
  613. Particle.Rotation = NumberRange.new(-180, 180)
  614. Particle.RotSpeed = NumberRange.new(-180, 180)
  615. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  616. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  617.  
  618. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  619. function ParticleEmitter(Table)
  620. local PRTCL = Particle:Clone()
  621. local Speed = Table.Speed or 5
  622. local Drag = Table.Drag or 0
  623. local Size1 = Table.Size1 or 1
  624. local Size2 = Table.Size2 or 5
  625. local Lifetime1 = Table.Lifetime1 or 1
  626. local Lifetime2 = Table.Lifetime2 or 1.5
  627. local Parent = Table.Parent or Torso
  628. local Emit = Table.Emit or 100
  629. local Offset = Table.Offset or 360
  630. local Acel = Table.Acel or VT(0,0,0)
  631. local Enabled = Table.Enabled or false
  632. PRTCL.Parent = Parent
  633. PRTCL.Size = NumberSequence.new(Size1,Size2)
  634. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  635. PRTCL.Speed = NumberRange.new(Speed)
  636. PRTCL.VelocitySpread = Offset
  637. PRTCL.Drag = Drag
  638. PRTCL.Acceleration = Acel
  639. if Enabled == false then
  640. PRTCL:Emit(Emit)
  641. Debris:AddItem(PRTCL,Lifetime2)
  642. else
  643. PRTCL.Enabled = true
  644. end
  645. return PRTCL
  646. end
  647.  
  648. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  649. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  650. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  651. MakeForm(Part,"Wedge")
  652. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  653. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  654. MakeForm(Part,"Wedge")
  655. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  656. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  657. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  658. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  659. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  660. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  661. MakeForm(Part,"Cyl")
  662. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  663. for i = 1, 8 do
  664. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  665. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  666. end
  667. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  668. MakeForm(Part,"Cyl")
  669. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  670. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  671. MakeForm(Part,"Ball")
  672. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  673. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  674. MakeForm(Part,"Wedge")
  675. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  676. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  677. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  678. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  679. MakeForm(Part,"Cyl")
  680. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  681. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  682. MakeForm(Part,"Cyl")
  683. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  684. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  685. MakeForm(Part,"Cyl")
  686. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  687. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  688. MakeForm(Part,"Wedge")
  689. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  690. local LASTPART = Handle
  691. for i = 1, 10 do
  692. if LASTPART == Handle then
  693. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  694. LASTPART = Part
  695. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  696. else
  697. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  698. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  699. LASTPART = Part
  700. end
  701. end
  702.  
  703. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  704. MakeForm(Barrel,"Cyl")
  705. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  706. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  707. MakeForm(Part,"Cyl")
  708. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  709. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  710. MakeForm(Part,"Wedge")
  711. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  712. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  713. MakeForm(Hole,"Cyl")
  714. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  715. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  716. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  717. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  718. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  719. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  720. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  721. coroutine.resume(coroutine.create(function()
  722. while wait() do
  723. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  724. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  725. end
  726. end))
  727.  
  728. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  729. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  730.  
  731. for _, c in pairs(Weapon:GetDescendants()) do
  732. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  733. c.Material = "Glass"
  734. c.Color = C3(0,0,0)
  735. elseif c.ClassName == "Part" and c.Name == "Eye" then
  736. c.Color = C3(1,0,0)
  737. c.Material = "Neon"
  738. end
  739. end
  740.  
  741. Weapon.Parent = Character
  742. for _, c in pairs(Weapon:GetChildren()) do
  743. if c.ClassName == "Part" then
  744. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  745. end
  746. end
  747.  
  748. local SKILLTEXTCOLOR = C3(1,0,0)
  749. local SKILLFONT = "Antique"
  750. local SKILLTEXTSIZE = 7
  751.  
  752. Humanoid.Died:connect(function()
  753. ATTACK = true
  754. end)
  755.  
  756. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  757. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  758. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  759. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  760. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  761. ]]
  762. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  763. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  764. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  765. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  766. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  767. ]]
  768. function printbye(Name)
  769. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  770. end
  771.  
  772. workspace.ChildAdded:connect(function(instance)
  773. for BANISH = 1, #TOBANISH do
  774. if TOBANISH[BANISH] ~= nil then
  775. if instance.Name == TOBANISH[BANISH] then
  776. coroutine.resume(coroutine.create(function()
  777. printbye(instance.Name)
  778. instance:ClearAllChildren()
  779. Debris:AddItem(instance,0.0005)
  780. end))
  781. end
  782. end
  783. end
  784. end)
  785.  
  786. --//=================================\\
  787. --|| DAMAGING
  788. --\\=================================//
  789.  
  790. function Banish(Foe)
  791. if Foe then
  792. coroutine.resume(coroutine.create(function()
  793. --if game.Players:FindFirstChild(Foe.Name) then
  794. table.insert(TOBANISH,Foe.Name)
  795. printbye(Foe.Name)
  796. --end
  797. Foe.Archivable = true
  798. local CLONE = Foe:Clone()
  799. Foe:Destroy()
  800. CLONE.Parent = Effects
  801. CLONE:BreakJoints()
  802. local MATERIALS = {"Glass","Neon"}
  803. for _, c in pairs(CLONE:GetDescendants()) do
  804. if c:IsA("BasePart") then
  805. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  806. c:MakeJoints()
  807. end
  808. c.Anchored = true
  809. c.Transparency = c.Transparency + 0.2
  810. c.Material = MATERIALS[MRANDOM(1,2)]
  811. c.Color = C3(1,0,0)
  812. if c.ClassName == "MeshPart" then
  813. c.TextureID = ""
  814. end
  815. if c:FindFirstChildOfClass("SpecialMesh") then
  816. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  817. end
  818. if c:FindFirstChildOfClass("Decal") then
  819. c:FindFirstChildOfClass("Decal"):remove()
  820. end
  821. c.Name = "BYPASS Banished"
  822. c.CanCollide = false
  823. else
  824. c:remove()
  825. end
  826. end
  827. local A = false
  828. for i = 1, 35 do
  829. if A == false then
  830. A = true
  831. elseif A == true then
  832. A = false
  833. end
  834. for _, c in pairs(CLONE:GetDescendants()) do
  835. if c:IsA("BasePart") then
  836. c.Anchored = true
  837. c.Material = MATERIALS[MRANDOM(1,2)]
  838. c.Transparency = c.Transparency + 0.8/35
  839. if A == false then
  840. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  841. elseif A == true then
  842. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  843. end
  844. end
  845. end
  846. Swait()
  847. end
  848. CLONE:remove()
  849. end))
  850. end
  851. end
  852.  
  853. function ApplyAoE(POSITION,RANGE,ISBANISH)
  854. local CHILDREN = workspace:GetDescendants()
  855. for index, CHILD in pairs(CHILDREN) do
  856. if CHILD.ClassName == "Model" and CHILD ~= Character then
  857. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  858. if HUM then
  859. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  860. if TORSO then
  861. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  862. if ISBANISH == true then
  863. Banish(CHILD)
  864. else
  865. if ISBANISH == "Gravity" then
  866. HUM.PlatformStand = true
  867. if TORSO:FindFirstChild("BYPASS_V3BanishForce"..Player.Name) then
  868. local grav = Instance.new("BodyPosition",TORSO)
  869. grav.D = 15
  870. grav.P = 20000
  871. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  872. grav.position = TORSO.Position
  873. grav.Name = "BYPASS_V3BanishForce"..Player.Name
  874. else
  875. TORSO:FindFirstChild("BYPASS_V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  876. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  877. end
  878. else
  879. HUM.PlatformStand = false
  880. end
  881. end
  882. elseif ISBANISH == "Gravity" then
  883. if TORSO:FindFirstChild("BYPASS_V3BanishForce"..Player.Name) then
  884. TORSO:FindFirstChild("BYPASS_V3BanishForce"..Player.Name):remove()
  885. HUM.PlatformStand = false
  886. end
  887. end
  888. end
  889. end
  890. end
  891. end
  892. end
  893.  
  894. --//=================================\\
  895. --|| ATTACK FUNCTIONS AND STUFF
  896. --\\=================================//
  897.  
  898. function Shot()
  899. ATTACK = true
  900. Rooted = false
  901. for i=0, 0.4, 0.1 / Animation_Speed do
  902. --for i=0, 0.05, 0.1 / Animation_Speed do
  903. Swait()
  904. turnto(Mouse.Hit.p)
  905. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  906. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  907. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  908. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  909. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  910. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  911. end
  912. repeat
  913. for i=0, 0.2, 0.1 / Animation_Speed do
  914. --for i=0, 0.05, 0.1 / Animation_Speed do
  915. Swait()
  916. turnto(Mouse.Hit.p)
  917. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  918. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  919. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  920. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  921. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  922. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  923. end
  924. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  925. SpawnTrail(Hole.Position,POS)
  926. if HIT ~= nil then
  927. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  928. Banish(HIT.Parent)
  929. end
  930. end
  931. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 1, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  932. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 1, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  933. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 1, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  934. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 1, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  935. for i=0, 0.4, 0.1 / Animation_Speed do
  936. Swait()
  937. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  938. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  939. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  940. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  941. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  942. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  943. end
  944. until KEYHOLD == false
  945. ATTACK = false
  946. Rooted = false
  947. end
  948.  
  949. function AttackTemplate()
  950. ATTACK = true
  951. Rooted = false
  952. for i=0, 1, 0.1 / Animation_Speed do
  953. --for i=0, 0.05, 0.1 / Animation_Speed do
  954. Swait()
  955. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  956. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  957. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  958. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  959. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  960. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  961. end
  962. ATTACK = false
  963. Rooted = false
  964. end
  965.  
  966. --//=================================\\
  967. --|| ASSIGN THINGS TO KEYS
  968. --\\=================================//
  969.  
  970. function MouseDown(Mouse)
  971. if ATTACK == false then
  972. end
  973. end
  974.  
  975. function MouseUp(Mouse)
  976. HOLD = false
  977. end
  978.  
  979. function KeyDown(Key)
  980. KEYHOLD = true
  981. if Key == "z" and ATTACK == false then
  982. Shot()
  983. end
  984.  
  985. if Key == "b" and ATTACK == false then
  986. end
  987.  
  988. if Key == "c" and ATTACK == false then
  989. end
  990.  
  991. if Key == "v" and ATTACK == false then
  992. end
  993.  
  994. if Key == "x" and ATTACK == false then
  995. end
  996. end
  997.  
  998. function KeyUp(Key)
  999. KEYHOLD = false
  1000. end
  1001.  
  1002. Mouse.Button1Down:connect(function(NEWKEY)
  1003. MouseDown(NEWKEY)
  1004. end)
  1005. Mouse.Button1Up:connect(function(NEWKEY)
  1006. MouseUp(NEWKEY)
  1007. end)
  1008. Mouse.KeyDown:connect(function(NEWKEY)
  1009. KeyDown(NEWKEY)
  1010. end)
  1011. Mouse.KeyUp:connect(function(NEWKEY)
  1012. KeyUp(NEWKEY)
  1013. end)
  1014.  
  1015. --//=================================\\
  1016. --\\=================================//
  1017.  
  1018.  
  1019. function unanchor()
  1020. if UNANCHOR == true then
  1021. g = Character:GetChildren()
  1022. for i = 1, #g do
  1023. if g[i].ClassName == "Part" then
  1024. g[i].Anchored = false
  1025. end
  1026. end
  1027. end
  1028. end
  1029.  
  1030.  
  1031. --//=================================\\
  1032. --|| WRAP THE WHOLE SCRIPT UP
  1033. --\\=================================//
  1034.  
  1035. Humanoid.Changed:connect(function(Jump)
  1036. if Jump == "Jump" and (Disable_Jump == true) then
  1037. Humanoid.Jump = false
  1038. end
  1039. end)
  1040.  
  1041. local CONNECT = nil
  1042.  
  1043. while true do
  1044. Swait()
  1045. ANIMATE.Parent = nil
  1046. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1047. Humanoid = IT("Humanoid",Character)
  1048. end
  1049. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1050. v:Stop();
  1051. end
  1052. SINE = SINE + CHANGE
  1053. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1054. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1055. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1056. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1057. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1058. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1059. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  1060. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1061. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1062. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1063. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1064. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1065. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1066. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1067. end
  1068. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1069. ANIM = "Jump"
  1070. if ATTACK == false then
  1071. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1072. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1073. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1074. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1075. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1076. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1077. end
  1078. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1079. ANIM = "Fall"
  1080. if ATTACK == false then
  1081. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1082. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1083. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1084. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1085. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1086. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1087. end
  1088. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1089. ANIM = "Idle"
  1090. if ATTACK == false then
  1091. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1092. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1093. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1094. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1095. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1096. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1097. end
  1098. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1099. ANIM = "Walk"
  1100. if ATTACK == false then
  1101. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1102. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1103. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1104. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1105. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1106. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1107. end
  1108. end
  1109. unanchor()
  1110. Humanoid.MaxHealth = "inf"
  1111. Humanoid.Health = "inf"
  1112. if Rooted == false then
  1113. Disable_Jump = false
  1114. Humanoid.WalkSpeed = Speed
  1115. elseif Rooted == true then
  1116. Disable_Jump = true
  1117. Humanoid.WalkSpeed = 0
  1118. end
  1119. local BODY = {}
  1120. LeftArm = char["Left Arm"]
  1121. RightLeg = char["Right Leg"]
  1122. LeftLeg = char["Left Leg"]
  1123. for _, c in pairs(char:GetDescendants()) do
  1124. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1125. if c ~= char.HumanoidRootPart and c ~= char.Torso and c ~= char.Head and c ~= char["Right Arm"] and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1126. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1127. end
  1128. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1129. elseif c:IsA("JointInstance") then
  1130. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1131. end
  1132. end
  1133. for e = 1, #BODY do
  1134. if BODY[e] ~= nil then
  1135. local STUFF = BODY[e]
  1136. local PART = STUFF[1]
  1137. local PARENT = STUFF[2]
  1138. local MATERIAL = STUFF[3]
  1139. local TRANSPARENCY = STUFF[5]
  1140. if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then
  1141. PART.Material = MATERIAL
  1142. PART.Transparency = TRANSPARENCY
  1143. end
  1144. PART.AncestryChanged:Connect(function()
  1145. PART.Parent = PARENT
  1146. end)
  1147. end
  1148. end
  1149. RootPart = char.HumanoidRootPart
  1150. function refit()
  1151. char.Parent = workspace
  1152. for e = 1, #BODY do
  1153. if BODY[e] ~= nil then
  1154. local STUFF = BODY[e]
  1155. local PART = STUFF[1]
  1156. local PARENT = STUFF[2]
  1157. local MATERIAL = STUFF[3]
  1158. local COLOR = STUFF[4]
  1159. local TRANSPARENCY = STUFF[5]
  1160. local SIZE = STUFF[6]
  1161. local NAME = STUFF[7]
  1162. if PART.ClassName == "Part" and PART ~= RootPart then
  1163. PART.Material = MATERIAL
  1164. PART.Transparency = TRANSPARENCY
  1165. PART.Name = PART.Name
  1166. end
  1167. if PART.Parent ~= PARENT then
  1168. char:FindFirstChildOfClass("Humanoid"):remove()
  1169. PART.Parent = PARENT
  1170. Humanoid = Instance.new("Humanoid",char)
  1171. Humanoid.Name = "0 ANTI-DEATH 0"
  1172. Humanoid.PlatformStand = false
  1173. char:FindFirstChildOfClass("Humanoid").MaxHealth = 'inf'
  1174. char:FindFirstChildOfClass("Humanoid").Health = 'inf'
  1175. end
  1176. end
  1177. end
  1178. end
  1179. char["0 ANTI-DEATH 0"].Died:connect(function()
  1180. refit() -- To prevent the player from dieing.
  1181. QuickGame = game
  1182. owner.Character.Parent = QuickGame
  1183. owner.Character.Parent = workspace
  1184. end)
  1185. while true do
  1186. wait()
  1187. refit()
  1188. char:FindFirstChildOfClass("Humanoid").MaxHealth = 'inf'
  1189. char:FindFirstChildOfClass("Humanoid").Health = 'inf'
  1190. char:FindFirstChildOfClass("Humanoid").PlatformStand = false
  1191. end
  1192. end
  1193.  
  1194. --//=================================\\
  1195. --\\=================================//
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201. --//====================================================\\--
  1202. --|| END OF SCRIPT
  1203. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement