this script is an assist script, it shows the person who assisted the goal scorer. however, if the goalscorer touches the ball twice, the script will think he scored the goal and he also assisted the goal. can someone help me add something to prevent this so that the same person cannot be the kicker & the assister at the same time?
function onTouch(Brick)
local player = Brick.Parent:findFirstChild("Humanoid")
if (player ~=nil) then
script.Parent.Kicker.Value = player.Parent.Name
wait(5)
script.Parent.Assister.Value = script.Parent.Kicker.Value
end
end
script.Parent.Touched:connect(onTouch)

2 comments
explain what is supposed to happen
if a player touches ball his name will go on the Kicker Value. But if he passes the ball away and another player touches the ball, his name will go on the Assister value and that other player will go on the kicker value. please help