So, i'm making a Singleplayer game where if you click it makes a part, But, I want you to be able to hold down MouseButton1 and parts to appear every 0.2 seconds, How would i fix that?
Here's my script
local lp = game.Players.LocalPlayer
local rs = game:GetService("RunService")
players = game:GetService("Players")
---------------------------------------------
local mouse = lp:GetMouse()
---------------------------------------------
script.Parent.Activated:Connect(function()
local x = game.Workspace.Particle:Clone()
x.Name = 'Parciclepart'
x.Position = mouse.Hit.Position
x.Parent = workspace
end)
---------------------------------------------
Thanks for reading, Help it appreciated.

1 comment
Thank you!