Help me! how do you make a script that will check how much points you want or you have?
COMMUNITY QUESTION
how do you make a script that will check how much points you want or you have?
1 answer
This will create a Number Value inside a script and that value will show you how much Points do you have!
game.Players.PlayerAdded:Connect(function(player)
local NumberValue = Instance.new("NumberValue")
NumberValue.Parent = script
local leaderstats = player:WaitForChild("leaderstats")
local PointsValue = leaderstats:WaitForChild("Points")-- Name of currency (Points)
NumberValue.Value = PointsValue.Value
end)
1 comment
0
facepalm
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Access the player data and put it into a thing you can see like text label, leaderboard, or print
how do you access the player