hi thanks i have a small problem i made a rating system for everyplayer end when the game is over i the player can rate foreexaple map and the number of rates the map gets it gets into the map here is the detection code.
for i,surface in pairs(surfacess) do
local winnerscore={}
table.insert(winnerscore,surface.Score.Value)
local numberscore=max(winnerscore)
if numberscore==surface.Score.Value then
print("result")
print(surface)
print(surface.Score.Value)
end
surface:Destroy()
end
bu where should i put it i have this code before the detection and this is fired for every player but i only want the detection code to be run once.
remotemove.OnServerEvent:Connect(function(plr)
-- gets ratings and puts ut into the map
end
and when i put it after this code the detection will run first because its waiting for a fireevents
