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

How to make Player score points by bringing objects to a dedicated spot?

I'm making a game where players need to find objects pick them up and put them down in the right spot. What i have trouble with is giving them score for it. I'm new to roblox and examples of scoring i find are kill/death type that are connected to player character not an object

1 comment

0

when they place the object, if they place it in the right spot then award them +1 in score

1 answer

You could try making a new part and name it ScoreArea or something, set it to CanCollide = false and Anchored = true, and if a part touches it and its name is, for example, ScorePart, then it awards the player.

2 comments

0

that's the problem. i can't figure out how to award points to player or his team for making ScorePart touch ScoreArea

0

script.Parent.Touched:Connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then local player = game.Players:GetPlayerFromCharacter(hit.Parent) player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1 end end)

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