I'm trying to make it so that if you have 30 or more cash, the player can click an image button and receive a gear, however, when I test it out, nothing happens when I try to click on the image button even though I have 50 points. Where am I going wrong? (This is a LocalScript)
local plr = game.Players.LocalPlayer
local replicatedstorage = game:GetService("ReplicatedStorage")
script.Parent.MouseButton1Click:connect(function()
if plr.leaderstats.Points.Value>=30 then
replicatedstorage.BloxyCola:Clone().Parent=plr.Backpack
replicatedstorage.BloxyCola:Clone().Parent=plr.StarterGear
end
end)
