I made a teleporter script, which teleports the person from one teleporter to another. It also has a debounce. When I tested it, it does not work. Is it my debounce, or what?
My script:
debounce = script.Parent.On debounce2 = game.Workspace.Stage6.Tele1.On script.Parent.Touched:connect(function(hit) if debounce.Value == true then if hit.Parent:FindFirstChild("Humanoid") ~= nil then hit.Parent:MoveTo(game.Workspace.Stage6.Tele1.Position) debounce.Parent.BrickColor = BrickColor.new("Bright red") debounce2.Parent.BrickColor = BrickColor.new("Bright red") debounce.Value = false debounce2.Value = false wait(2) debounce.Value = true debounce2.Value = true debounce.Parent.BrickColor = BrickColor.new("Really blue") debounce2.Parent.BrickColor = BrickColor.new("Really blue") end end end)