#Proximity Prompt not working

22 messages · Page 1 of 1 (latest)

twin wadi
#

I wanted to make the player be able to use the proximity prompt, then being able to use it again after 3 seconds (so, for 3 seconds, the player can't use the proximityprompt.)
This doesn't work though 😦

soft tendon
#

just do treepunch.triggered

#

and whats with the task.wait on the button

#

make it like this:

`treepunch.Enabled = true

treepunch.Triggered:Connect(function()
task.spawn(function()
treepunch.Enabled = false
task.wait(3)
treepunch.Enabled = true
end)
end)`

twin wadi
wanton trailBOT
#

studio** You are now Level 4! **studio

soft tendon
twin wadi
soft tendon
#

any other part of the script

#

lets say you have a while loop of the folowing:

#

`while wait(1) do

end`

print("TEST")

#

test will never print

#

cuz the while loop ran first

#

and will never end

#

HOWEVER

#

if you put it under a task.spawn function

#

it allows other parts like test

#

to print

#

you get it or no

twin wadi
#

ok