Like any other simulator, I have a backpack and I was making a pop-up GUI that shows when your backpack is full.. and I made this script and it showed no errors, so can someone help please? Also, each backpack value is ran off of one value..
here is the pop-up script..
game.Players.PlayerAdded:Connect(function(plr)
local cr = plr.leaderstats.Coins -- leaderstat
cr.Changed:Connect(function()
if cr.Value == plr:FindFirstChild("BackpackEquipped").bp.Value then -- bp is the name of the value
game.StarterGui.ScreenGui1.sc1.Visible = true
end
end)
end)

3 comments
It still doesn't show up
Have you tried using WaitForChild on the leaderstats and Coins?
Yep, but I figured it out, I simply forgot StarterGui is not a valid child of player it would be PlayerGui and It worked.