Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how do you make a script that will check how much points you want or you have?

Help me! how do you make a script that will check how much points you want or you have?

2 comments

0

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

0

how do you access the player

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.