
Key Required

-- By Zous
local player = game.Players.LocalPlayer
local gui = player:WaitForChild("PlayerGui"):WaitForChild("Minigames"):WaitForChild("TugOfWar")
local bar = gui:WaitForChild("Bar")
local green = bar:WaitForChild("Target")
local slider = bar:WaitForChild("Pointer")
local autoPressing = false
local running = false
local VirtualInputManager = game:GetService("VirtualInputManager")
local function pressSpace()
running = true
while autoPressing do
task.wait(0.01)
if slider and green then
local sliderPos = slider.AbsolutePosition
local greenPos = green.AbsolutePosition
local greenSize = green.AbsoluteSize
if sliderPos.X >= greenPos.X and sliderPos.X <= (greenPos.X + greenSize.X) then
VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Space, false, game)
task.wait(0.1)
VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Space, false, game)
task.wait(0.1)
end
end
end
running = false
end
local function checkVisibility()
gui:GetPropertyChangedSignal("Visible"):Connect(function()
if gui.Visible then
autoPressing = true
if not running then
task.spawn(pressSpace)
end
else
autoPressing = false
end
end)
end
checkVisibility()



not working
really? @eseybet
@Zous yeah, i tried but it's not worked
works
doesnt work nig