How would I create an object using Instance.new in a FilteringEnabled game so that every player in the game can see the new object.
If you want to make it client side then use a RemoteEvent
Server
1 | local remote = Instance.new( "RemoteEvent" , game.ReplicatedStorage) |
2 |
3 | remote.Name = "PartRemote" |
4 |
5 | -- Use this when you want to spawn the part: remote:FireAllClients() |
Client
1 | local remote = game.ReplicatedStorage:WaitForChild( "PartRemote" ) |
2 |
3 | remote.OnClientEvent:connect( function () |
4 | local part = Instance.new( "Part" , game.Workspace) |
5 | end ) |