This is a commands script. How would I make it so only a certain person could say ";restetplace" or ";reset place"?
StartClone=game.Workspace.World:clone()
Prefix=";"
game.Players.PlayerAdded:connect(function(Plr)
Plr.Chatted:connect(function(Msg)
print(Plr.Name.." Said Something!")
print(Msg)
if Msg:sub(1,1)==Prefix then
Msg=Msg:lower()
MsgS=Msg:sub(2)
print(MsgS)
if MsgS=="resetplace" or MsgS=="reset place" then
game.Workspace.World:remove()
StartClone.Parent=game.Workspace
StartClone=game.Workspace.World:clone()
elseif MsgS=="settings" then
Plr.PlayerGui.Tools.Settings.Visible=true
elseif MsgS=="cmds" or MsgS=="commands" then
Plr.PlayerGui["CommandGui's"].Gui.KeyCharacter.Text="Prefix - "..Prefix
Plr.PlayerGui["CommandGui's"].Gui.Visible=true
end
end
end)
end)
