#gang how do I clone stuff
1 messages · Page 1 of 1 (latest)
idk
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
** You are now Level 5! **
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
** You are now Level 1! **
cool
local clonedPart = [the part you want to clone]:Clone()
clonedPart.parent = workspace
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local instanceToClone = ReplicatedStorage:WaitForChild("THENAMEOFYOURINSTANCE")
local instanceClone = instanceToClone:Clone
instanceClone.Parent = workspace
Oof i was really tired