Info/setup of button: https://i.postimg.cc/WbFd0zxg/Info.png It's also not displaying if you don't have enough money or if it was purchased etc. It does give you the jumpboost even if you don't have "Coins" for it for some reason?
the code for the button:
player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if player.Character.Humanoid.JumpPower == 65 then
script.Parent.Text "Already Bougth!"
if player:FindFirstChild("leaderstats") then
if player.leaderstats.Coins.Value == 10 then
player.leaderstats.Coins.Value = player.leaderstats.Coins.Value -10
script.Parent.Text = "Purchased"
player.Character.Humanoid.JumpPower = 65
elseif player.leaderstats.Coins.Value >= 10 then
script.Parent.Text = "Not enough money!"
end
end
end
end)
my leaderstats (extra info):
game.Players.PlayerAdded:connect(function(plr)
local stats = Instance.new("BoolValue",plr)
stats.Name = "leaderstats"
local Coins = Instance.new("IntValue",stats)
Coins.Name = "Coins"
Coins.Value = 0
end)

4 comments
Also, don`t handle it on client side, learn about remote events to successfuly make the transaction
Yeah, I have no idea why you would use the greater than sign to check if the amount of money is not enough. Lol. Good point.
+blockmask Im just gonna put it to the side instead, no idea what you meant really lol. But thanks for the response anyways.
....No problem