local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local old = playerGui:FindFirstChild("AdminWinUI4")
if old then old:Destroy() end
local isSpamming = false
local spamThread = nil
local totalWins = 0
local winsPerSec = 0
local lastWinCount = 0
local lastWinTime = tick()
local toggleIndex = 0
local selectedRoomA = 0
local selectedRoomB = 1
-- Build room list
local rooms = workspace:FindFirstChild("Rooms")
local roomList = {}
do
local children = rooms:GetChildren()
table.sort(children, function(a,b) return (tonumber(a.Name) or 0) < (tonumber(b.Name) or 0) end)
for _, room in ipairs(children) do
local main = room:FindFirstChild("Main")
local win = room:FindFirstChild("Win")
if win then
roomList[#roomList+1] = {
name = room.Name,
cost = main and main:GetAttribute("_Cost") or 0,
win = win,
room = room
}
end
end
end
local function getWinParts()
local a = roomList[selectedRoomA + 1]
local b = roomList[selectedRoomB + 1]
return a and a.win, b and b.win
end
-- ======================== UI ========================
local gui = Instance.new("ScreenGui")
gui.Name = "AdminWinUI4"
gui.ResetOnSpawn = false
gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
gui.Parent = playerGui
local frame = Instance.new("Frame")
frame.Name = "Main"
frame.Size = UDim2.new(0, 340, 0, 420)
frame.Position = UDim2.new(0.5, -170, 0.5, -210)
frame.BackgroundColor3 = Color3.fromRGB(14, 14, 20)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
frame.Parent = gui
Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 14)
local stroke = Instance.new("UIStroke", frame)
stroke.Thickness = 2
stroke.Color = Color3.fromRGB(120, 60, 255)
-- Title bar
local titleBar = Instance.new("Frame", frame)
titleBar.Size = UDim2.new(1, 0, 0, 44)
titleBar.BackgroundColor3 = Color3.fromRGB(22, 14, 44)
titleBar.BorderSizePixel = 0
Instance.new("UICorner", titleBar).CornerRadius = UDim.new(0, 14)
local tf = Instance.new("Frame", titleBar)
tf.Size = UDim2.new(1, 0, 0, 14)
tf.Position = UDim2.new(0, 0, 1, -14)
tf.BackgroundColor3 = Color3.fromRGB(22, 14, 44)
tf.BorderSizePixel = 0
local titleTxt = Instance.new("TextLabel", titleBar)
titleTxt.Size = UDim2.new(1, -50, 1, 0)
titleTxt.Position = UDim2.new(0, 14, 0, 0)
titleTxt.BackgroundTransparency = 1
titleTxt.Text = "👑 Win Teleport Admin"
titleTxt.TextColor3 = Color3.fromRGB(220, 200, 255)
titleTxt.TextSize = 14
titleTxt.Font = Enum.Font.GothamBold
titleTxt.TextXAlignment = Enum.TextXAlignment.Left
local closeBtn = Instance.new("TextButton", titleBar)
closeBtn.Size = UDim2.new(0, 28, 0, 28)
closeBtn.Position = UDim2.new(1, -36, 0.5, -14)
closeBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 70)
closeBtn.Text = "✕"
closeBtn.TextColor3 = Color3.fromRGB(255,255,255)
closeBtn.TextSize = 12
closeBtn.Font = Enum.Font.GothamBold
closeBtn.BorderSizePixel = 0
Instance.new("UICorner", closeBtn).CornerRadius = UDim.new(0, 6)
closeBtn.MouseButton1Click:Connect(function()
if spamThread then task.cancel(spamThread) end
gui:Destroy()
end)
-- Wins display
local winsBox = Instance.new("Frame", frame)
winsBox.Size = UDim2.new(1, -20, 0, 38)
winsBox.Position = UDim2.new(0, 10, 0, 54)
winsBox.BackgroundColor3 = Color3.fromRGB(22, 22, 32)
winsBox.BorderSizePixel = 0
Instance.new("UICorner", winsBox).CornerRadius = UDim.new(0, 8)
local winsLbl = Instance.new("TextLabel", winsBox)
winsLbl.Size = UDim2.new(1, 0, 1, 0)
winsLbl.BackgroundTransparency = 1
winsLbl.Text = "🏆 Wins: " .. tostring(player.leaderstats.Wins.Value)
winsLbl.TextColor3 = Color3.fromRGB(255, 210, 60)
winsLbl.TextSize = 14
winsLbl.Font = Enum.Font.GothamBold
-- Stats
local statsLbl = Instance.new("TextLabel", frame)
statsLbl.Size = UDim2.new(1, -20, 0, 20)
statsLbl.Position = UDim2.new(0, 10, 0, 100)
statsLbl.BackgroundTransparency = 1
statsLbl.Text = "➕ Session: 0 | ⚡ 0 wins/s"
statsLbl.TextColor3 = Color3.fromRGB(140, 255, 180)
statsLbl.TextSize = 11
statsLbl.Font = Enum.Font.Gotham
-- Room selector label
local roomSelLbl = Instance.new("TextLabel", frame)
roomSelLbl.Size = UDim2.new(1, -20, 0, 20)
roomSelLbl.Position = UDim2.new(0, 10, 0, 126)
roomSelLbl.BackgroundTransparency = 1
roomSelLbl.Text = "🏠 Räume auswählen (2 zum Alternieren):"
roomSelLbl.TextColor3 = Color3.fromRGB(180, 180, 220)
roomSelLbl.TextSize = 11
roomSelLbl.Font = Enum.Font.GothamBold
roomSelLbl.TextXAlignment = Enum.TextXAlignment.Left
-- Selected rooms display
local selDisplay = Instance.new("TextLabel", frame)
selDisplay.Size = UDim2.new(1, -20, 0, 20)
selDisplay.Position = UDim2.new(0, 10, 0, 148)
selDisplay.BackgroundTransparency = 1
selDisplay.Text = "✅ Ausgewählt: Room 0 (Lvl 1) ↔ Room 1 (Lvl 25)"
selDisplay.TextColor3 = Color3.fromRGB(100, 220, 255)
selDisplay.TextSize = 10
selDisplay.Font = Enum.Font.Gotham
selDisplay.TextXAlignment = Enum.TextXAlignment.Left
local function updateSelDisplay()
local a = roomList[selectedRoomA + 1]
local b = roomList[selectedRoomB + 1]
selDisplay.Text = "✅ Room " .. (a and a.name or "?") .. " (Lvl " .. (a and a.cost or "?") .. ") ↔ Room " .. (b and b.name or "?") .. " (Lvl " .. (b and b.cost or "?") .. ")"
end
-- Scrolling room list
local scrollFrame = Instance.new("ScrollingFrame", frame)
scrollFrame.Size = UDim2.new(1, -20, 0, 170)
scrollFrame.Position = UDim2.new(0, 10, 0, 172)
scrollFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 28)
scrollFrame.BorderSizePixel = 0
scrollFrame.ScrollBarThickness = 4
scrollFrame.ScrollBarImageColor3 = Color3.fromRGB(100, 60, 220)
scrollFrame.CanvasSize = UDim2.new(0, 0, 0, #roomList * 36)
Instance.new("UICorner", scrollFrame).CornerRadius = UDim.new(0, 8)
local listLayout = Instance.new("UIListLayout", scrollFrame)
listLayout.SortOrder = Enum.SortOrder.LayoutOrder
listLayout.Padding = UDim.new(0, 4)
local roomButtons = {}
local clickStep = 0
local function refreshButtons()
for i, btn in ipairs(roomButtons) do
local isA = (i - 1) == selectedRoomA
local isB = (i - 1) == selectedRoomB
if isA and isB then
btn.BackgroundColor3 = Color3.fromRGB(60, 140, 200)
elseif isA then
btn.BackgroundColor3 = Color3.fromRGB(50, 160, 90)
elseif isB then
btn.BackgroundColor3 = Color3.fromRGB(160, 80, 200)
else
btn.BackgroundColor3 = Color3.fromRGB(28, 28, 42)
end
end
updateSelDisplay()
end
for i, roomData in ipairs(roomList) do
local btn = Instance.new("TextButton", scrollFrame)
btn.Size = UDim2.new(1, -8, 0, 30)
btn.BackgroundColor3 = Color3.fromRGB(28, 28, 42)
btn.BorderSizePixel = 0
btn.LayoutOrder = i
btn.Text = "Room " .. roomData.name .. " | Level " .. roomData.cost
btn.TextColor3 = Color3.fromRGB(210, 210, 230)
btn.TextSize = 11
btn.Font = Enum.Font.Gotham
btn.TextXAlignment = Enum.TextXAlignment.Left
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
local pad = Instance.new("UIPadding", btn)
pad.PaddingLeft = UDim.new(0, 10)
btn.MouseButton1Click:Connect(function()
local idx = i - 1
if clickStep % 2 == 0 then
selectedRoomA = idx
else
selectedRoomB = idx
end
clickStep = clickStep + 1
if selectedRoomA == selectedRoomB then
selectedRoomB = (selectedRoomA + 1) % #roomList
clickStep = 0
end
refreshButtons()
end)
roomButtons[i] = btn
end
-- Hint
local hintLbl = Instance.new("TextLabel", frame)
hintLbl.Size = UDim2.new(1, -20, 0, 16)
hintLbl.Position = UDim2.new(0, 10, 0, 348)
hintLbl.BackgroundTransparency = 1
hintLbl.Text = "💡 1. Klick = Grün (A), 2. Klick = Lila (B)"
hintLbl.TextColor3 = Color3.fromRGB(130, 130, 160)
hintLbl.TextSize = 10
hintLbl.Font = Enum.Font.Gotham
-- Status
local statusLbl = Instance.new("TextLabel", frame)
statusLbl.Size = UDim2.new(1, -20, 0, 18)
statusLbl.Position = UDim2.new(0, 10, 0, 366)
statusLbl.BackgroundTransparency = 1
statusLbl.Text = "⏸ Gestoppt"
statusLbl.TextColor3 = Color3.fromRGB(200, 90, 90)
statusLbl.TextSize = 11
statusLbl.Font = Enum.Font.GothamBold
-- Toggle button
local toggleBtn = Instance.new("TextButton", frame)
toggleBtn.Size = UDim2.new(1, -20, 0, 38)
toggleBtn.Position = UDim2.new(0, 10, 0, 376)
toggleBtn.BackgroundColor3 = Color3.fromRGB(50, 170, 90)
toggleBtn.Text = "▶ WIN SPAM STARTEN"
toggleBtn.TextColor3 = Color3.fromRGB(255,255,255)
toggleBtn.TextSize = 13
toggleBtn.Font = Enum.Font.GothamBold
toggleBtn.BorderSizePixel = 0
Instance.new("UICorner", toggleBtn).CornerRadius = UDim.new(0, 10)
-- Live updater
task.spawn(function()
while gui.Parent do
winsLbl.Text = "🏆 Wins: " .. tostring(math.floor(player.leaderstats.Wins.Value))
local now = tick()
local dt = now - lastWinTime
if dt >= 1 then
winsPerSec = math.floor((player.leaderstats.Wins.Value - lastWinCount) / dt)
lastWinCount = player.leaderstats.Wins.Value
lastWinTime = now
end
statsLbl.Text = "➕ Session: " .. tostring(totalWins) .. " | ⚡ " .. tostring(math.max(0, winsPerSec)) .. " wins/s"
task.wait(0.1)
end
end)
-- Rainbow border
task.spawn(function()
local h = 0
while gui.Parent do
h = (h + 2) % 360
stroke.Color = Color3.fromHSV(h/360, 0.85, 1)
task.wait(0.04)
end
end)
-- Spam
local function startSpam()
local winA, winB = getWinParts()
if not winA then statusLbl.Text = "❌ Kein Win Part!" return end
if not winB then winB = winA end
isSpamming = true
toggleBtn.BackgroundColor3 = Color3.fromRGB(190, 50, 60)
toggleBtn.Text = "⏹ STOPPEN"
statusLbl.Text = "🟢 Läuft..."
statusLbl.TextColor3 = Color3.fromRGB(80, 255, 140)
lastWinCount = player.leaderstats.Wins.Value
lastWinTime = tick()
spamThread = task.spawn(function()
while isSpamming do
local char = player.Character
local hrp = char and char:FindFirstChild("HumanoidRootPart")
if hrp then
local before = player.leaderstats.Wins.Value
local wa, wb = getWinParts()
local target = (toggleIndex % 2 == 0) and wa or wb
toggleIndex = toggleIndex + 1
hrp.CFrame = target.CFrame + Vector3.new(0, 3, 0)
task.wait(0.06)
local gained = player.leaderstats.Wins.Value - before
if gained > 0 then totalWins = totalWins + gained end
else
task.wait(0.1)
end
end
end)
end
local function stopSpam()
isSpamming = false
if spamThread then task.cancel(spamThread) spamThread = nil end
toggleBtn.BackgroundColor3 = Color3.fromRGB(50, 170, 90)
toggleBtn.Text = "▶ WIN SPAM STARTEN"
statusLbl.Text = "⏸ Gestoppt"
statusLbl.TextColor3 = Color3.fromRGB(200, 90, 90)
end
toggleBtn.MouseButton1Click:Connect(function()
if isSpamming then stopSpam() else startSpam() end
end)
refreshButtons()This Script is a Win Farm Sript For [FIXES]+1 Shrink per Step.
No comments yet. Be the first to comment!
1local Players = game:GetService("Players")
2local player = Players.LocalPlayer
3local playerGui = player:WaitForChild("PlayerGui")
4
5local old = playerGui:FindFirstChild("AdminWinUI4")
6if old then old:Destroy() end
7
8local isSpamming = false
9local spamThread = nil
10local totalWins = 0
11local winsPerSec = 0
12local lastWinCount = 0
13local lastWinTime = tick()
14local toggleIndex = 0
15local selectedRoomA = 0
16local selectedRoomB = 1
17
18-- Build room list
19local rooms = workspace:FindFirstChild("Rooms")
20local roomList = {}
21do
22 local children = rooms:GetChildren()
23 table.sort(children, function(a,b) return (tonumber(a.Name) or 0) < (tonumber(b.Name) or 0) end)
24 for _, room in ipairs(children) do
25 local main = room:FindFirstChild("Main")
26 local win = room:FindFirstChild("Win")
27 if win then
28 roomList[#roomList+1] = {
29 name = room.Name,
30 cost = main and main:GetAttribute("_Cost") or 0,
31 win = win,
32 room = room
33 }
34 end
35 end
36end
37
38local function getWinParts()
39 local a = roomList[selectedRoomA + 1]
40 local b = roomList[selectedRoomB + 1]
41 return a and a.win, b and b.win
42end
43
44-- ======================== UI ========================
45local gui = Instance.new("ScreenGui")
46gui.Name = "AdminWinUI4"
47gui.ResetOnSpawn = false
48gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
49gui.Parent = playerGui
50
51local frame = Instance.new("Frame")
52frame.Name = "Main"
53frame.Size = UDim2.new(0, 340, 0, 420)
54frame.Position = UDim2.new(0.5, -170, 0.5, -210)
55frame.BackgroundColor3 = Color3.fromRGB(14, 14, 20)
56frame.BorderSizePixel = 0
57frame.Active = true
58frame.Draggable = true
59frame.Parent = gui
60Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 14)
61
62local stroke = Instance.new("UIStroke", frame)
63stroke.Thickness = 2
64stroke.Color = Color3.fromRGB(120, 60, 255)
65
66-- Title bar
67local titleBar = Instance.new("Frame", frame)
68titleBar.Size = UDim2.new(1, 0, 0, 44)
69titleBar.BackgroundColor3 = Color3.fromRGB(22, 14, 44)
70titleBar.BorderSizePixel = 0
71Instance.new("UICorner", titleBar).CornerRadius = UDim.new(0, 14)
72local tf = Instance.new("Frame", titleBar)
73tf.Size = UDim2.new(1, 0, 0, 14)
74tf.Position = UDim2.new(0, 0, 1, -14)
75tf.BackgroundColor3 = Color3.fromRGB(22, 14, 44)
76tf.BorderSizePixel = 0
77
78local titleTxt = Instance.new("TextLabel", titleBar)
79titleTxt.Size = UDim2.new(1, -50, 1, 0)
80titleTxt.Position = UDim2.new(0, 14, 0, 0)
81titleTxt.BackgroundTransparency = 1
82titleTxt.Text = "👑 Win Teleport Admin"
83titleTxt.TextColor3 = Color3.fromRGB(220, 200, 255)
84titleTxt.TextSize = 14
85titleTxt.Font = Enum.Font.GothamBold
86titleTxt.TextXAlignment = Enum.TextXAlignment.Left
87
88local closeBtn = Instance.new("TextButton", titleBar)
89closeBtn.Size = UDim2.new(0, 28, 0, 28)
90closeBtn.Position = UDim2.new(1, -36, 0.5, -14)
91closeBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 70)
92closeBtn.Text = "✕"
93closeBtn.TextColor3 = Color3.fromRGB(255,255,255)
94closeBtn.TextSize = 12
95closeBtn.Font = Enum.Font.GothamBold
96closeBtn.BorderSizePixel = 0
97Instance.new("UICorner", closeBtn).CornerRadius = UDim.new(0, 6)
98closeBtn.MouseButton1Click:Connect(function()
99 if spamThread then task.cancel(spamThread) end
100 gui:Destroy()
101end)
102
103-- Wins display
104local winsBox = Instance.new("Frame", frame)
105winsBox.Size = UDim2.new(1, -20, 0, 38)
106winsBox.Position = UDim2.new(0, 10, 0, 54)
107winsBox.BackgroundColor3 = Color3.fromRGB(22, 22, 32)
108winsBox.BorderSizePixel = 0
109Instance.new("UICorner", winsBox).CornerRadius = UDim.new(0, 8)
110local winsLbl = Instance.new("TextLabel", winsBox)
111winsLbl.Size = UDim2.new(1, 0, 1, 0)
112winsLbl.BackgroundTransparency = 1
113winsLbl.Text = "🏆 Wins: " .. tostring(player.leaderstats.Wins.Value)
114winsLbl.TextColor3 = Color3.fromRGB(255, 210, 60)
115winsLbl.TextSize = 14
116winsLbl.Font = Enum.Font.GothamBold
117
118-- Stats
119local statsLbl = Instance.new("TextLabel", frame)
120statsLbl.Size = UDim2.new(1, -20, 0, 20)
121statsLbl.Position = UDim2.new(0, 10, 0, 100)
122statsLbl.BackgroundTransparency = 1
123statsLbl.Text = "➕ Session: 0 | ⚡ 0 wins/s"
124statsLbl.TextColor3 = Color3.fromRGB(140, 255, 180)
125statsLbl.TextSize = 11
126statsLbl.Font = Enum.Font.Gotham
127
128-- Room selector label
129local roomSelLbl = Instance.new("TextLabel", frame)
130roomSelLbl.Size = UDim2.new(1, -20, 0, 20)
131roomSelLbl.Position = UDim2.new(0, 10, 0, 126)
132roomSelLbl.BackgroundTransparency = 1
133roomSelLbl.Text = "🏠 Räume auswählen (2 zum Alternieren):"
134roomSelLbl.TextColor3 = Color3.fromRGB(180, 180, 220)
135roomSelLbl.TextSize = 11
136roomSelLbl.Font = Enum.Font.GothamBold
137roomSelLbl.TextXAlignment = Enum.TextXAlignment.Left
138
139-- Selected rooms display
140local selDisplay = Instance.new("TextLabel", frame)
141selDisplay.Size = UDim2.new(1, -20, 0, 20)
142selDisplay.Position = UDim2.new(0, 10, 0, 148)
143selDisplay.BackgroundTransparency = 1
144selDisplay.Text = "✅ Ausgewählt: Room 0 (Lvl 1) ↔ Room 1 (Lvl 25)"
145selDisplay.TextColor3 = Color3.fromRGB(100, 220, 255)
146selDisplay.TextSize = 10
147selDisplay.Font = Enum.Font.Gotham
148selDisplay.TextXAlignment = Enum.TextXAlignment.Left
149
150local function updateSelDisplay()
151 local a = roomList[selectedRoomA + 1]
152 local b = roomList[selectedRoomB + 1]
153 selDisplay.Text = "✅ Room " .. (a and a.name or "?") .. " (Lvl " .. (a and a.cost or "?") .. ") ↔ Room " .. (b and b.name or "?") .. " (Lvl " .. (b and b.cost or "?") .. ")"
154end
155
156-- Scrolling room list
157local scrollFrame = Instance.new("ScrollingFrame", frame)
158scrollFrame.Size = UDim2.new(1, -20, 0, 170)
159scrollFrame.Position = UDim2.new(0, 10, 0, 172)
160scrollFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 28)
161scrollFrame.BorderSizePixel = 0
162scrollFrame.ScrollBarThickness = 4
163scrollFrame.ScrollBarImageColor3 = Color3.fromRGB(100, 60, 220)
164scrollFrame.CanvasSize = UDim2.new(0, 0, 0, #roomList * 36)
165Instance.new("UICorner", scrollFrame).CornerRadius = UDim.new(0, 8)
166
167local listLayout = Instance.new("UIListLayout", scrollFrame)
168listLayout.SortOrder = Enum.SortOrder.LayoutOrder
169listLayout.Padding = UDim.new(0, 4)
170
171local roomButtons = {}
172local clickStep = 0
173
174local function refreshButtons()
175 for i, btn in ipairs(roomButtons) do
176 local isA = (i - 1) == selectedRoomA
177 local isB = (i - 1) == selectedRoomB
178 if isA and isB then
179 btn.BackgroundColor3 = Color3.fromRGB(60, 140, 200)
180 elseif isA then
181 btn.BackgroundColor3 = Color3.fromRGB(50, 160, 90)
182 elseif isB then
183 btn.BackgroundColor3 = Color3.fromRGB(160, 80, 200)
184 else
185 btn.BackgroundColor3 = Color3.fromRGB(28, 28, 42)
186 end
187 end
188 updateSelDisplay()
189end
190
191for i, roomData in ipairs(roomList) do
192 local btn = Instance.new("TextButton", scrollFrame)
193 btn.Size = UDim2.new(1, -8, 0, 30)
194 btn.BackgroundColor3 = Color3.fromRGB(28, 28, 42)
195 btn.BorderSizePixel = 0
196 btn.LayoutOrder = i
197 btn.Text = "Room " .. roomData.name .. " | Level " .. roomData.cost
198 btn.TextColor3 = Color3.fromRGB(210, 210, 230)
199 btn.TextSize = 11
200 btn.Font = Enum.Font.Gotham
201 btn.TextXAlignment = Enum.TextXAlignment.Left
202 Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
203 local pad = Instance.new("UIPadding", btn)
204 pad.PaddingLeft = UDim.new(0, 10)
205
206 btn.MouseButton1Click:Connect(function()
207 local idx = i - 1
208 if clickStep % 2 == 0 then
209 selectedRoomA = idx
210 else
211 selectedRoomB = idx
212 end
213 clickStep = clickStep + 1
214 if selectedRoomA == selectedRoomB then
215 selectedRoomB = (selectedRoomA + 1) % #roomList
216 clickStep = 0
217 end
218 refreshButtons()
219 end)
220
221 roomButtons[i] = btn
222end
223
224-- Hint
225local hintLbl = Instance.new("TextLabel", frame)
226hintLbl.Size = UDim2.new(1, -20, 0, 16)
227hintLbl.Position = UDim2.new(0, 10, 0, 348)
228hintLbl.BackgroundTransparency = 1
229hintLbl.Text = "💡 1. Klick = Grün (A), 2. Klick = Lila (B)"
230hintLbl.TextColor3 = Color3.fromRGB(130, 130, 160)
231hintLbl.TextSize = 10
232hintLbl.Font = Enum.Font.Gotham
233
234-- Status
235local statusLbl = Instance.new("TextLabel", frame)
236statusLbl.Size = UDim2.new(1, -20, 0, 18)
237statusLbl.Position = UDim2.new(0, 10, 0, 366)
238statusLbl.BackgroundTransparency = 1
239statusLbl.Text = "⏸ Gestoppt"
240statusLbl.TextColor3 = Color3.fromRGB(200, 90, 90)
241statusLbl.TextSize = 11
242statusLbl.Font = Enum.Font.GothamBold
243
244-- Toggle button
245local toggleBtn = Instance.new("TextButton", frame)
246toggleBtn.Size = UDim2.new(1, -20, 0, 38)
247toggleBtn.Position = UDim2.new(0, 10, 0, 376)
248toggleBtn.BackgroundColor3 = Color3.fromRGB(50, 170, 90)
249toggleBtn.Text = "▶ WIN SPAM STARTEN"
250toggleBtn.TextColor3 = Color3.fromRGB(255,255,255)
251toggleBtn.TextSize = 13
252toggleBtn.Font = Enum.Font.GothamBold
253toggleBtn.BorderSizePixel = 0
254Instance.new("UICorner", toggleBtn).CornerRadius = UDim.new(0, 10)
255
256-- Live updater
257task.spawn(function()
258 while gui.Parent do
259 winsLbl.Text = "🏆 Wins: " .. tostring(math.floor(player.leaderstats.Wins.Value))
260 local now = tick()
261 local dt = now - lastWinTime
262 if dt >= 1 then
263 winsPerSec = math.floor((player.leaderstats.Wins.Value - lastWinCount) / dt)
264 lastWinCount = player.leaderstats.Wins.Value
265 lastWinTime = now
266 end
267 statsLbl.Text = "➕ Session: " .. tostring(totalWins) .. " | ⚡ " .. tostring(math.max(0, winsPerSec)) .. " wins/s"
268 task.wait(0.1)
269 end
270end)
271
272-- Rainbow border
273task.spawn(function()
274 local h = 0
275 while gui.Parent do
276 h = (h + 2) % 360
277 stroke.Color = Color3.fromHSV(h/360, 0.85, 1)
278 task.wait(0.04)
279 end
280end)
281
282-- Spam
283local function startSpam()
284 local winA, winB = getWinParts()
285 if not winA then statusLbl.Text = "❌ Kein Win Part!" return end
286 if not winB then winB = winA end
287
288 isSpamming = true
289 toggleBtn.BackgroundColor3 = Color3.fromRGB(190, 50, 60)
290 toggleBtn.Text = "⏹ STOPPEN"
291 statusLbl.Text = "🟢 Läuft..."
292 statusLbl.TextColor3 = Color3.fromRGB(80, 255, 140)
293 lastWinCount = player.leaderstats.Wins.Value
294 lastWinTime = tick()
295
296 spamThread = task.spawn(function()
297 while isSpamming do
298 local char = player.Character
299 local hrp = char and char:FindFirstChild("HumanoidRootPart")
300 if hrp then
301 local before = player.leaderstats.Wins.Value
302 local wa, wb = getWinParts()
303 local target = (toggleIndex % 2 == 0) and wa or wb
304 toggleIndex = toggleIndex + 1
305 hrp.CFrame = target.CFrame + Vector3.new(0, 3, 0)
306 task.wait(0.06)
307 local gained = player.leaderstats.Wins.Value - before
308 if gained > 0 then totalWins = totalWins + gained end
309 else
310 task.wait(0.1)
311 end
312 end
313 end)
314end
315
316local function stopSpam()
317 isSpamming = false
318 if spamThread then task.cancel(spamThread) spamThread = nil end
319 toggleBtn.BackgroundColor3 = Color3.fromRGB(50, 170, 90)
320 toggleBtn.Text = "▶ WIN SPAM STARTEN"
321 statusLbl.Text = "⏸ Gestoppt"
322 statusLbl.TextColor3 = Color3.fromRGB(200, 90, 90)
323end
324
325toggleBtn.MouseButton1Click:Connect(function()
326 if isSpamming then stopSpam() else startSpam() end
327end)
328
329refreshButtons()