Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Please Help! Script can't clone multiple part models to workspace to a parts position?

Asked by 6 years ago
Edited 6 years ago

So this is the script:

Estimate = (math.random(1,2)) print(Estimate) wait()

if Estimate == 1 then local a = game.Lighting.Folder["Part"]:clone() a.Handle.Position = script.Parent.Position a.Parent = game.Workspace end

if Estimate == 2 then local a = game.Lighting.Folder["Part2"]:clone() a.Handle.Position = script.Parent.Position a.Parent = game.Workspace end

I've been trying to modify it so multiple part objects/models can be cloned into the game. I've been trying for so long but can't figure it out for the life of me, please help! Please explain too so I can learn :D Note: I want the object to move to a specific position or node, and don't want to keep editing the script for each position :(

0
Do you want them all to clone into the same spot? or multiple positions? M3gaLul 0 — 6y

Answer this question