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

Remove Models from workspace without other people noticing. Any help?

so im tryna make a script where there are models in the server storage and i want to make it that if any of the models are in the workspace then i want them to be deleted without the other players noticing. script so far -

courts = {'AMF','BRA','CORN','DUK','GEO','LOY','LSU','NC','NOVA','SALT','STJ','SYR','UCBL'}

for i,v in pairs(courts) do
	if v.Parent == workspace then
		v:Clone().Parent = workspace.CurrentCamera 	
	end
end


script.Parent.MouseButton1Click:connect(function()
	workspace.CurrentCamera:ClearAllChildren()
end)





2 comments

0

What do you mean by nobody noticing?

0

So, when you click on the GUI its going to delete the model in the CurrentCamera/Workspace. And that process happens to the person that clicks the gui

2 answers

You must use FilteringEnabled in your workspace. To turn that on, simply click your Workspace in the explorer then find the property and enable it.

This will make it client changes to the world will not affect the other clients. This way, you can have things that will only be visible (or not visible) to a single or a select group of clients.

After you have it enabled, use a LocalScript to delete the model.

For example, this LocalScript will delete part when it is touched but the part will still show for everyone else.

local part = workspace:FindFirstChild("Part")

part.Touched:Connect(function() 
	part.Destroy()
end)

2 comments

0

: not .

0

not what i asked for :/

you just destroy the model in a localscript and it'll only delete on the client and not the server. That's if you have filtering enabled on and I mean come on, who doesn't have FE on?

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