I’m trying to make a variable for a GetPlayerByUserId
function for a function that checks if a value equals a certain number. And I don’t really know about what argument I need for the function.
local coinNumber = game.ServerStorage.CoinNumber
coinNumber.Changed:Connect(function()
if game.ServerStorage.CoinNumber.Value == 10 then
local player = game.Players:GetPlayerByUserId()
end
end)
Any help?