Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I clone something from lighting to workspace at a certain position?

I know how to clone, ex: game.Lighting:clone() but I need to know how to clone that part from the lighting into workspace at a set position?

2 answers

✓ Accepted answer

Well, one way is to position the item before you put it into Workspace. The other way is to use the MoveTo method.

Example:

game.Lighting.Part:clone().Parent = game.Workspace
game.Workspace.Part:MoveTo(Vector3.new(0,0,0))

Here you go should help.

local Object = game.Lighting["NAMEHERE"]:Clone()
Object.Parent = game.Workspace
--If Object is 1 part do.
Object.Position = Vector3.new() --Vector here or other Vector3 value.
--Elseif Object is a model do.
Object:MoveTo(Vecto3.new()) --Vector in there or other Vector3 value.

3 comments

0

You misspelt Vector3 on line 6, just giving you a heads up.

0

the script goes off the page..

0

Woops Vector3.new()*, But hey atleast you can understand it.

This discussion is preserved as it was. New answers, comments, and votes are closed.