![](https://images.gutefrage.net/media/user/ProPlayerE/1711716555547_nmmslarge__0_307_3000_2999_c441bc98603e4540524d7220683217ad.jpg?v=1711716556000)
![](https://images.gutefrage.net/media/user/expusia548/1717338044781_nmmslarge__338_0_700_700_090fb5150e80f48b07c4239510d327ef.jpg?v=1717338045000)
Hier einmal der code überarbeitet für dich
local A = game.Workspace.A
local B = game.Workspace.B
local C = game.Workspace.C
local c = 0
local q = 0
local o = false
A.Touched:Connect(function(D)
q = 1
o = true
end)
B.Touched:Connect(function(E)
q = 2
o = true
end)
C.Touched:Connect(function(F)
q = 1
o = true
end)
while true do
local d = game.StarterGui.ScreenGui.TextLabel
if o == true then
c = c + q
print(c)
o = false -- Reset `o` to false after updating `c`
end
wait(1)
d.Text = tostring(c)
end