Anyone who knows how to make a simple script that enables/disables a value?

  1. What do you want to achieve? I want to know how to change a boolvalue’s value by triggering a proximityprompt.

The boolvalue i’m talking about is inside a character, i tried lots of things. no errors shows up.

local BoolValue = YourBoolValue
game:GetService("ProximityPromptService"):PromptTriggered:Connect(function(prompt,player)
BoolValue.Value = not BoolValue.Value
end)

This is Quite simple, So you use the event Triggered , This will give us the parameter with a Player, then you can just do Player.Character.BoolValue.Value = false

IF you need more details, the documation is here