-- LocalScript (put in StarterPlayerScripts or a ScreenGui) local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local TicketEvent = ReplicatedStorage:WaitForChild("TicketEvent") local PhoneEvent = ReplicatedStorage:WaitForChild("PhoneEvent") -- Create ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "SpammerGui" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui -- Frame local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 240, 0, 110) frame.Position = UDim2.new(0.5, -120, 0.5, -55) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.BorderSizePixel = 0 frame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = frame -- Title local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundTransparency = 1 title.Text = "All Events Loop" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Font = Enum.Font.GothamBold title.TextSize = 16 title.Parent = frame -- Toggle Button local button = Instance.new("TextButton") button.Size = UDim2.new(0.8, 0, 0, 45) button.Position = UDim2.new(0.1, 0, 0.4, 0) button.BackgroundColor3 = Color3.fromRGB(0, 170, 0) button.Text = "START LOOP" button.TextColor3 = Color3.fromRGB(255, 255, 255) button.Font = Enum.Font.GothamBold button.TextSize = 15 button.Parent = frame local buttonCorner = Instance.new("UICorner") buttonCorner.CornerRadius = UDim.new(0, 6) buttonCorner.Parent = button -- Loop logic local looping = false local function fireAll() -- Ticket TicketEvent:FireServer( "Create", "testez si eu aceasta, nu am problema este okay" ) -- Police PhoneEvent:FireServer( "CallEmergency", "Police", "v ati dat?", "hai dativa" ) -- Ambulance PhoneEvent:FireServer( "CallEmergency", "Ambulance", "dati va la oparte pentru bossu", "STOP JAF" ) -- Fire PhoneEvent:FireServer( "CallEmergency", "Fire", "Hai v-ati dat?", "LA OPARTE CA VINE BOSU" ) end button.MouseButton1Click:Connect(function() if not looping then looping = true button.Text = "STOP LOOP" button.BackgroundColor3 = Color3.fromRGB(200, 50, 50) task.spawn(function() while looping do fireAll() -- no wait = no cooldown end end) else looping = false button.Text = "START LOOP" button.BackgroundColor3 = Color3.fromRGB(0, 170, 0) end end)