local RS = game.ReplicatedStorage
local Remote = RS.Remotes:WaitForChild("UpgradeMulti")
local Player = game.Players.LocalPlayer
local Cash = Player.leaderstats.Cash
local Multi = Player.Multi
local UpgradeButton = script.Parent
UpgradeButton.MouseButton1Click:Connect(function()
if Cash.Value >= 2 and Multi.Value == 1 then
Multi.Value *= 2
Cash.Value -= 2
end
end)
it gives me this error:Players.SANYAA_BL9.PlayerGui.StatsGui.Frame.CashUpgrade.TextButton.LocalScript:12: attempt to compare number <= string