Mr_3242

Killstreak button test remastered (fixed Plateform logic)

Mar 18th, 2026 (edited)
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 12.25 KB | Gaming | 0 0
  1. --Fixed Plateform logic itโ€™s now properly working
  2.  
  3. --// SERVICES
  4. local Players = game:GetService("Players")
  5. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  6. local Lighting = game:GetService("Lighting")
  7. local RunService = game:GetService("RunService")
  8. local UserInputService = game:GetService("UserInputService")
  9.  
  10. --// PLAYER
  11. local player = Players.LocalPlayer
  12.  
  13. --// CLEAN RE-EXECUTE
  14. if getgenv().KillstreakUnload then
  15.     pcall(getgenv().KillstreakUnload)
  16. end
  17.  
  18. --// REMOTES
  19. local AddClick = ReplicatedStorage:WaitForChild("AddClick")
  20. local GiveKill = ReplicatedStorage:WaitForChild("AdminEvents"):WaitForChild("GiveKill")
  21. local GiveKill2 = ReplicatedStorage:WaitForChild("AdminEvents"):WaitForChild("GiveKill2")
  22. local GiveKill3 = ReplicatedStorage:WaitForChild("AdminEvents"):WaitForChild("GiveKill3")
  23.  
  24. --// BUTTONS
  25. local ReaperButton, StarfallButton, TimestreakButton, KillstreakButton, DarknessButton
  26. task.spawn(function()
  27.     pcall(function()
  28.         local gui = player:WaitForChild("PlayerGui")
  29.         ReaperButton = gui:WaitForChild("ReaperButton",5):WaitForChild("TextButton",5)
  30.         StarfallButton = gui:WaitForChild("StarfallButton",5):WaitForChild("TextButton",5)
  31.         TimestreakButton = gui:WaitForChild("TimestreakButton",5):WaitForChild("TextButton",5)
  32.         KillstreakButton = gui:WaitForChild("KillstreakButton",5):WaitForChild("TextButton",5)
  33.         DarknessButton = gui:WaitForChild("DarknessButton",5):WaitForChild("TextButton",5)
  34.     end)
  35. end)
  36.  
  37. --// LOAD UI
  38. local Rayfield
  39. repeat
  40.     local s,r = pcall(function()
  41.         return loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
  42.     end)
  43.     if s and r then Rayfield = r else task.wait(2) end
  44. until Rayfield
  45.  
  46. --// FILTER NOTIFICATIONS
  47. local oldNotify = Rayfield.Notify
  48. Rayfield.Notify = function(self, data)
  49.     if data and data.Title then
  50.         local t = tostring(data.Title)
  51.         if t:find("Rayfield") or t:find("Interface") then return end
  52.     end
  53.     return oldNotify(self, data)
  54. end
  55.  
  56. --// NOTIFY
  57. local function Notify(t,c)
  58.     Rayfield:Notify({
  59.         Title=t,
  60.         Content=c,
  61.         Duration=3,
  62.         Image=4483362458
  63.     })
  64. end
  65.  
  66. --// WINDOW
  67. local Window = Rayfield:CreateWindow({
  68.     Name="Killstreak button test remastered",
  69.     LoadingTitle="Killstreak",
  70.     LoadingSubtitle="Follow me on TikTok Mr_3242",
  71.     ConfigurationSaving={Enabled=false},
  72.     KeySystem=false
  73. })
  74.  
  75. --// TABS
  76. local CheatsTab = Window:CreateTab("Cheats",4483362458)
  77. local CreditsTab = Window:CreateTab("Credits",4483362458)
  78. local UnloadTab = Window:CreateTab("Unload",4483362458)
  79.  
  80. --// VARS
  81. local running=true
  82. local delay=0.1
  83.  
  84. --// AUTO CLICK
  85. local autoClick=false
  86. local clickConnection
  87. local lastClick=0
  88.  
  89. local function FireClicks()
  90.     if not running then return end
  91.     pcall(function()
  92.         if ReaperButton then ReaperButton:Activate() end
  93.         if StarfallButton then StarfallButton:Activate() end
  94.         if TimestreakButton then TimestreakButton:Activate() end
  95.         if KillstreakButton then KillstreakButton:Activate() end
  96.         if DarknessButton then DarknessButton:Activate() end
  97.  
  98.         GiveKill2:FireServer()
  99.         GiveKill:FireServer()
  100.         GiveKill3:FireServer()
  101.         AddClick:FireServer()
  102.     end)
  103. end
  104.  
  105. local function StartAutoClick()
  106.     if clickConnection then return end
  107.     clickConnection = RunService.Heartbeat:Connect(function()
  108.         if not autoClick or not running then return end
  109.         if delay<=0 then
  110.             FireClicks()
  111.         else
  112.             if time()-lastClick>=delay then
  113.                 lastClick=time()
  114.                 FireClicks()
  115.             end
  116.         end
  117.     end)
  118. end
  119.  
  120. local function StopAutoClick()
  121.     autoClick=false
  122.     lastClick=0
  123.     if clickConnection then
  124.         clickConnection:Disconnect()
  125.         clickConnection=nil
  126.     end
  127. end
  128.  
  129. --// ๐Ÿ” FPS BOOST (REVERSIBLE)
  130. local fpsConnection
  131. local stored = {}
  132.  
  133. local function ApplyFPSBoost(state)
  134.     if state then
  135.         stored = {}
  136.  
  137.         for _,v in pairs(game:GetDescendants()) do
  138.             if v:IsA("ParticleEmitter") or v:IsA("Trail") or v:IsA("Smoke") or v:IsA("Fire") then
  139.                 stored[v] = {Enabled = v.Enabled}
  140.                 v.Enabled = false
  141.             end
  142.  
  143.             if v:IsA("PostEffect") or v:IsA("Atmosphere") then
  144.                 stored[v] = {Enabled = v.Enabled}
  145.                 v.Enabled = false
  146.             end
  147.  
  148.             if v:IsA("BasePart") then
  149.                 stored[v] = stored[v] or {}
  150.                 stored[v].Material = v.Material
  151.                 stored[v].Reflectance = v.Reflectance
  152.  
  153.                 v.Material = Enum.Material.SmoothPlastic
  154.                 v.Reflectance = 0
  155.             end
  156.  
  157.             if v:IsA("Decal") or v:IsA("Texture") then
  158.                 stored[v] = {Transparency = v.Transparency}
  159.                 v.Transparency = 1
  160.             end
  161.         end
  162.  
  163.         stored.Lighting = {
  164.             GlobalShadows = Lighting.GlobalShadows,
  165.             FogEnd = Lighting.FogEnd,
  166.             Brightness = Lighting.Brightness
  167.         }
  168.  
  169.         Lighting.GlobalShadows = false
  170.         Lighting.FogEnd = 1e10
  171.         Lighting.Brightness = 1
  172.  
  173.         settings().Rendering.QualityLevel = Enum.QualityLevel.Level01
  174.  
  175.         fpsConnection = game.DescendantAdded:Connect(function(v)
  176.             if v:IsA("ParticleEmitter") or v:IsA("Trail") then
  177.                 v.Enabled = false
  178.             end
  179.             if v:IsA("Decal") or v:IsA("Texture") then
  180.                 v.Transparency = 1
  181.             end
  182.             if v:IsA("BasePart") then
  183.                 v.Material = Enum.Material.SmoothPlastic
  184.             end
  185.         end)
  186.  
  187.     else
  188.         for obj,data in pairs(stored) do
  189.             if typeof(obj) == "Instance" and obj then
  190.                 pcall(function()
  191.                     for prop,val in pairs(data) do
  192.                         obj[prop] = val
  193.                     end
  194.                 end)
  195.             end
  196.         end
  197.  
  198.         if stored.Lighting then
  199.             Lighting.GlobalShadows = stored.Lighting.GlobalShadows
  200.             Lighting.FogEnd = stored.Lighting.FogEnd
  201.             Lighting.Brightness = stored.Lighting.Brightness
  202.         end
  203.  
  204.         settings().Rendering.QualityLevel = Enum.QualityLevel.Automatic
  205.  
  206.         if fpsConnection then
  207.             fpsConnection:Disconnect()
  208.             fpsConnection=nil
  209.         end
  210.  
  211.         stored = {}
  212.     end
  213. end
  214.  
  215. --// KILL EFFECT
  216. local killConnection
  217. local function ApplyKillBlock(state)
  218.     local sounds=workspace:FindFirstChild("Sounds")
  219.     if not sounds then return end
  220.     if state then
  221.         killConnection=sounds.ChildAdded:Connect(function(c)
  222.             if c.Name=="Kill" then c.Name="DisabledKill" end
  223.         end)
  224.         local e=sounds:FindFirstChild("Kill")
  225.         if e then e.Name="DisabledKill" end
  226.     else
  227.         if killConnection then killConnection:Disconnect(); killConnection=nil end
  228.         for _,v in pairs(sounds:GetChildren()) do
  229.             if v.Name=="DisabledKill" then v.Name="Kill" end
  230.         end
  231.     end
  232. end
  233.  
  234. --// SLAPPLES
  235. local autoSlapple=false
  236. local slappleThread
  237.  
  238. local function Touch(p)
  239.     local char = player.Character
  240.     if not char then return end
  241.  
  242.     local root = char:FindFirstChild("HumanoidRootPart")
  243.     if not root then return end
  244.  
  245.     firetouchinterest(root,p,0)
  246.     firetouchinterest(root,p,1)
  247. end
  248.  
  249. local function GetSlappleParts()
  250.     local parts = {}
  251.  
  252.     local map = workspace:FindFirstChild("Map")
  253.     if not map then return parts end
  254.  
  255.     local arena = map:FindFirstChild("MainArena")
  256.     if not arena then return parts end
  257.  
  258.     local folder = arena:FindFirstChild("Folder") -- FIXED
  259.     if not folder then return parts end
  260.  
  261.     local slapples = folder:FindFirstChild("Slapples")
  262.     if not slapples then return parts end
  263.  
  264.     for _,obj in ipairs(slapples:GetChildren()) do
  265.         local slap = obj:FindFirstChild("Slapple")
  266.         if slap and slap:IsA("BasePart") then
  267.             if slap:FindFirstChildOfClass("TouchTransmitter") then
  268.                 table.insert(parts,slap)
  269.             end
  270.         end
  271.     end
  272.  
  273.     return parts
  274. end
  275.  
  276. local function StartSlapple()
  277.     if slappleThread then return end
  278.  
  279.     slappleThread = task.spawn(function()
  280.         while autoSlapple and running do
  281.             local parts = GetSlappleParts()
  282.  
  283.             for _,part in ipairs(parts) do
  284.                 if not autoSlapple then break end
  285.                 Touch(part)
  286.                 task.wait(0.02)
  287.             end
  288.  
  289.             task.wait(0.1)
  290.         end
  291.         slappleThread=nil
  292.     end)
  293. end
  294.  
  295. local function StopSlapple()
  296.     autoSlapple=false
  297. end
  298.  
  299. --// PLATFORM
  300. local platformPart
  301. local platformTransparency=0
  302.  
  303. local function TogglePlatform(state)
  304.     -- Always clean any existing platform(s) first (handles lost refs / re-executes)
  305.     if platformPart then
  306.         pcall(function() platformPart:Destroy() end)
  307.         platformPart = nil
  308.     end
  309.     for _, v in ipairs(workspace:GetChildren()) do
  310.         if v:IsA("Part") and v.Size == Vector3.new(2048,1,2048) and v.Position == Vector3.new(165.5,4345.37,-22.83) then
  311.             pcall(function() v:Destroy() end)
  312.         end
  313.     end
  314.  
  315.     if state then
  316.         platformPart = Instance.new("Part")
  317.         platformPart.Name = "KillstreakPlatform"
  318.         platformPart.Size = Vector3.new(2048,1,2048)
  319.         platformPart.Position = Vector3.new(165.5,4345.37,-22.83)
  320.         platformPart.Anchored = true
  321.         platformPart.Transparency = platformTransparency
  322.         platformPart.CanCollide = true
  323.         platformPart.Parent = workspace
  324.     end
  325. end
  326.  
  327. --// UI
  328. CheatsTab:CreateToggle({
  329.     Name="Auto Click",
  330.     CurrentValue=false,
  331.     Callback=function(v)
  332.         if v then autoClick=true; StartAutoClick()
  333.         else StopAutoClick() end
  334.     end
  335. })
  336.  
  337. CheatsTab:CreateToggle({Name="FPS Boost",CurrentValue=false,Callback=ApplyFPSBoost})
  338.  
  339. CheatsTab:CreateParagraph({
  340.     Title=" ",
  341.     Content="Disable and re-enable if you had it enabled to get the E button if you are on mobile"
  342. })
  343.  
  344. CheatsTab:CreateToggle({Name="Disable Kill Effect",CurrentValue=false,Callback=ApplyKillBlock})
  345.  
  346. CheatsTab:CreateToggle({
  347.     Name="Auto Slapples",
  348.     CurrentValue=false,
  349.     Callback=function(v)
  350.         autoSlapple=v
  351.         if v then StartSlapple() else StopSlapple() end
  352.     end
  353. })
  354.  
  355. CheatsTab:CreateToggle({Name="Spawn Platform",CurrentValue=false,Callback=TogglePlatform})
  356.  
  357. CheatsTab:CreateInput({
  358.     Name="Platform Transparency (0-1)",
  359.     PlaceholderText="Value...",
  360.     Callback=function(t)
  361.         local n=tonumber(t)
  362.         if n then
  363.             n=math.clamp(n,0,1)
  364.             platformTransparency=n
  365.             if platformPart then platformPart.Transparency=n end
  366.         end
  367.     end
  368. })
  369.  
  370. CheatsTab:CreateSlider({
  371.     Name="Click Delay",
  372.     Range={0,1},
  373.     Increment=0.01,
  374.     CurrentValue=0.1,
  375.     Callback=function(v) delay=v end
  376. })
  377.  
  378. CheatsTab:CreateButton({Name="Manual Click",Callback=FireClicks})
  379.  
  380. --// CREDITS
  381. CreditsTab:CreateParagraph({
  382.     Title="Credits",
  383.     Content="Script created by Mr_3242\nThanks for using the script!"
  384. })
  385.  
  386. CreditsTab:CreateButton({
  387.     Name="Copy TikTok Link",
  388.     Callback=function()
  389.         setclipboard("https://www.tiktok.com/@Mr_3242")
  390.         Notify("Copied","TikTok link copied")
  391.     end
  392. })
  393.  
  394. CreditsTab:CreateButton({
  395.     Name="Copy YouTube Link",
  396.     Callback=function()
  397.         setclipboard("https://www.youtube.com/@Mr_3242.")
  398.         Notify("Copied","YouTube link copied")
  399.     end
  400. })
  401.  
  402. CreditsTab:CreateButton({
  403.     Name="Copy Twitch Link",
  404.     Callback=function()
  405.         setclipboard("https://m.twitch.tv/quantumx_42/home")
  406.         Notify("Copied","Twitch link copied")
  407.     end
  408. })
  409.  
  410. --// UNLOAD
  411. getgenv().KillstreakUnload=function()
  412.     running=false
  413.     StopAutoClick()
  414.     StopSlapple()
  415.     ApplyFPSBoost(false)
  416.     ApplyKillBlock(false)
  417.  
  418.     if platformPart then platformPart:Destroy(); platformPart=nil end
  419.     if killConnection then killConnection:Disconnect() end
  420.     if clickConnection then clickConnection:Disconnect() end
  421.  
  422.     pcall(function() Rayfield:Destroy() end)
  423.     getgenv().KillstreakUnload=nil
  424. end
  425.  
  426. UnloadTab:CreateButton({
  427.     Name="Unload Script",
  428.     Callback=function()
  429.         getgenv().KillstreakUnload()
  430.     end
  431. })
Tags: delta
Advertisement
Add Comment
Please, Sign In to add comment