Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
Dad_Bot 34
7 years ago

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.

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 OMG_Gaming404 73 — 7y

2 answers

Log in to vote
1
Answered by
Griffi0n 315 Moderation Voter
7 years ago

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)
Ad
Log in to vote
0
Answered by 7 years ago

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

Answer this question