This code is pretty easy, but doesn't work for some reason D:
player = script.Parent.Parent
player.leaderstats.Stage.Value.Changed:connect(function()
game:GetService("PointsService"):AwardPoints(player.userId, math.random(1,10))
end)
--[[OUTPUT:
attempt to index field 'Value' (a number value)
]]
Also, this code won't even make the message appear D:
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == ":CheckPoints" then
a = Instance.new("Message")
a.Parent = player
a.Text = "There are ".. game:GetService("PointsService"):GetAwardablePoints().." Player Points available"
elseif msg == ":CheckMyPoints" then
a = Instance.new("Message")
a.Parent = player
gamebalance = game:GetService("PointsService"):GetGamePointBalance(player.userId)
totalpoints = game:GetService("PointsService"):GetPointBalance(player.userId)
a.Text = "You Earnt "..gamebalance.." Points in this game and a total of "..totalpoints.." Player Points"
end
end)
end)

2 comments
Message script: Try making it into local script and make "a" Parent game.Workspace.CurrentCamera (LocalPlayer's camera)
Can't. Player Points