Advertisement
ceater_nerd

isa tool

Jun 12th, 2023 (edited)
3,513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.90 KB | None | 0 0
  1. -- ceat_ceat
  2. owner = owner
  3. NLS = NLS or require(13482937602)()
  4. warn("isa tool by ceat_ceat")
  5. local owner = owner or game:GetService("Players"):GetPlayerFromCharacter(script.Parent)
  6. if not owner then return end
  7.  
  8. --------------------------------------------------------------------------------
  9.  
  10. local runservice = game:GetService("RunService")
  11. local tweenservice = game:GetService("TweenService")
  12. local debris = game:GetService("Debris")
  13.  
  14. --------------------------------------------------------------------------------
  15.  
  16. local BG_FPS = 30
  17. local SHEET_WIDTH = 3
  18. local SHEET_HEIGHT = 4
  19. local BG_SHEETS = {
  20.     11354963244,
  21.     11354964204,
  22.     11354965754,
  23.     11354966418,
  24.     11354967097,
  25.     11354967782,
  26.     11354968803,
  27.     11354969665,
  28.     11354970429,
  29.     11354971277,
  30.     11354972023,
  31.     11354972637,
  32.     11354973735,
  33.     11354975010,
  34.     11354975782,
  35.     11354976600,
  36.     11354977328,
  37.     11354978770,
  38.     11354979309,
  39.     11354980140,
  40.     11354981363,
  41.     11354982342,
  42.     11354983170,
  43.     11354985311,
  44.     11354986234,
  45.     11354987285,
  46.     11354988914,
  47.     11354989983,
  48.     11354991326,
  49.     11354992376,
  50.     11354993312,
  51.     11354994545,
  52.     11355005450,
  53.     11355006370,
  54.     11355007318,
  55.     11355007984,
  56.     11355009803,
  57.     11355014437,
  58.     11355021092,
  59.     11355021905,
  60.     11355023541,
  61.     11355024677,
  62.     11355028659,
  63.     11355030164,
  64.     11355031147,
  65.     11355031710,
  66.     11355032338,
  67.     11355034771,
  68.     11355035752
  69. }
  70.  
  71. local DESCEND_TIME = 0.75
  72. local DESCEND_FRAMES = {
  73.     11095004996,
  74.     11095004781,
  75.     11095004558,
  76.     11095004330,
  77.     11095004170,
  78.     11095003957,
  79.     11095003744,
  80.     11095003559,
  81.     11095003386,
  82.     11095003204,
  83.     11095002940,
  84.     11095002722,
  85.     11095002486,
  86.     11095002272,
  87.     11095002048,
  88.     11095001746,
  89.     11095001539,
  90.     11095001367,
  91.     11095001197,
  92.     11095001057,
  93.     11095000849,
  94.     11095000641,
  95.     11095000456,
  96.     11095000299,
  97.     11095000182,
  98.     11094999975,
  99.     11094999754,
  100.     11094999571,
  101.     11094999346,
  102.     11094999188,
  103.     11094999033,
  104.     11094998825,
  105.     11094998601,
  106.     11094998382,
  107.     11094998179,
  108.     11094997963,
  109.     11094997792,
  110.     11094997571
  111. }
  112.  
  113. local KO_FPS = 30
  114. local KO_FRAMES = {
  115.     10862920972,
  116.     10862921809,
  117.     10862922668,
  118.     10862923555,
  119.     10862924793,
  120.     10862941831,
  121.     10862942751,
  122.     10862943639,
  123.     10862944641,
  124.     10862945542,
  125.     10862964867,
  126.     10862965882,
  127.     10862969327,
  128.     10862972756,
  129.     10862973801,
  130.     10862981387,
  131.     10862982208,
  132.     10862983200,
  133.     10862984100,
  134.     10862985248,
  135.     10863009434,
  136.     10863011066,
  137.     10863012152,
  138.     10863013221,
  139.     10863014920,
  140.     10863020966,
  141.     10863022697,
  142.     10863024820
  143. }
  144.  
  145. -- { soundid, pitch }
  146. local MUSIC = {
  147.     { 13608974888, 1 },
  148.     { 13609022752, 1 },
  149.     { 13609152933, 0.5 }
  150. }
  151.  
  152. -- { imageid, soundid, music, attacklabelcolor }
  153. local LAYERS = {
  154.     { 11536844696, 8765310014, MUSIC[1], Color3.new(1, 1, 1) },
  155.     { 11536844555, 8765310560, MUSIC[1], Color3.new(0, 1, 0) },
  156.     { 11536844386, 8765311234, MUSIC[1], Color3.new(0.2, 0.4, 1) },
  157.     { 11536844211, 8765312042, MUSIC[1], Color3.new(1, 0, 1) },
  158.     { 11536844060, 8765312392, MUSIC[2], Color3.new(1, 1, 0) },
  159.     { 11536843409, 8765313042, MUSIC[2], Color3.new(1, 0, 0) },
  160.     { 11536843284, 8765313651, MUSIC[2], "RAINBOW" },
  161.     { 11536843179, 8765314189, MUSIC[3], "RAINBOW" }
  162. }
  163.  
  164. local ATTACK_LABEL_FONT = Font.new("rbxasset://fonts/families/RomanAntique.json")
  165. local ATTACK_LABEL_BG_COLORS = {
  166.     Color3.new(1, 0, 0),
  167.     Color3.new(0, 1, 1),
  168.     Color3.fromRGB(85, 85, 127),
  169.     Color3.fromRGB(255, 150, 0),
  170.     Color3.new(0, 0, 1),
  171.     Color3.new(1, 0, 1)
  172. }
  173.  
  174. local ATTACK_LABEL_RAINBOW_CYCLE_TIME = 16
  175.  
  176. local ATTACK_PRESETS = {
  177.     Modern = {
  178.         "Instant Death Injury",
  179.         "Direct Death",
  180.         "State Manipulation",
  181.         "State Reversal",
  182.         "Soul Elimination",
  183.         "ExplodBreak",
  184.         "Character Disassembly",
  185.        
  186.         "Character Elimination",
  187.         "Direct Elimination",
  188.         "Combined Elimination",
  189.         "Full Elimination",
  190.         "Amplified Character Elimination",
  191.         "Amplified Direct Elimination",
  192.         "Amplified Combined Elimination",
  193.         "Amplified Full Elimination",
  194.         "Amplified Full Elimination + System Removal",
  195.        
  196.         "inf Applifed Throw",
  197.         "Fake Dgeradation",
  198.         "Mesh Degradation",
  199.         "Enforced Mesh Degradation",
  200.         "Full Mesh Degradation",
  201.         "Mesh ID Degradation",
  202.         "Direct Void Throw",
  203.         "Combined Void Throw",
  204.        
  205.         "Fake Degradation Tampering",
  206.         "Mesh Degradation Tampering",
  207.         "Forced Mesh Degradation Tampering",
  208.         "Full Mesh Degradation Tampering",
  209.         "Forced Full Mesh Degradation Tampering",
  210.         "Mesh ID Degradation Tampering",
  211.         "Forced Mesh ID Degradation Tampering",
  212.         "Void Tampering Throw",
  213.         "Combined Void Tampering Throw",
  214.         "Forced Void Tampering Throw",
  215.         "Forced Combined Void Tampering Throw",
  216.        
  217.         "Amplified Fake Degradation Tampering",
  218.         "Amplified Mesh Degradation Tampering",
  219.         "Amplified Forced Mesh Degradation Tampering",
  220.         "Amplified Enforced Mesh Degradation",
  221.         "Amplified Full Mesh Degradation Tampering",
  222.         "Amplified Forced Full Mesh Degradation Tampering",
  223.         "Amplified Mesh ID Degradation Tampering",
  224.         "Amplified Forced Mesh ID Degradation Tampering",
  225.         "Amplified Void Tampering Throw",
  226.         "Amplified Combined Void Tampering Throw",
  227.         "Amplified Forced Void Tampering Throw",
  228.         "Amplified Forced Combined Void Tampering Throw",
  229.        
  230.         "HYPERDeath",
  231.         "HYPER F-Degradation",
  232.         "HYPERDegradation",
  233.         "HYPER E-Degradation",
  234.         "Full HYPERDegradation",
  235.         "ID HYPERDegradation",
  236.         "HYPERVoid",
  237.         "Combined HYPERVoid",
  238.         "Esoteric Elimination",
  239.         "Amplified Esoteric Elimination",
  240.         "PPE Obliteration",
  241.         "PERM Erasure",
  242.        
  243.         "摧ける",
  244.         "Infinite Soulabyss"
  245.     },
  246.     Old = {
  247.         "Instant Damage",
  248.        
  249.         "Fake Void Throw",
  250.        
  251.         "Two-Fold Forced Mesh Degradation Tampering",
  252.        
  253.         "砕けろ"
  254.     }
  255. }
  256.  
  257. --------------------------------------------------------------------------------
  258.  
  259. local sheetframes = SHEET_WIDTH * SHEET_HEIGHT
  260. local totalframes = #BG_SHEETS * sheetframes
  261. local starttime = os.clock()
  262.  
  263. local tool = Instance.new("Tool")
  264. tool.Name = "ISA"
  265.  
  266. local handle = Instance.new("Part", tool)
  267. handle.Size = Vector3.new(16/2, 9/2, 1)
  268. handle.Massless = true
  269. handle.Name = "Handle"
  270.  
  271. local music = Instance.new("Sound", handle)
  272. music.Looped = true
  273. music.Volume = 1
  274. music.SoundId = "rbxassetid://" .. MUSIC[1][1]
  275. music.Pitch = MUSIC[1][2]
  276.  
  277. local surfacegui = Instance.new("SurfaceGui", handle)
  278. surfacegui.ClipsDescendants = true
  279.  
  280. local bgcontainer = Instance.new("Frame", surfacegui)
  281. bgcontainer.BackgroundTransparency = 1
  282. bgcontainer.Size = UDim2.new(1, 0, 1, 0)
  283. bgcontainer.ZIndex = 1
  284.  
  285. local descendcontainer = Instance.new("Frame", surfacegui)
  286. descendcontainer.BackgroundTransparency = 1
  287. descendcontainer.Size = UDim2.new(1, 0, 1, 0)
  288. descendcontainer.Visible = false
  289. descendcontainer.ZIndex = 2
  290.  
  291. local kocontainer = Instance.new("Frame", surfacegui)
  292. kocontainer.BackgroundTransparency = 1
  293. kocontainer.Size = UDim2.new(1, 0, 1, 0)
  294. kocontainer.Visible = false
  295. kocontainer.ZIndex = 3
  296.  
  297. local attacklabelbackground = Instance.new("ImageLabel", surfacegui)
  298. attacklabelbackground.BackgroundTransparency = 1
  299. attacklabelbackground.Position = UDim2.new(0, 0, 0.15, 0)
  300. attacklabelbackground.Size = UDim2.new(1, 0, 0.15, 0)
  301. attacklabelbackground.Image = "rbxassetid://11096220259"
  302. attacklabelbackground.Visible = false
  303. attacklabelbackground.ZIndex = 2
  304.  
  305. local attacklabel = Instance.new("TextLabel", attacklabelbackground)
  306. attacklabel.AnchorPoint = Vector2.new(0.5, 0.5)
  307. attacklabel.BackgroundTransparency = 1
  308. attacklabel.Position = UDim2.new(0.5, 0, 0.45, 0)
  309. attacklabel.Size = UDim2.new(0.9, 0, 0.9, 0)
  310. attacklabel.FontFace = ATTACK_LABEL_FONT
  311. attacklabel.TextColor3 = Color3.new(1, 1, 1)
  312. attacklabel.TextScaled = true
  313. attacklabel.ZIndex = 2
  314.  
  315. local flash = Instance.new("Frame", surfacegui)
  316. flash.Size = UDim2.new(1, 0, 1, 0)
  317. flash.Visible = false
  318. flash.ZIndex = 3
  319.  
  320. local bgsheets = {}
  321. local descendframes = {}
  322.  
  323. for i, frameid in next, BG_SHEETS do
  324.     local image = Instance.new("ImageLabel", bgcontainer)
  325.     image.Image = "rbxassetid://" .. frameid
  326.     image.Size = UDim2.new(SHEET_WIDTH, 0, SHEET_HEIGHT, 0)
  327.     image.Visible = false
  328.     bgsheets[i] = image
  329. end
  330.  
  331. for i, frameid in next, DESCEND_FRAMES do
  332.     local image = Instance.new("ImageLabel", descendcontainer)
  333.     image.Image = "rbxassetid://" .. frameid
  334.     image.Size = UDim2.new(1, 0, 1, 0)
  335.     image.Visible = false
  336.     descendframes[i] = image
  337. end
  338.  
  339. for i, frameid in next, KO_FRAMES do
  340.     local image = Instance.new("ImageLabel", kocontainer)
  341.     image.BackgroundTransparency = 1
  342.     image.Image = "rbxassetid://" .. frameid
  343.     image.Size = UDim2.new(1, 0, 1, 0)
  344.     image.Visible = false
  345.     image.Name = i
  346. end
  347.  
  348. local loadercontainer = Instance.new("Model", tool)
  349.  
  350. local loadplease = Instance.new("Part", loadercontainer)
  351. loadplease.Anchored = true
  352. loadplease.CanCollide = false
  353. loadplease.CanTouch = false
  354. loadplease.CanQuery = false
  355. loadplease.CFrame = CFrame.new(0, 20, 0)
  356. loadplease.Size = Vector3.zero
  357. loadplease.Transparency = 1
  358.  
  359. local loaderscreengui = surfacegui:Clone()
  360. loaderscreengui.Parent = loadplease
  361.  
  362. for _, frame in loaderscreengui:GetDescendants() do
  363.     frame.Visible = true
  364. end
  365.  
  366. -------------------------------------------------------------------------------
  367.  
  368. local isdescending = false
  369. local touched
  370. local currentlayer = 0
  371. local currentsong = MUSIC[1]
  372. local lastlaughtime = workspace.DistributedGameTime
  373.  
  374. local function ko()
  375.     local laugh = Instance.new("Sound", handle)
  376.     laugh.SoundId = "rbxassetid://8765309507"
  377.     laugh.Volume = 3
  378.     laugh:Play()
  379.     debris:AddItem(laugh, 2.1)
  380.  
  381.     local attacksound = Instance.new("Sound", handle)
  382.     attacksound.SoundId = "rbxassetid://9060378036"
  383.     attacksound.Volume = 4
  384.     attacksound:Play()
  385.     debris:AddItem(attacksound, 2)
  386.  
  387.     local container = kocontainer:Clone()
  388.     local frames = {}
  389.  
  390.     for i in next, container:GetChildren() do
  391.         frames[i] = container:FindFirstChild(tostring(i))
  392.     end
  393.  
  394.     container.Parent = surfacegui
  395.     container.Visible = true
  396.    
  397.     task.spawn(function()
  398.         flash.BackgroundColor3 = Color3.new(1, 0, 0)
  399.         for i = 1, 2 do
  400.             flash.Visible = true
  401.             task.wait(0.075)
  402.             flash.Visible = false
  403.             task.wait(0.075)
  404.         end
  405.     end)
  406.  
  407.     for i, frame in next, frames do
  408.         if i ~= 1 then
  409.             frames[i - 1].Visible = false
  410.         end
  411.         frame.Visible = true
  412.         task.wait(1/KO_FPS)
  413.     end
  414.    
  415.     task.wait(1)
  416.     container:Destroy()
  417. end
  418.  
  419. local function ontouched(hit)
  420.     if not hit:IsDescendantOf(tool.Parent) and not hit:IsDescendantOf(tool.Parent) and math.max(hit.Size.X, hit.Size.Y, hit.Size.Z) < 100 then
  421.         pcall(game.Destroy, hit)
  422.  
  423.         if workspace.DistributedGameTime - lastlaughtime > 0.2 then
  424.             lastlaughtime = workspace.DistributedGameTime
  425.             ko()
  426.         end
  427.     end
  428. end
  429.  
  430. tool.Equipped:Connect(function(mouse)
  431.     local chr = tool.Parent
  432.     touched = handle.Touched:Connect(ontouched)
  433.  
  434.     local genesis = Instance.new("Sound", handle)
  435.     genesis.SoundId = "rbxassetid://8765309012"
  436.     genesis.TimePosition = 1
  437.     genesis.Volume = 3
  438.     genesis:Play()
  439.     debris:AddItem(genesis, 2.5)
  440.    
  441.     music.Playing = true
  442. end)
  443.  
  444. tool.Unequipped:Connect(function()
  445.     if touched then
  446.         touched:Disconnect()
  447.     end
  448.  
  449.     local death = Instance.new("Sound", handle)
  450.     death.SoundId = "rbxassetid://8765308354"
  451.     death.Volume = 3
  452.     death:Play()
  453.     debris:AddItem(death, 2)
  454.    
  455.     music.Playing = false
  456. end)
  457.  
  458. tool.Activated:Connect(function()
  459.     if isdescending then return end
  460.     isdescending = true
  461.  
  462.     descendcontainer.Visible = true
  463.  
  464.     local descendsound = Instance.new("Sound", handle)
  465.     descendsound.SoundId = "rbxassetid://9060399229"
  466.     descendsound.Volume = 4
  467.     descendsound:Play()
  468.     debris:AddItem(descendsound, 2)
  469.  
  470.     local descendtime = os.clock()
  471.     repeat
  472.         task.wait()
  473.         local frame = math.ceil((os.clock() - descendtime)/DESCEND_TIME*#descendframes)
  474.         for i, image in next, descendframes do
  475.             image.Visible = frame == i
  476.         end
  477.     until os.clock() - descendtime >= DESCEND_TIME
  478.  
  479.     descendcontainer.Visible = false
  480.     isdescending = false
  481.  
  482.     currentlayer = currentlayer + 1
  483.     if currentlayer > #LAYERS then
  484.         currentlayer = 1
  485.     end
  486.    
  487.     local layer = LAYERS[currentlayer]
  488.  
  489.     local layerimage = Instance.new("ImageLabel")
  490.     layerimage.AnchorPoint = Vector2.new(0.5, 0.5)
  491.     layerimage.BackgroundTransparency = 1
  492.     layerimage.Position = UDim2.new(0.5, 0, 0.5, 0)
  493.     layerimage.Size = UDim2.new(0, 150, 0, 150)
  494.     layerimage.Image = "rbxassetid://" .. layer[1]
  495.     layerimage.ScaleType = Enum.ScaleType.Fit
  496.     layerimage.ZIndex = 5
  497.     layerimage.Parent = surfacegui
  498.  
  499.     tool.TextureId = "rbxassetid://" .. layer[1]
  500.  
  501.     tweenservice:Create(layerimage, TweenInfo.new(1), { ImageTransparency = 1 }):Play()
  502.     debris:AddItem(layerimage, 1)
  503.  
  504.     local voiceline = Instance.new("Sound", handle)
  505.     voiceline.SoundId = "rbxassetid://" .. layer[2]
  506.     voiceline.Volume = 4
  507.     voiceline:Play()
  508.     debris:AddItem(voiceline, 5)
  509.  
  510.     local attacksound = Instance.new("Sound", handle)
  511.     attacksound.SoundId = "rbxassetid://9060378036"
  512.     attacksound.Volume = 4
  513.     attacksound:Play()
  514.     debris:AddItem(attacksound, 2)
  515.    
  516.     local newlabelcolor = layer[4]
  517.     if newlabelcolor == "RAINBOW" then
  518.         attacklabel.TextColor3 = Color3.fromHSV((workspace.DistributedGameTime/ATTACK_LABEL_RAINBOW_CYCLE_TIME)%1, 0.8, 1)
  519.     else
  520.         attacklabel.TextColor3 = newlabelcolor
  521.     end
  522.    
  523.     if layer[3] ~= currentsong then
  524.         currentsong = layer[3]
  525.         music.SoundId = "rbxassetid://" .. currentsong[1]
  526.         music.Pitch = currentsong[2]
  527.         music.TimePosition = 0
  528.     end
  529.    
  530.     flash.BackgroundColor3 = Color3.new(1, 1, 1)
  531.     for i = 1, 2 do
  532.         flash.Visible = true
  533.         task.wait(0.075)
  534.         flash.Visible = false
  535.         task.wait(0.075)
  536.     end
  537. end)
  538.  
  539. -------------------------------------------------------------------------------
  540. -- attack label input
  541. -------------------------------------------------------------------------------
  542.  
  543. function newattacklabel(labelclass)
  544.     local bg = Instance.new("ImageLabel")
  545.     bg.BackgroundTransparency = 1
  546.     bg.Size = UDim2.new(0, 100, 0, 30)
  547.     bg.Image = "rbxassetid://11096220259"
  548.  
  549.     local button = Instance.new(labelclass, bg)
  550.     button.AnchorPoint = Vector2.new(0.5, 0.5)
  551.     button.BackgroundTransparency = 1
  552.     button.Position = UDim2.new(0.5, 0, 0.45, 0)
  553.     button.Size = UDim2.new(1, 0, 0.9, 0)
  554.     button.FontFace = ATTACK_LABEL_FONT
  555.     button.TextColor3 = Color3.new(1, 1, 1)
  556.     button.TextSize = 20
  557.     button.Name = "Label"
  558.    
  559.     return bg
  560. end
  561.  
  562. local screengui = Instance.new("ScreenGui")
  563.  
  564. local remoteevent = Instance.new("RemoteEvent", screengui)
  565. remoteevent.Name = "SETATTACKNAME"
  566.  
  567. local inputcontainer = Instance.new("Frame", screengui)
  568. inputcontainer.AnchorPoint = Vector2.new(1, 1)
  569. inputcontainer.BackgroundTransparency = 1
  570. inputcontainer.Position = UDim2.new(1, 0, 1, 0)
  571. inputcontainer.Size = UDim2.new(0, 100, 0, 100)
  572.  
  573. local inputuilist = Instance.new("UIListLayout", inputcontainer)
  574. inputuilist.Padding = UDim.new(0, 5)
  575. inputuilist.FillDirection = Enum.FillDirection.Horizontal
  576. inputuilist.HorizontalAlignment = Enum.HorizontalAlignment.Right
  577. inputuilist.SortOrder = Enum.SortOrder.LayoutOrder
  578. inputuilist.VerticalAlignment = Enum.VerticalAlignment.Bottom
  579.  
  580. function createselector(name, layoutorder, list)
  581.     local bg = newattacklabel("TextButton")
  582.     bg.LayoutOrder = layoutorder
  583.     bg.Label.Text = name
  584.     bg.Label.Name = "Opener"
  585.    
  586.     local frame = Instance.new("ScrollingFrame", bg)
  587.     frame.AnchorPoint = Vector2.new(0, 1)
  588.     frame.BackgroundTransparency = 1
  589.     frame.BorderSizePixel = 0
  590.     frame.Position = UDim2.new(0, 0, 0, -2)
  591.     frame.Size = UDim2.new(1, 0, 10, 0)
  592.     frame.ScrollBarThickness = 0
  593.     frame.AutomaticCanvasSize = Enum.AutomaticSize.Y
  594.     frame.Visible = false
  595.    
  596.     local uilistlayout = Instance.new("UIListLayout", frame)
  597.     uilistlayout.SortOrder = Enum.SortOrder.Name
  598.     uilistlayout.Padding = UDim.new(0, 2)
  599.    
  600.     for _, attackname in next, list do
  601.         local attackbg = newattacklabel("TextButton")
  602.         attackbg.Name = attackname
  603.         attackbg.Label.Text = attackname
  604.         attackbg.Label.TextScaled = true
  605.         attackbg.Label.Name = "Preset"
  606.        
  607.         local padding = Instance.new("UIPadding", attackbg.Preset)
  608.         padding.PaddingLeft = UDim.new(0, 10)
  609.         padding.PaddingRight = UDim.new(0, 10)
  610.        
  611.         attackbg.Parent = frame
  612.     end
  613.    
  614.     return bg
  615. end
  616.  
  617. local inputbox = newattacklabel("TextBox")
  618. inputbox.AutomaticSize = Enum.AutomaticSize.X
  619. inputbox.Size = UDim2.new(0, 200, 0, 30)
  620. inputbox.Label.AnchorPoint = Vector2.new(0, 0.5)
  621. inputbox.Label.AutomaticSize = Enum.AutomaticSize.X
  622. inputbox.Label.ClearTextOnFocus = false
  623. inputbox.Label.Position = UDim2.new(0, 0, 0.45, 0)
  624. inputbox.Label.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
  625. inputbox.Label.PlaceholderText = "Input Attack Name"
  626. inputbox.Label.Text = ""
  627.  
  628. local inputpadding = Instance.new("UIPadding", inputbox.Label)
  629. inputpadding.PaddingLeft = UDim.new(0, 20)
  630. inputpadding.PaddingRight = UDim.new(0, 20)
  631. inputbox.Label.Name = "TextBox"
  632. inputbox.Name = "InputBox"
  633. inputbox.LayoutOrder = 3
  634. inputbox.Parent = inputcontainer
  635.  
  636. createselector("Presets", 2, ATTACK_PRESETS.Modern).Parent = inputcontainer
  637. createselector("Old Presets", 1, ATTACK_PRESETS.Old).Parent = inputcontainer
  638.  
  639. remoteevent.OnServerEvent:Connect(function(_, text)
  640.     if typeof(text) ~= "string" then
  641.         return
  642.     end
  643.    
  644.     if text == "" then
  645.         attacklabelbackground.Visible = false
  646.         if workspace.DistributedGameTime - lastlaughtime > 0.2 then
  647.             lastlaughtime = workspace.DistributedGameTime
  648.             ko()
  649.         end
  650.         return
  651.     end
  652.    
  653.     attacklabelbackground.Visible = true
  654.     attacklabel.Text = text
  655.    
  656.     local attackflash = flash:Clone()
  657.     attackflash.BackgroundColor3 = Color3.new(1, 1, 1)
  658.     attackflash.Visible = true
  659.     attackflash.Parent = surfacegui
  660.    
  661.     tweenservice:Create(attackflash, TweenInfo.new(0.5), {
  662.         BackgroundTransparency = 1
  663.     }):Play()
  664.     debris:AddItem(attackflash, 0.5)
  665.    
  666.     local attacksound = Instance.new("Sound", handle)
  667.     attacksound.SoundId = "rbxassetid://9060378036"
  668.     attacksound.Volume = 4
  669.     attacksound:Play()
  670.     debris:AddItem(attacksound, 2)
  671. end)
  672.  
  673. task.spawn(NLS, [[
  674.  
  675. local screengui = script.Parent
  676. local remoteevent = screengui:WaitForChild("SETATTACKNAME")
  677. local container = screengui:WaitForChild("Frame")
  678.  
  679. for _, inst in next, container:GetDescendants() do
  680.     if inst.Name == "Opener" then
  681.         local frame = inst.Parent.ScrollingFrame
  682.         inst.MouseButton1Click:Connect(function()
  683.             frame.Visible = not frame.Visible
  684.         end)
  685.     elseif inst.Name == "Preset" then
  686.         local text = inst.Text
  687.         inst.MouseButton1Click:Connect(function()
  688.             remoteevent:FireServer(text)
  689.         end)
  690.     end
  691. end
  692.  
  693. local inputbox = container:WaitForChild("InputBox"):WaitForChild("TextBox")
  694. inputbox.FocusLost:Connect(function()
  695.     remoteevent:FireServer(inputbox.Text)
  696. end)
  697.  
  698. ]], screengui)
  699.  
  700. screengui.Parent = owner:FindFirstChildOfClass("PlayerGui")
  701.  
  702. -------------------------------------------------------------------------------
  703.  
  704. tool.Parent = owner:FindFirstChildOfClass("Backpack") or Instance.new("Backpack", owner)
  705.  
  706. -------------------------------------------------------------------------------
  707.  
  708. -------------------------------------------------------------------------------
  709.  
  710. local waittime = 1/BG_FPS
  711. local sheetidx = 1
  712. local tileidx = 0
  713. local attackbgcoloridx = 0
  714. local nextattacklabeltweentime = 0
  715.  
  716. local prevsheet
  717. while tool:IsDescendantOf(game) do
  718.     if prevsheet then
  719.         prevsheet.Visible = false
  720.     end
  721.  
  722.     if sheetidx > #bgsheets then
  723.         sheetidx = 1
  724.     end
  725.  
  726.     local sheet = bgsheets[sheetidx]
  727.     sheet.Visible = true
  728.  
  729.     prevsheet = sheet
  730.  
  731.     for y = 0, 3 do
  732.         for x = 0, 2 do
  733.             tileidx = tileidx + 1
  734.  
  735.             sheet.Position = UDim2.new(-x, 0, -y, 0)
  736.             sheet.ImageColor3 = Color3.fromHSV(tileidx / totalframes % 1, 0.75, 1)
  737.            
  738.             if LAYERS[currentlayer] and LAYERS[currentlayer][4] == "RAINBOW" then
  739.                 attacklabel.TextColor3 = Color3.fromHSV((workspace.DistributedGameTime/ATTACK_LABEL_RAINBOW_CYCLE_TIME)%1, 0.8, 1)
  740.             end
  741.            
  742.             if workspace.DistributedGameTime > nextattacklabeltweentime then
  743.                 attackbgcoloridx = attackbgcoloridx + 1
  744.                 if attackbgcoloridx > #ATTACK_LABEL_BG_COLORS then
  745.                     attackbgcoloridx = 1
  746.                 end
  747.  
  748.                 local duration = math.random(2, 4)
  749.                 tweenservice:Create(attacklabelbackground, TweenInfo.new(duration), {
  750.                     ImageColor3 = ATTACK_LABEL_BG_COLORS[attackbgcoloridx]
  751.                 }):Play()
  752.  
  753.                 nextattacklabeltweentime = workspace.DistributedGameTime + duration * 1.25
  754.             end
  755.            
  756.             loadplease.CFrame = handle.CFrame * CFrame.new(0, 0, -0.6)
  757.            
  758.             task.wait(waittime)
  759.         end
  760.     end
  761.  
  762.     sheetidx = sheetidx + 1
  763. end
  764.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement