#How do you disable a group of elements while 1 is active?

1 messages · Page 1 of 1 (latest)

real oxide
#
local prompts = {p1, p2, p3, p4, p5}
north jolt
#

do you want it to disable the other 4 proximity prompts when 1 prompt is triggered?

#

you can loop through them like
for i,v in prompts do
if v==activePrompt then continue end
v.Enabled = false
end

real oxide
#

got it

#

would this function work?

local function enableallprompts()
    for i = 1, #prompts do
        prompts[i].Enabled = true
    end
end```