Hello!
My script won’t run through the debounce and I don’t what’s wrong. Please Help!
script
local function Touched(part)
local db = false
if not db then return end
local player = game:GetService("Players"):GetPlayerFromCharacter(part.Parent)
db = true
--Main function--
game.ReplicatedStorage.FactoryPlot.Parent = player.PlayerGui
local ui = player.PlayerGui.FactoryPlot.Frame
ui:TweenPosition(
UDim2.new(.5, 0, 0.5, 0), "Out", "Quad", 1, false
)
wait(3)
db = false
end