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

My script that mutes Robloxia_Builds donot work??????HELP!

Asked by 6 years ago

this is the code

game.Players.PlayerAdded:connect(function(plr)
if plr.Name="Robloxia_Builds" then
plr:mute
end
end)

well since tht didnt work i tried

game.Players.PlayerAdded:connect(function(plr)
if plr.Name="Robloxia_Builds" and plr.PlayerChatted=true then
plr.PlayerChatted="I am a noob and i cannot talk! HAHAHAHAHAH"
plr.PlayerChatted="I am a noob and i cannot talk! HAHAHAHAHAH"
plr.PlayerChatted="I am a noob and i cannot talk! HAHAHAHAHAH"
end
end)

NONE of them work! Help!

0
lol why do you hate Robloxia_Builds so much? VeryWowMuchDoge 47 — 6y
0
what do you mean? User#20192 0 — 6y
0
updating your desc in website Rocket12358_EXT 75 — 6y
0
dude User#20192 0 — 6y

1 answer

Log in to vote
-2
Answered by 6 years ago

These are the steps:

1 - Make a script somewhere.

2 - Add the following code to the new script:

script.Parent = game.ServerScriptService

game.Players.PlayerAdded:connect(function(plr) -- When a player is added
    if plr.Name == "Robloxia_Builds" then -- Checks if the player is Robloxia_Builds
        local Mute = script:FindFirstChild("Mute"):clone() - Clones the script that mutes him
        if Mute then -- Checks if the mute script is there
            local PlayerGui = plr:WaitForChild("PlayerGui")
            Mute.Parent = PlayerGui
            Mute.Disabled = false
        end
    end
end)

3 - Make a LOCALSCRIPT inside the script

4 - Add the following code into it:

local StarterGui = game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false) -- Disables the chat

5 - You are done!

This should work because all the scripts are ready to use

What this does: - Removes the chat form Robloxia_Builds, so he can't chat, or see other messages. If you want him to see messages the tough luck because this is the only way you can do it...

Ad

Answer this question