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?


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)```