- 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.
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)