I was wondering if it's possible to create an instance, say a part in a localscript and send the information of that Part to a serverscript with remoteevent or remotefunctions? Here's an example of what I'm talking about.
local x = Instance.new("Part")
x.BrickColor = BrickColor.new("Bright red")
x.Anchored = true
x.CanCollide = false
x.Size = Vector3.new(10,1,10)
game.Workspace.Scripts.CreateObjects.CreatePart:FireServer(x)
Is there a way to make it so the ServerScript receives the information to create x? I've tried this but it doesn't work.
function CreateItem(player,x)
x.Parent = game.Workspace
end
script.CreatePart.OnServerEvent:connect(CreateItem)
Is there any way to do this, without having to write down everything in the ServerScript? My reason for doing this is because I want to make it easier to find and fix/edit anything I make in the future without having a bunch of scripts and/or functions everywhere.

1 comment
Try parenting the part from the local script to lighting before you send it to the server script.