So this is my script and i cant increase a player jump height after buying it can anyone help me?
this is the code on the server side:
IncreaseJumpheightFunction.OnServerInvoke = function(player, cost)
local buySuccessful = false
if player.leaderstats.Coins.Value >= cost then
player.leaderstats.Coins.Value -= cost
buySuccessful = true
end
return buySuccessful
end
I am still learning remote functions so its not that good