i want dummy to give exp but it doesnt do anything
local PlayersService = game:GetService("Players")
local function onTouch(hit)
local player = PlayersService:GetPlayerFromCharacter(hit.Parent)
local expPoints = player:findFirstChild("leaderstats")
if expPoints ~= nil then
local points = expPoints:findFirstChild("Exp")
if points ~= nil then
points.Value = points.Value + 5
end
end
end
script.Parent.Touched:connect(onTouch)
scrypt analysis is clear

2 comments
This will not work. Because the dummy have to be killed so the player can get the EXP. Let me answer this question.
well maybe he wants it so that whenever he hits the dummy, player gets exp.