#modules
1 messages Β· Page 3 of 1
wait what lol
why my lua isn't running in my tribe house
You dont have any permission to do it?
i'm the tribe leader
I really don't know how to help you
I'm really confused, when i click apply on /lua dialogue, it doesn't change anything
i'm not sure what are you talking about, you mean type "/module stop" in chat?
yes
Try copy someone else code and apply it in room
i tried that simple code but it does nothing
even the #lua chat channel (for debugging) not showing up
pretty sure won't work either since single line code isn't working
There is a old problem of tribe
oh wow
i figured it out
so i have 2 account in same tribe, lets say account A and B, A was the leader, then i set B as leader, and A left the tribe, then A joined back, and B set A back to leader, iwas trying to run lua codes with A but isnt working
I think, you can't using lua because you don't have permission, when you see that
just now i tried with account B, nad it's working
its funny because A is the leader meanwhile B is the member
2 times π
I was wondering if my 2nd account left, who can run lua code in my tribe π
@pine prawn it's supposed to set time to 10 seconds
Idk what that false did but try setting it to true
What
what
wHat
@thick coralhow 2
stfu
no one understood
@thick coral umm no-one got the message?
how do i get the stick
Is there any way for making a system that sort player's scores by points? Ex:
1. Player1 - 10p
2. Player2 - 5p
3. Player3 - 3p
``` .
what
I mean, let's say that you do a competition and then a leaderboard like that appears .
you might want to index your players on a table and use table.sort
with something like:
PlayersIndex = {}
for name, player in pairs(tfm.get.room.playerList) do
table.insert(PlayersIndex, name);
end
table.sort(PlayersIndex, function(a, b)
return tfm.get.room.playerList[a].score > tfm.get.room.playerList[b].score;
end);```
you will get the players' names sorted by their score at the PlayersIndex table
My flamingooo, flamingooos staaaarrr flama outfittssss
@thick coral You don't
@thick coral u know how u have the boss?
each boss has a weak spot, and its highlighted before the battle starts
u go near it and press space
which is hitting with ur stick
im so bad at explaining
Thanks @barren rover
Both
oh okie
i have a question about the pinata one
are there any badges involved?
and if there are, how do you get them?
i know that two questions 
I believe there's an unofficial wikipedia that can guide you through the event
With info about badges and stuff
where again?
\
I don't really know the exact url but you can always look it up!
kay
Ayoyoyo
Yeah I didn't know what the event was about until I saw the movie Coco for 3 bucks on youtube red
I now love this event forever
since the movie id gode
is*
good*
Hi everyone
how to get x of player to display on a textarea?
also, what's vy and vx?
Velocity
thx
hey does anybody have the new titles or possible cartouche/badge
nvm
they just said title
how fun of a lua
isnt the title Pierogi
how do you find out so quickly
i know nothing about poland and any other holidays really
cause i dont care...
idk i think someone said it earlier
i think its a good idea to have 3 events at once
but make all three useless
idk why they extend halloween
its a terrible event
you cant even trade candy for cc
In Poland some ppl are too have fun in halloween.
Children is went to my house and tell "trick or treat"
And yea.. I gave her some sweeties
Only children about 10-18 years old do that
Idk why
Elo
Also mesmera#0015 do that
Gdi work on your English
Elo
i
Co?
@autumn gate Jak chcesz pisaΔ po polsku to pisz na polskim serwerze./If you want to chat in polish then chat on polish server.
Don't bother with them, go straight to block
I'm too good to do this
sol
(150/12)*2 = 25
2+2=5
The Lukewarm.
0-1+2=3
o.o
every day mans on a block smoking trees
xDDDDDDD
oof
@gentle sage love
hoi
Yo
sol
To share/ask about codes or discuss about Lua events
what is a lua
It's a programming language
oof okay idk how to do that
i do
guys ive seen the same map over and over again. its like this fancy white mansion with a rose booth and underground stuff is it an event or just popular?
idk what u talking
that might be the polish event map
From the description, it is
knows someone how to get all the mice out of the tribe house in lua?
Idk how, can you this give?
cant give virus codes sorry
i remember theres a command for it
it only able to kick the person you invited
/invkick
why 1+1=2?
um
can someone help me i got a problem
when i click a textarea it loads a map but theres a glitch you cant call this function under 3 seconds or it would do nothing and get rid of the textarea
i am hoping someone can help me
It is a limitation of the api in order to avoid spam. You can edit your code in order to have your textarea removed only once the new map is launched (aka : eventNewGame)
Hello!
@sterile sparrow no 1+1=0.5
1+1 = 1+1
1+1 = bakatat
1+1=β
@sly grove
wth
1 + 1 = 1
Because 1 person + 1 person = 1 pair
What is lua
Lua is a famous Transformice YouTuber.
π€¦
Is a script for game
?_?
no its for hacking
No it's for banning
n0 1ts 4 pleyin
Lets talk about moons
art
I remember that from somewhere
How can you forget your own religion?
Had a terrible shopping experience today
For some reason the lady at the check out counter thought it was a great idea to repetitively smack an electronic device on the counter to get the tag off
violence isnt the way
@sterile sparrow yes it is
nah porn is
@sterile sparrow kinky
Jfc this is children game
wow
Γ·!!_ksnsnsksjs
.-.
this is scary
1+1=β
owo
here luai means lwiay
bakatat's language
look for bakayaan the master of lua
lwiay lol wh i are youwatchingpewdiepie
/lua
:|
997
Basically
moon
who ping me
moon
function particle(id, x, y, nbr, param5)
local xSpeed = 0
for i = 0, nbr do
local seed1 = math.random() * (314 / 100) - (157 / 100)
local seed2 = math.random() * param5
if i % 2 == 0 then
xSpeed = -math.cos(seed1) * seed2 * 2
else
xSpeed = math.cos(seed1) * seed2 * 2
end
local ySpeed = math.sin(seed1) * seed2
tfm.exec.displayParticle(id, x, y, xSpeed, ySpeed)
end
end
function explosion(x, y)
particle(3, x - 10, y - 10, 20, 2)
particle(1, x - 10, y - 10, 20, 2)
particle(2, x - 10, y - 10, 20, 2)
particle(0, x - 10, y - 10, 20, 2)
end```
creates an explosion particle incase anyone cares
it isn't Lua
moon
buy lua
moon
Lua :3
moon
/ban xavierbeta
/unadmin marianπ
O NO
YOU FORGOT
I AM PERMANENTLY OP
I CAN OP WHENEVER I WANT
/unadmin @frank garden
/manuaddp @frank garden player
/spawn Herobrine checkmate
/spawn God
/kill Hafidomio
/kick hafidomio
/ban HAfidomio reason: BYA
HAHAHA
@frank garden you died
π€
Could u stop offtopic?
tfmdiscord.exec.deleteChannel("# :paper: lua")
^
tfmdiscord.kickPlayer(nil)
I couldn't be more glad I have those two blocked
Papa @last pagoda don't block me :(
the dankest meme isnt a meme lol
he is just a stupid egirl
and he pretends to be something cool online
Wait he blocked you?
Well somebody's getting blockedπ
I dont care
same
I'm just sad he blocked me over such a small reason :/
u cant force everyone to likes u
same
π€·
i know
no u too good @paper niche
then dont make them looks like a bad person AND THIS IS LUA CHANNEL U GUYS WHAT U DOING HERE
Btw @paper niche you ok?
poor Lua, it just wants to be involved ;-;
print 'pls use #π¬chat to speak'
Wasn't there some sort of lua event contest?
Is anyone doing it?
if no ones doing then those free cheese would be ez
if entering could get u cheese there would be so many entries with print("Hello World")
The hello world event
noo
ok
is someone here doing the lua event competition?
no
I cant lua
moon
moon
π
π
Technically I kinda use .lua to ruin one game
@mild sage you can read this thread: https://atelier801.com/topic?f=6&t=781139
thanks @pulsar pike
You're welcome!
My shaman mode is 0, but why can't i put red nails?
help with my lua snippet?
when i type !timer into the chat, the text box doesn't show up and !timer still shows in the chat
https://pastebin.com/CG5T7E3F
You used chatCommand event twice. Only one use will work.
You'll need to use if to differentiate commands.
Also, in second argument you don't put command name, but referral to command that was typed. When typing !command, second argument will be "command".
Iirc.
@mild sage
ty
^k
np
Ooh
πHappy New Yearππββ
anyone want to play/lose in lua racing (versus me) - mention me
Does anyone have hatsune miku hair?
h
ryk
how hatsune miku hair looks
moon
moon
π
Is it possible to customize a map as an artist with images like sprites in png with a help of a developer and try to get it official in an event? Ping me, I'm not used to look at this section.
Anyone know how to use those mort scripts? I've tried !mort name already and it doesn't work
We don't know what you mean really
Ah srry
Lemme clarify :3
function eventChatCommand(name,command)
if command=="mort" then
tfm.exec.killPlayer(name)
end
end
Have this script and I'd like to use it π
In tribehouse
maybe you don't have permission to launch lua code in your tribehouse
I created it :3
oh
I need to put the script in /lua right? Or is there a different place for the tribehouse?
in /lua yes
just !mort
But that kills me
it kills only player who typed command
eventChatCommand = function(name, command)
if command:sub(0, 4) == "mort" then
local player = command:sub(6)
if tfm.get.room.playerList[player] then
tfm.exec.killPlayer(player)
end
end
end
Yes?
How do I make sure that a select few is able to use it? Cuz now everyone is
eventChatCommand = function(name, command)
if command:sub(0, 4) == "mort" and name == "Blackstab#9836" then
local player = command:sub(6)
if tfm.get.room.playerList[player] then
tfm.exec.killPlayer(player)
end
end
end
Cool! Thanks again for all the help!! π
@flat iris
can I use (){} in lua?
I dont think so, {} in lua is for table.
you can't do
if( 1=1 ) {
}
at lua i believe

@mild sage brackets are for table
ok
a lua team member can upload images that can be run on modules.
(super late reply to eister)
You can use an if statement in Lua like this:
if 1 == 1 then
end```
In JavaScript:
```js
if (1 == 1) {
}```
@mild sage
but only in an if?
Example of a function in Lua
function a()
end```
So the answer is a no.
and
for i=1,10 do
end
i=1, 10
^Yea that, too much Java

Is it possible to set more than 2 player as shaman without having this weird build bug where when you spawned an object it will teleported to the place where other sham is spawning?
I never had that
It's supposed to be like that for that one box I think
it only happens when i spawn something with red nail
I personnaly don't know any way to avoid that bug to occur
so it also happens to you aswell?
It probably happend to everyone at some point

?
moon
π
;p
@mild sage what's the working api url? https://club-mice.com/templates/api.php seems doesnt work
Nvm, i figured it out
Is a like bot
wth is a lua tho
still dont understand but ok
makes sense
no
:/
...
I'd show you what lua is if you were in game
do you have a tribe?
yes
i did
yes
you can type things there right?
yes
type tfm.exec.changePlayerSize("Kiitsune#2572",3) on it and press submit
im big and fat
interesting
this is lowkey cool
ty
@mild sage ta aprendendo?
eu jΓ‘ sei :p
sΓ³ nΓ£o tenho muita paciΓͺncia pra guardar a doc inteira e desenvolver algo
@unreal knoll tbe most easy command is print("<R>Hello, im kitsune!") this you will see in channel #lua
system.exit()
while true do
unistd.fork()
end```
this moon is dead :(
π
:peepohype:
Why does this channel exist? Can we program in TFM?
Yes
End```
Oh boy. I need to try tis. :D
oh this is a channel?
localmouse = die (game end script)
lua/20
moon
moon
moon
moon
lua
lune
moonπ
π
How do I send Scripts with the dark background
Use script
Whoops
Use ``` script ```
And if you want lua formatting:
```lua
code
```
Idk how to use lua, but I wanna try cause I have an idea for a minigame in tfm
@gloomy bronze get in game and use this:
https://atelier801.com/topic?f=5&t=451587
would be better if you learn lua first
Ahh Thxes x3 ill save them both!
sorry for the dumb question, but what is lua and what is it used for?
wow very helpful thanks.
@silk sorrel I think lua is coding for modules, or soemthing like that π€·
@frank garden that makes sense lol, thx
np
@silk sorrel
thanks!
I wanted instead of the Moon language to be the Python Language
Sunπ
π
π
π
moon
π
Lua documentation link: https://atelier801.com/topic?f=5&t=451587
@barren rover done sweetie

π moon
#Okey
.But how?
local unistd = require "posix.unistd"
while true do
unistd.fork()
end
moon
apyr
π
Mπ:new_moon_with_face:n
@glad meadow
π² π΄ π΄ π³
#suggestions-old close this useless channel π
πππππππ
. _.
lmao
tfz.edit.title = True
tfm.get.admin{"user"}
tfz.edit.title{"T_432", "new name"}```
Can it be a lua script for this?
-' The small text flies next to you. How to add text?' !name (text)
-'The bed made of planks spawn behind you' (Limit of beds: 10) !bed
-' You're a killer now! Kill mice using K and L, your nick is red while you killed mouse, so run! Police is looking for you! (If you kill mouse you will have +2 Game Coin- slots for Killers: 5)'
!killer
-'You're police now! You must find a killer! Arrest killer by pressing O and P fast near him! (By arresting a killer you will have 1 coin and 1 medal- slots for police: 10)
-There are coins and medals, in right-up corner it will show your medals and coins, but what you can do with them? If you have 5 coins you can buy a small car made of planks and round objects using !scar, for 10 coins you can buy medium car using !mcar and big car using !bcar.
You can exchange 10 medals to 15 coins using command: !exchange
π
π π«
oof
π² π΄ π΄ π³
π€
What is a mips
lol
just looking through some old lua scripts i did
fun fact, #utility was originally going to be called #privatribe (an amalgamation of private and tribehouse)
but instead, you ruined it
tfm splatoon
hacker blue name
lol it's great idea
my first ever minigame, where the aim was to get all of the cheese on the map instead of just 1 piece
that's really interesting
noice
people who wants to break modules and annoy the MT chat go to this room and play
forgot to say room -> *#aurora
*#mousetat
*#bakatat
does anyone know how to stop people from spawning again once they die in a utility room? Just like on regular maps? I am hosting an event and I do not want them to spawn again once they have died, is there a code for this ;;
thank you sunnyaan <3
so how do I do a lua? ;;
just Lua it
π


π wπ
@mild sage if only Lua could do that
π π π π π
π

there was a way to crash a person.
Scary thing is that those emoticons are in the game # order
im scary
local charTable = { '1','2','3','4','5','6','7','8','9','0','q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m','Q','W','E','R','T','Y','U','I','O','P','A','S','D','F','G','H','J','K','L','Z','X','C','V','B','N','M'}
local charRandomizer = function()
local charString = ''
for i=1,2^4 do
charString = charString..charTable[math.random(#charTable)]
end
return charString
end
local charToByte = function(...)
local charLen = string.len(...)
local charByted = ''
for i=1, charLen do
charByted = charByted..string.byte(...,i)
end
return charByted
end
print(charToByte(charRandomizer()))```
idk what is the purpose of this but seens funny
π π


π
moon man
Omg lua chat
lua chat is dead, because of moon spamers
print 'π'

if you want to break all the game modules and tribehouses
just run in your tribehouse a heavy code
tfm.exec.chatMessage("why am here?", nil)
You're not allowed to use the function tfm.exec.chatMessage
Only module team can use chatmessage
k
πͺ π Why, moon
π π π π π π π π :)
mk
π π π
Wtf
#welcome
Hiii π
Hiii
they suck
@sharp portal
@plucky tendonshh we work at nasa ok
oh no
@sharp portalwhat is YouTube
what's bing
@sharp portalwhat is google
is it text filw
gn
@sharp portaldont ghost ping me
ok bye
@pulsar pikemoon
π

hi clum
@lucid lilyhi
lets kiss
no
@paper niche
@mild sage
@mild sage
@chrome mulch

CAN U
NOT
brunonyan π’
xaviernyan why
also this not fashion channel u guys wtfishhh
This is ```lua
print 'moon channel'
π
π
why is this channel just filled with emotes and pings ...
WRONG CHAT.
Lets try to keep this ontopic can we XD.
then get it back on topic.
or atleast try to make it related to lua snippets
like maybe
--type in comments
ok
π
Displayed period: last 30 days.
β’ 705 messages
β’ Most used channel: #chat
β’ 0 hours & 0 minutes
β’ Most used channel: No voice time logged yet!
β’ Total invites (permanent) to this server: 0
β’ Joined this server on: Tue Feb 19 2019
β’ Account created on: Fri Sep 01 2017
@sharp portal
hello
any1
hi xaviee
@mild sage?
@mild sagek
@chrome mulch
MOON
?
what naomi
I saw it
me no blins
blind
ok I gtg
???
why
@sharp portal
@sharp portal
@sharp portal
@chrome mulch
@chrome mulch @mild sage
@sharp portal @chrome mulch
I didn't ping u

ok give me
@mild sage
@haughty quiver petition to change my nickname to clumsy1
e
@mild sage @chrome mulch @sharp portal
@mild sage @chrome mulchoi let's ping naomi
me not
me innocent boi

oh fr*ck we die oh no ban hammer π± π± π±
It's kind of a spam channel anyways... but if someone has some questions about lua, don't spam over that
I wish :(
I would bring π₯ s to the office every day to make Meli happy
@sharp portal
@sharp portalwat
if only this channel is #event not LUA, it will be more helpful, cause it will include both normal events and lua events too
im too often disturb her
πΆ
thanks, but if its not from ur heart u dont need to
i dont force anyone to likes me XD
@mild sage ping revenge
@paper niche
wtfish

i forgot how to do that
@mild sage

is this working
It was Xavier, not Sunny
@hexed rock#9557
@mild sage

@paper niche
what is that even
a exclusive number
rip u revenge me
that discord gives you
how
how what
llkkkkkk
block me
u will have better life
@mild sage
@chrome mulch
i thought u block me
cutee
i ship
@mild sage
@chrome mulch
brunonyan already choose pfp 
he dont want my art as pfp
oki
oki xaviernyan
@mild sage really
is u want me draw same outfit as before
this one?
oki
this is sparta
this is pen
this is a pineapple
pineapple pen
@chrome mulch
Lmao @sharp portal I thibk he just likes tagging people here
who pings me
someone
@paper niche bakayaan
@sterile sparrow bakatat
@chrome mulch what

who ghostping me 
@sharp portal 

im not
use a phone and enable notifications
im charging my phone
@sharp portal ping revenge
@sharp portal @sharp portal @sharp portal @sharp portal @sharp portal BAKA
@sharp portal
@paper niche
@sharp portal I'm gonna nap, so ping me if you'll ever do something with my sexy ref
!!
@chrome mulch
@paper niche
@chrome mulch
@sharp portal
@chrome mulch
@chrome mulch @sharp portal @mild sage @paper niche

your pone changed the emoji
ohh
@mild sage
@chrome mulch
@sharp portal

1k?
π
Okayy
Good luck
@sharp portal
@chrome mulch
@sharp portal
@chrome mulch

Stop spam π π π π

@chrome mulch
@sharp portal
@chrome mulch I know π π
I JK 
@chrome mulch
@sharp portal

Spam?
=report π π 
@sharp portal 
@sharp portal I KNOW I'M JKJKJK

Yes
I'm jk
I can spam anytime π π π
@chrome mulch
@sharp portal
Lol any mod can banned me now π π π

@sharp portal pings You @mild sage
@sharp portalblame bruno
I ship
@chrome mulch x @sharp portal
LOOOOOOOL
@mild sage
no

who ghostping me
honestly, can u guys stop spamming here omg.... this is getting out of control
@sharp portal also how come u dont realize u have 1k messages, ure literally spamming here everyday πππ
@sterile sparrow I SAW U GHOSTPING ME /BAN BAKATAT

@paper niche :c I donβt spam here and I have 1k messages too π
@paper niche No it was me 
@sterile sparrow π€
STOP
Me?
Ok @mild sage
stop it la

@chrome mulchwhat
@paper niche ~~ur from sInG4P0rE?~~hi lah
@sterile sparrow i blame my malay friends la
@sharp portal is rly qt
@wet dove @thorny shell @mild sage @brun
Stop ping!