I created a clone script and I want it to clone a part. That part is Dub. The script is below.
local dub = game.ServerStorage.Dub local Duub = dub:Clone() Vector3.new(59.6, -17.5, -123) if true then wait(3) Duub:Clone() end
I want it so when the server starts it imeadiatly starts cloning these bricks into workspace at those vector coords
From what I can tell, you seem to want to move the new clone to the position provided.
In that case you almost had it.
You were missing the .Position
property.
You also need to place the clone into the Workspace since you are pulling it from the server.
local dub = game.ServerStorage.Dub --Placed everything in the loop while true do wait(3) local Duub = dub:Clone() Duub.Parent = game.Workspace --Moving the clone into Workspace. Duub.Position = Vector3.new(59.6, -17.5, -123) --Duub.Position added end
Let me know if that helps, or if you have any other questions!
EDIT: Made changes since from what you mentioned in chat. Regarding loops VS conditional statements.
local dub = game.ServerStorage.Dub --reference Dub in server storage local Duub = dub:Clone() --clone Dub clone.CFrame = CFrame.new(59.6, -17.5, -123) --change the position of the clone clone.Parent = workspace --put the clone in the workspace
You need to elaborate on what you're trying to accomplish for me to help you out more effectively.