so, here is the code: (note that the code is in separate scripts, its server -> local I just took them out separately)
--server
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
spawn(function()
--note WT is declared outside the function globally at the top of the code
for i = 0, 5 do
wait(1)
WT = WT + 1
end
WT = 0
end)
spawn(function()
event:InvokeClient(player, WT)
end)
--client
event.OnClientInvoke = function(player, WT)
ACE = WT
end
the issue is, when I print ACE I get a nil value, and if I print WT I do too. so the number values of 5-1 are not being received by the callback function, am I using this wrongly or am I missing something?

1 comment
oh, my mistake- thanks for the answer!