Please help with this
Code:
game.ReplicatedStorage.AdminPanelEvents.RankPromotion.OnServerEvent:Connect(function(PlayerToGiveRankTo, Reason, Rank)
print(PlayerToGiveRankTo.."'s has been promoted to "..Rank.."!")
game.Players:FindFirstChild(PlayerToGiveRankTo).leaderstats.Rank.Value = Rank
end)
the error is on the line "game.Players:FindFirstChild(PlayerToGiveRankTo).leaderstats.Rank.Value = Rank"

7 comments
don't try to concatenate the variable
what do you mean?
Can you put your script in a code block?
in a block?
whats the error
someone can please help fix this
Because your using the player isntance. Use PlayerToGiveRankTo.Name