I feel dumb for not knowing how to properly format multiplication in Lua but this should be simple for anyone else to answer
local T1 = game.Teams["Blue Bombers"]
local T2 = game.Teams["Red Raiders"]
--teams and stuff obv
while workspace.GameMode.KOTH.Value == true do --checks to see if gamemodes is KOTH
repeat
T1.Points.Value = (10 * T1.Cap.Value) --multiplies the Number of people capping the point on team one by 10 every 5 seconds
T2.Points.Value = (10 * T2.Cap.Value) --same thing but for team 2
wait(5)
until workspace.GameMode.KOTH.Value == false --repeats until the round is over
end
okay so i tweaked my code a little and implemented this and worked absolutely fine so thanks for the help!
local T1 = game.Teams["Blue Bombers"]
local T2 = game.Teams["Red Raiders"]
while wait(1) do
if workspace.GameMode.KOTH.Value then
repeat
T1.Points.Value = T1.Points.Value + T1.Cap.Value * 10
T2.Points.Value = T2.Points.Value + T2.Cap.Value * 10
wait(1)
until workspace.GameMode.KOTH.Value == false
end
end