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

Position of clone?

When cloning things, like this:

local clone = game.Lighting.Bullet:clone()

How can you decide its position, please annotate any changes made Would this work?

local clone = game.Lighting.Bullet:clone()
move = script.Parent.Parent.Bullet
move.CFrame = CFrame.new(0,0,1)

1 answer

✓ Accepted answer

Your clone variable is the clone, I don't see why you added the move variable, it should just be:

local clone = game.Lighting.Bullet:clone() -- Clones the bullet
clone.Parent = game.Workspace -- Or whatever you want it parented to, but this parents it
clone.CFrame = CFrame.new(0,0,1) -- Sets the position of the bullet

7 comments

0

Then I can use the other script you helped me on to move this correct?

0

You could, yes.

0

By using a then function or just putting it in

0

You could just put it in I presume.

0

Thanks, you wouldn't mind if I contact you if something goes wrong, right?

0

Of course I don't mind, it's what I'm here for. :)

0

Thanks!

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