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

Making a Touch Player Points awarder?

How would you do this?

1 answer

I havn't messed with playerpoints yet, but based on the wiki I'm guessing you would do something like this:

ps = game:GetService("PointsService")
PART = whereeverthepartis

function Touched(p)
	if p.Parent:FindFirstChild("Humanoid") ~= nil then
		player = p.Parent:GetPlayerFromCharacter()
		if ps:GetAwardablePoints() > 0 then
			ps:AwardPoints(player.userId, 1)
		end
	end
end

PART.Touched:connect(Touched)

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