Skip to content

Instantly share code, notes, and snippets.

@1-creare-1
Created November 14, 2022 02:32
Show Gist options
  • Save 1-creare-1/3468f5fd01ea3ea2237ec7e7073c1fae to your computer and use it in GitHub Desktop.
Save 1-creare-1/3468f5fd01ea3ea2237ec7e7073c1fae to your computer and use it in GitHub Desktop.
local switch = GetPartFromPort(1, "Switch")
local gyro = GetPartFromPort(1, "Gyro")
local mic = GetPartFromPort(1, "Microphone")
mic:Connect("Chatted", function (Player, Message)
print(Player)
if Player ~= "Makerbenjammin6" then return end
local split = Message:split(" ")
local command = split[1]:lower()
if command == "target" then
gyro:Configure({Seek = split[2]})
elseif command == "radar" then
gyro:Configure({Seek = "Radar " .. split[2]})
elseif command == "alien" then
gyro:Configure({Seek = "Radar AlienCore"})
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment