I have two problems; A) Roblox Studio crashes when I try to test the game (It works if I remove the script that is at the bottom) and B) When a player captures the flag in the middle of my game, I want the GUI to start adding points for what ever team captured it, which is does not currently.
Heres the code;
flag = game.Workspace.Flag.Flag
B = script.Parent.Blue
R = script.Parent.Red
while true do
if flag.BrickColor == "Bright blue" then
wait(1)
B.Text = "Blue:"..1+B.Text
if flag.BrickColor == "Bright red" then
wait(1)
R.Text = "Red:"..1+B.Text
end
end
end
B is the GUI responsible for the amount of points blue team has and R is for the amount of points for the red team.
Please help!
