local debounce = false
script.Parent.Touched:connect(function(hit)
if not debounce then
debounce = true
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
player.PlayerGui.CapGui.BeingCapped.Text = "Blue Noobs base is being captured!"
for i = 0, 100, 1 do
wait(0.2)
player.PlayerGui.CapGui.CapPercentage.Text = i .. "%"
player.PlayerGui.CapGui.CapAnimation.Size = UDim2.new(0, i, 0, 30)
end
if player.PlayerGui.CapGui.CapPercentage.Text == "100%" then
player.PlayerGui.CapGui.BeingCapped.Text = "Blue Noobs base has been captured!"
end
debounce = false
end
end)
This only effects the player that steps on the brick. How do I edit it to make it so that when any player steps on it, the GUI shows up for all players? I've tried putting the GUI in StarterGui and it doesn't work.

10 comments
Doesn't work...
Try Now..
Nope...
What is the output?
It just ups the first
forloop by 1 and then stops.What line?
12
Oh, There were Two "i=" statements. Try it now.
Thanks for posting all of my Questions as -1. That was real mature.
Don't just post code. https://scriptinghelpers.org/help/how-post-good-questions-answers