I was wondering if there was anyway to merge scripts instead of doing it one by one.
Let’s say that I had 2 scripts.
local Baseplate = Instance.new("Part")
Baseplate.Name = "Baseplate"
Baseplate.Anchored = true
Baseplate.Color = Color3.fromRGB(255, 0, 0)
Baseplate.Size = Vector3.new(512, 20, 512)
Baseplate.CFrame = CFrame.new(-511.76443481445, -10, 0)
Baseplate.Locked = true
Baseplate.formFactor = Enum.FormFactor.Symmetric
Baseplate.Parent = workspace
local Baseplate = Instance.new("Part")
Baseplate.Name = "Baseplate"
Baseplate.Anchored = true
Baseplate.Color = Color3.fromRGB(99, 95, 98)
Baseplate.Size = Vector3.new(512, 20, 512)
Baseplate.CFrame = CFrame.new(0, -10, 0)
Baseplate.Locked = true
Baseplate.formFactor = Enum.FormFactor.Symmetric
Baseplate.Parent = workspace
Is there anyway to merge those two scripts to 1 instead of doing it manually?
Example
(Merged Script)
local Baseplate = Instance.new("Part")
Baseplate.Name = "Baseplate"
Baseplate.Anchored = true
Baseplate.Color = Color3.fromRGB(255, 0, 0)
Baseplate.Size = Vector3.new(512, 20, 512)
Baseplate.CFrame = CFrame.new(-511.76443481445, -10, 0)
Baseplate.Locked = true
Baseplate.formFactor = Enum.FormFactor.Symmetric
Baseplate.Parent = workspace
local Baseplate = Instance.new("Part")
Baseplate.Name = "Baseplate"
Baseplate.Anchored = true
Baseplate.Color = Color3.fromRGB(99, 95, 98)
Baseplate.Size = Vector3.new(512, 20, 512)
Baseplate.CFrame = CFrame.new(0, -10, 0)
Baseplate.Locked = true
Baseplate.formFactor = Enum.FormFactor.Symmetric
Baseplate.Parent = workspace