debounce = false script.Parent.Button.ClickDetector.MouseClick:connect(function() print('Clicked') if debounce == false then print('wat') debounce = true script.Parent.Button.BrickColor=BrickColor.new("Bright red") local part = Instance.new("Part",workspace.PartStorage) local mesh = Instance.new("FileMesh", part) mesh.MeshId = script.Parent.Mesh.Value mesh.TextureId = script.Parent.Texture.Value mesh.Scale = Vector3.new(.65, .65, .65) local cash = Instance.new("IntValue",part) cash.Name = "Cash" cash.Value = 1 part.CFrame = script.Parent.Drop.CFrame part.Size=Vector3.new(.6,.6,.6) game.Debris:AddItem(part,10) wait(1.1) -- Time to wait in between clicks debounce = false script.Parent.Button.BrickColor=BrickColor.new("Lime green") end end)
The event isn't calling, so the output isn't printing anything I have FilteringEnabled on, how do I make this work?