Points not being given

I am having quite the difficult dilemma here…

While making a touched event that applies point values to the players Point values from a touched event. It does not seem to be working, what can I do to fix this?

image
image

	local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
	if player then
		local LeaderStats = player:FindFirstChild("Leaderstats")
		local Pointstats = LeaderStats:FindFirstChild("Points")
		if Pointstats then
			Pointstats.Value = Pointstats.Value + 5
		end
	end
end)```

Look at what you’re trying to find within “player”, and then look at the image that you’ve provided.

1 Like

I’m pretty sure FindFirstChild is case sensitive.

1 Like

The folder is actually a “leaderstats” not “Leaderstats”

1 Like

AAAAAAAAAAAAAAAAAAAAAAA, thanks.

ye leaderstats and Leaderstats are pretty tricky maybe try to check your scripts and if everything is lower case upper case or whatever