I am trying to make a script where it disables a script for an specific player, like for a user named proxxemre a Script wouldn’t work.
I have tried multiple solutions but couldn’t achieve my goal but they just dont work, what script should I do and where should I put the script or should the script be a script or local script
game.Players.PlayerAdded:Connect(function(Player)
if Player.Name == ("proxxemre") then
game.Workspace.FPSCamera:Destroy()
end
end)
I tried this at last, but it didn’t work. (This is an local script in workspace and a script in serverscript service)
I would like some help. I searched everywhere but couldn’t find a solution
local blacklistedPlayers = {
"yourname",
"Friendsname"
}
game.Players.PlayerAdded:Connect(function(plr)
for i, player in blacklistedPlayers do
if plr.Name == player then
(SCRIPT):Destroy()
end
end
end)
game.Players.PlayerAdded:Connect(function(Player)
if Player.UserId == 123456789 and Player == game.Players.LocalPlayer then
game.Workspace.FPSCamera:Destroy()
end
end)
If this code ran and you were the person then it’d delete it for all the clients.
game.Players.PlayerAdded:Connect(function(Player)
if Player.Name == ("proxxemre") then
-- redundant as it deletes it for all clients.
game.Workspace.FPSCamera:Destroy()
end
end)