Is that where the generadorS1 is, it’s not parented to anything but workspace?
Alright, than run it and see if it works.
Nothing, not even a single error
Hmm… I add some print statements like I did here
button.MouseButton1Click:Connect(function(plr)
print("Clicked")
for i,b in pairs(Enemy) do
if plr.Team == b then
print("Plr Is On Team")
if bool.Value == false then
print("Bool is false")
bool.Value = true
Loading.BackgroundColor3 = Color3.new(255, 255, 0)
Loading.Text = "CARREGANDO..."
wait(3)
sound:Play()
Loading.BackgroundColor3 = Color3.new(1, 0.333333, 0)
Loading.Text = "DESATIVO"
button.Text = "RESOLVER"
end
end
end
end)
And tell me what it returned.
Only returned that.
Were you on one of the teams listed in the table, if not than it wouldn’t work.
I was.
Really weird, add a print right below the for loop, and see if that is running or not.
Okay, so try just commenting out the if statement and see if that at-least works.
btw remove plr in between the function(plr) if you haven’t already.
So… I removed the Name from the Team.Name and seems it worked.
OHH MB, Yea no you didn’t need the name. That was my fault sorry, I’m glad you got it done!
I will just try with a different team just to see if the scripts declines it like it should
Alright, anyways thank you for being patient and letting me help you out! Made my day knowing I could help someone out. I suggest making the post solved so people know you fixed it.
I was gonna do that, also very thanks. For any reason, there no youtube thing or others sources that i tried to found.
Yea I’d prob guess it’s because it’s a somewhat specific topic, people cover SurfaceGuis but not really the different ways you have to use them or how they vary from other forms of UI.