Writing Your Own Admin Command Script in ROBLOX Without Free Models

TIME : 2016-01-08
Writing Your Own Admin Command Script in ROBLOX Without Free Models

You do not need any free models — a short chat-listener script covers it. Here is a minimal example that lets a specific player type a command to remove their own head:

vip = game.Players.NAME
function onChatted(msg)
  if msg == "kill/me" then
    game.Workspace.NAME.Head:remove()
  end
end
vip.Chatted:connect(onChatted)

To adapt it: replace NAME with the target username, change the "kill/me" string to whatever phrase you want to trigger the action, and swap out the game.Workspace.NAME.Head:remove() line for whatever behaviour you are actually after.

Note that this uses the older :remove() and :connect() API, which is deprecated in current ROBLOX — Destroy() and Connect() are the modern equivalents.