Hi I am trying to make a lag test game and I already have a button to add parts but I was thinking about automation but I cant figure out how to fix my script if you can help me please reply
local on = false
if on == false and script.Parent.MouseButton1Click then
on = true
end
if on == true and script.Parent.MouseButton1Click then
on = false
end
if not on == false then
local Part = Instance.new("Part")
Part.Position = Vector3.new(-41, 0.5, 73)
Part.Parent = game.Workspace.Folder
Part.Name = "Hi"
end
Here is the link to the game if you were wondering roblox.com/games/8482923831/lag-test-BE-CAREFUL
Thanks :)

1 comment
Thanks a lot also you forgot to add the wait value on line nine