How would I go about getting leaderstats from a player in the workspace

I’m basically making a tycoon where there is a leaderstat which organizes which tycoon each player is in, accessed with a touch event. The thing that touches it is in the player in the workspace, not the player in the actual players service. I want to access the player from the players service from the player in the workspace service. How would I go about this?

Use Players:GetPlayerFromCharacter(character) to get a player from a character model.

https://developer.roblox.com/en-us/api-reference/function/Players/GetPlayerFromCharacter

2 Likes