So I am trying to make a script where whenever the player reaches the currency backpack limit than a gui will pop up. I don’t really know the reason why im getting this error
script:
local Players = game:GetService(“Players”)
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild(“PlayerGui”)
local Frame = PlayerGui:WaitForChild(“CurrencyMax”).Background
local leaderstats = Player:FindFirstChild(“leaderstats”)
while wait() do
if Player.leaderstats.Clicks.Value == Player[‘Click Backpack’].Value then
PlayerGui.Frame.Visible = true
end
end