F1 and F2 are variables with player names in them, I have Function OnTouch(hit) how would I put on the next line if (player that hit it) = F1 or F2?
You can get the Player Name from Players. This could also act as a system to make sure only players touch it and other bricks
function OnTouch(hit) if game.Players:FindFirstChild(hit.Parent.Name) then player = game.Players:FindFirstChild(hit.Parent.Name)
After this you could use this code to check your variables.
if player.Name == F1 or player.Name == F2 then