i try to make this a code which is give you a reward after killing it. But i try to define kepintaran as a child of leaderstats but it doesnt work
local waw = game.ServerStorage:WaitForChild("Give")
local hum = script.Parent:WaitForChild("Humanoid")
hum.Died:Connect(function()
local player = game.Players.LocalPlayer
local kepintaran = player.leaderstats.Kepintaran.Value
waw:Fire(20*(kepintaran+1))
end)

2 comments
where should i put it
wheres the player you want to kill