Dodobee
Avid Among us enjoyer
So I am attempting to make a mod where you can kind of create small lua scripts in game using console commands (i don't know why i'm doing this but now i'm not satisfied until i finish this complicated mod) and i literally have no idea how to do it. Here is what I have so far. Would appreciate if somebody explained how to make commands. (i am planning to make a command for every character too so that its not only sonic that you can add a script to in game)
I am sure there's a better way to do this but idk how:
if player.luasonic ==nil then
player.luasonic = 0
end
local function playerissonic()
if player.mo.skin ~= "sonic" then
return
end
player.luasonic = 1
end
if player.luasonic = 1 then
print("true")
end
COM_AddCommand("playerissonic", playerissonic)
Last edited: