#the proximity promt doesn't enable

20 messages · Page 1 of 1 (latest)

timber saddle
#

Use events

cedar lantern
#

so i need to make that when the value is 1 an event fires that enables the promt?

forest pike
#

ur script runs 1 time

#

and ur value = 0

#

do

#
collect:GetPropertyChangedSignal('Value'):Connect(function()
--print(...........)
--proxPrompt.Enabled = true
end)
#

where is comment put this

#

nvm

cedar lantern
#

huh

#

and if i want to make the value go up to 3?

forest pike
#

wym

cedar lantern
#

like

forest pike
#

i fixed ur problem(maybe💀)

cedar lantern
#

when i collected 3 batteries the promt enables?

forest pike
#

u said 1

cedar lantern
#

uhm

#

ops

forest pike
#
collect:GetPropertyChangedSignal('Value'):Connect(function()--creates a function when collect.Value is changed
  if collect.Value == 3 then--check if value = 3
    print('Success')--printing
    ProximityPrompt.Enabled = true--enabling prompt
  end
end)
#

this one is correct

cedar lantern