I have a proximity prompt that is supposed to change a boolvalue in the player to be true/false. This is how I am doing it:
local ProximityPromptService = game:GetService("ProximityPromptService")
local function onPromptTriggered(ProximityPrompt, player)
player.ShopOpenFolder.ShopIsOpen.Value = true
print("hi")
end
ProximityPromptService.PromptTriggered:Connect(onPromptTriggered)
It works perfectly fine when i activate the proximity prompt, the value changes, however if i manually check the box to go back to false, once i use the proximity prompt again a second time, it does not change to true again. But the weird thing is, it does print both times, so the "player.ShopOpenFolder.ShopIsOpen.Value = true" line seems to work only once, but the printing hi works every time, sorry if i didnt explain well

2 comments
Damn thanks ive been trying to fix this for like 2 days
;)