Ive Been Working On A Simulator And I Have A Script That Keeps Duplicating And IVe Tried So Many Things But Nothing Has Worked
Code:
local serverstorage = game:GetService("ServerStorage")
local Debounce = false
game.Players.PlayerAdded:Connect(function(player)
if Debounce == false then
Debounce = true
local datafolder = Instance.new("Folder")
datafolder.Name = player.Name
datafolder.Parent = serverstorage.RemoteData
print("Created")
local Debounce = Instance.new("BoolValue")
Debounce.Name = "Debounce"
Debounce.Parent = datafolder
Debounce = false
end
end)
Thanks For Helping

1 comment
Is it not common sense to wait before you set the debounce variable back? I think this is just misusing a debounce.