I am trying to delete an Instance for all players except for one player.
You could maybe fire a remote to all clients but the exception.
Server:
local Exception = Players.Bob
for i, Player in pairs(Players:GetPlayers()) do
if Player ~= Exception then
Remote:FireClient(Player, Instance)
end
end
Client:
Remote.OnClientEvent:Connect(function(Instance)
Instance:Destroy()
end)
Hi SourceCode,
Could you provide some code, and more details so I can help you out?
If not, here it something you can try:
you can check if a part is parented to the player’s username and then delete it from there
local part = script.Parent
if part.Parent.Name ~= "RobloxUsername" then
part:Destroy()
end
This example is for a ServerScript (Not LocalScript) in the Workspace.