✓ Accepted answer
function CreatePart()
PartCreate:FireServer(Script.Parent, BrickColor.new("Yellow") )
end
PartCreate.OnServerEvent:Connect(function(Player, PartParent, PartColor)
local Part = Instance.new("Part", Game.Workspace)
Part.CFrame = CFrame.new(PartParent.Position)
Part.BrickColor = PartColor
end)
This is my cheesy example but you filter things you want to change.
So if that Part was a bullet and I wanted to change its color midflight, Id have to add that at the PartCreate:FireServer() and input it in the ServerScript for the PartCreate.OnServerEvent.
I hope this bad example helps a bit. It really comes down to you experiementing.
1 comment
Well, from my perspective, you are converting scripts that have an impact on your game such as spawning objects, or changing things. For Example, you wanted to spawn a Brick, you would need a remote event for it.