my script:
local ProximityPrompt = script.Parent
local open = false
local none = 0
ProximityPrompt.Triggered:Connect(function(Player)
if Player.Backpack == none then – this line breaking the script I think
local PlayerGui = Player:WaitForChild(“PlayerGui”)
local NoGun = PlayerGui.NoGun
local Frame = NoGun.Frame
if open == false then
open = true
Frame.Visible = true
end
end
end)
what I am trying to do is if you triggered a proximity prompt, the thing will look inside your inventory. And if there isn’t anything in the starterpack(backpack), it will show a gui. It works when I put it like:
if Player.Backpack:FindFirstChild(“GlueRemover”) == false then
but it only works after you unequip the tool and trigger the proximity prompt again.
idk what to do please help me