#gang how do I clone stuff

1 messages · Page 1 of 1 (latest)

restive berry
#

Alright gang so I'm trying to clone something from ServerStorage into Workspace. How do I do it

exotic comet
#

idk

scenic ravine
#

u can use :Clone() on an instance to clone it

#

and by storing it in a variable, u can then modify the cloned instance

#

example:
local clonedPart = game.ServerStorage.Part:Clone()
clonedPart.parent = workspace

eager otterBOT
#

studio** You are now Level 5! **studio

humble briar
#

what he said, but i'll use beginner-friendly wording to explain (i'm a noob too lol, but i have enough experience with clones)

you want to define your clone in a variable like you normally would with any other part, but instead of stopping there you attach :Clone() at the end

local NewPart = game.ServerStorage.Part:Clone()

then you can do pretty much anything you want to with the new, defined part like you normally would with any other part

NewPart.BrickColor = BrickColor.new("Bright green") --sets the clone's color to Bright green
eager otterBOT
#

studio** You are now Level 1! **studio

humble briar
#

cool

vivid bison
#
local clonedPart = [the part you want to clone]:Clone()
clonedPart.parent = workspace
proud perch
#

Oof i was really tired