#i have some problems with my game im not smart enough to figure out how to fix them

1 messages · Page 1 of 1 (latest)

wintry edge
#

if a scripter is here help me out please

solar leaf
#

whats the problem

wintry edge
#

i have a script with the lifting thing where it plays a sound every time i lift but the sound spamming and i cant figure out how to put the "wait(1)" thing like

#

wait

#

heres the script

solar leaf
#

just do something like

local debounce = false
if debounce = false then
  debounce = true
  -- do stuff
  wait(1)
  debounce = false
end
wintry edge
#

and the second problem is that i have a sell button on the screen that opens a frame where u can sell but it cant open it anymore idk wheres the issue

spring lanternBOT
#

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

wintry edge
#

mmh wait im sending it

#

ngl i asked the AI thing on roblox it worked but it aint working anymore just wait a sec

solar leaf
#

any errors?

solar leaf
wintry edge
#

mmh wait

#

where do i place it

solar leaf
#

place it where the sound plays

#

but have debounce as like

wintry edge
solar leaf
#

a scope up

wintry edge
#

like this or?

#

idk

solar leaf
#

oh

#

==

#

bruh ill just write it

#
local debounce = false
tool.Activated:Connect(function()
  if debounce == false then
    debounce = true
    sound:Play()
    wait(1)
    debounce = false
  end
end)
wintry edge
#

wait local script or normal bc someone told me i have to do with a normal one

solar leaf
#

a normal script bro

#

its a tool

wintry edge
#

theres error

solar leaf
#

yea

#

I edited it

#

and why did you get rid of it all 💀 🙏

wintry edge
#

wait

#

wtf

solar leaf
#

why did you delete the variables bruh

wintry edge
#

it was hiding ig

#

no error but still can spam

solar leaf
#

bruh

wintry edge
#

that crazy ngl

solar leaf
#

you put that in the way wrong spot

wintry edge
#

fr?

solar leaf
#

yes

#

just paste it on like 5

#

line*

wintry edge
#

ok

#

am i dumb or it not working

solar leaf
#

send code

wintry edge
#

i removed the thing i added ..

solar leaf
#

bro

wintry edge
solar leaf
#

whats not working about it

wintry edge
#

idk i still can spam

solar leaf
#

send code

wintry edge
#

nah give up it aint working