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

I can't find a way for people to get Player Points when they click a block?

No one has bought any of my stuff yet but, I heard about the new infinite PP system. I have also used ClickDetector on my block and I have attempted to connect to a script which will give them player points.

1 answer

script.Parent.MouseClick:connect(function(playerWhoClicked)
	local Reward = 1
	if playerWhoClicked.Character:findFirstChild("Humanoid") then
	game:GetService("PointsService"):AwardPoints(playerWhoClicked.userId, Reward)
	end
end)

-- I have not tested this. Put this in a Click Detector.

3 comments

0

Why did you downvote me? It works!

0

Thanks, I'll try it.

0

Can I have more info?

This discussion is preserved as it was. New answers, comments, and votes are closed.