So I'm trying to make my scripting more efficient but I've come up w/ a problem. I don't know how to really explain my problem other than wanting to send multiple instances exactly how I make them in the following code:
Local x = Instance.new("Part")
x.BrickColor = BrickColor.new("CGA Brown")
x.Material = "Neon"
x.Reflectance = 0
x.Transparency = 0.5
x.Name = "Fireball"
x.Anchored = false
x.CanCollide = false
x.Locked = true
x.Shape = "Ball"
x.Size = Vector3.new(5,5,5)
x.TopSurface = "SmoothNoOutlines"
x.BottomSurface = "SmoothNoOutlines"
x.FrontSurface = "SmoothNoOutlines"
x.BottomSurface = "SmoothNoOutlines"
x.RightSurface = "SmoothNoOutlines"
x.LeftSurface = "SmoothNoOutlines"
local bv = Instance.new("BodyVelocity")
bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
bv.Velocity = torso.CFrame.lookVector*50
bv.Parent = x
local f = Instance.new("Fire")
f.Color = Color3.new(255/255,170/255,0/255)
f.SecondaryColor = Color3.new(255/255,255/255,255/255)
f.Heat = 25
f.Size = 10
f.Parent = x
x.Parent = game.Workspace
x.CFrame = torso.CFrame*CFrame.new(0,0,-10)
Is there a way to send the information for x, or x to the remoteevent and have it create x?
