how do I make a debounce? Can someone help instead of giving me a script? Like I want to learn. Here is my script
local Debounce = true
script.Parent.Touched:Connect(function()
game.Workspace.Door.DoorWall.BillBoardGui.BillboardGui.E.Visible = true
end)
local Debounce = true
script.Parent.TouchEnded:Connect(function()
game.Workspace.Door.DoorWall.BillBoardGui.BillboardGui.E.Visible = false
end)
for some reason when you touch the block it makes the text visible to false then when you move on the platform it turns the visible to true to false every time you move?

2 comments
touched and touchended are really oofed in roblox, they don't help much lol
btw I answered a question on debouncing before https://scriptinghelpers.org/questions/90478/how-and-when-can-you-use-debounce#83840