I don't know where is the problem in this script, points aren't awarded.
- No errors are shown in the Output (edited script, but still not working)
sp=script.Parent
fatalthreshhold=400
safethreshhold=65
lastvelocity=0
while true do
wait()
local t=sp:FindFirstChild("UpperTorso")
if t~=nil then
local currentvelocity=(t.Velocity).magnitude
local cost=currentvelocity-safethreshhold
if cost>0 then
local Reward = cost/(fatalthreshhold-safethreshhold)*100
local h=sp:FindFirstChild("Humanoid")
local thisplr = game.Players:findFirstChild(h.Parent.Name)
if (thisplr~=nil) then
local stats = thisplr:findFirstChild("leaderstats")
if (stats~=nil) then
if h then
function rewarding(plr)
plr.stats.points.Value = plr.stats.points.Value + Reward
end
end
lastvelocity=currentvelocity
end
end
end
end
end

3 comments
I've tried my best but point-giving script still does not work, I've used your script and edited it to work but still I have no idea what am I doing wrong with the point giving script (I've edited script in question)
plr.leaderstats.Points.Value = plr.leaderstats.Points.Value + AMOUNT HERE
thanks, worked