Hello! I want to join the ButtonScript to the Event1 script together but I don't know how can I do it and with what.
Please help me
--ButtonScript
local clickDetector = script.Parent
local button = game.Workspace.Button
local debounce = false
clickDetector.MouseClick:Connect(function()
if debounce then return end
debounce = true
print("Part clicked")
task.wait(2)
debounce = false
end)```
```lua
--Event1
for i = 1, 100 do
local part = game.Workspace.KillPart:Clone()
part.Anchored = false
part.Position = Vector3.new(
math.random(-256, 256), -- Xposition
math.random(50, 150), -- Yposition
math.random(-256, 256) -- Zposition
)
part.Parent = workspace
end```
** You are now Level 15! **