Hey guys, newbie scripter here. I'm making a cooking sandbox and stressful type of game, and I need someone to help with this simple script:
function CreatePlate(Position)
local Plate = Instance.new("Part")
Plate.Position = Position
Plate.Size = Vector3.new(4, 0.25, 4)
Plate.Color = Color3.new(0.944961, 0.94493, 0.944945)
Plate.Parent = workspace
task.wait(8)
end
script.Parent.ClickDetector.MouseClick:Connect(function()
CreatePlate(Vector3.new(50, 0, 50))
end)
The create plate function works fine, but it has no cooldown on creating plates even if I put a task.wait(8) in my script. Can someone explain? It will be greatly appreciated!

1 comment
That was a quick answer! Thanks for the response.