Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why won't this debounce work?

This debounce below doesn't work for some reason. Anyone know why?

local gui = script.Parent



local chr = gui.Parent.Parent.Parent.Parent.Character
local face = gui:WaitForChild("Skeptic")


local click1 = true

gui.MouseButton1Down:connect(function()
	if chr and face and click1 then
		click1 = false
		local head = chr:FindFirstChild("Head")
		local faceclone = face:clone()
		faceclone.Parent = head
		click1 = true
	end
end)

Plz Help thx

1 answer

You have no wait() in your script, so you're basically making "click1" false and then true at the same same, making it be true every time the script plays.

1 comment

0

it still didnt work :/

This discussion is preserved as it was. New answers, comments, and votes are closed.