Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to create a new object for all clients in Filtering Enabled?

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.

1 comment

0

If you are making the object from the server no need to worry about Filtering as whatever is on the server (I.e workspace) replicates to the client

2 answers

✓ Accepted answer

If you want to make it client side then use a RemoteEvent

Server

local remote = Instance.new("RemoteEvent", game.ReplicatedStorage)

remote.Name = "PartRemote"

-- Use this when you want to spawn the part: remote:FireAllClients()

Client

local remote = game.ReplicatedStorage:WaitForChild("PartRemote")

remote.OnClientEvent:connect(function()
	local part = Instance.new("Part", game.Workspace)
end)

Use the script on the server, not the client, if that works.

This discussion is preserved as it was. New answers, comments, and votes are closed.