#Connect Multiple Functions
1 messages · Page 1 of 1 (latest)
Are u trying to connect 2 functions to 1 mouse button
function Two()
PlaySound()
PlayHover()
end
Two()```
oh so u just play two functions with a function im dumb
lol
are u cool with me asking u more questions cuz u seem goated
wait u can do this ```lua
local function Print()
print('Help')
end
local function help()
print('Hello')
end
local function Hola()
print('test')
end
function All()
Print()
help()
Hola()
end
All()
list goes on forever if u have a lot
as u see it works
lol what is that for
how would i better group these variables
its for GUI
they are all buttons
and i want to group them as one variable
but is that the best way?
local Buttons = {Button1,Button2,Button3, and so on}```
u are better
thanks for helping me make an anime game like every other dude on the planet
lol
it also works like thislua local Part1 = workspace.Part1 local Part2 = workspace.Part2 local Locations = {Part1,Part2} local folder = workspace.Folder while task.wait(2) do local NewPart = Instance.new('Part',folder) NewPart.Position = Locations[math.random(#Locations)].Position end)
oh its a example of what locations can be set to from a Table
and can work for a lot of things
im confused though like why isnt it just wait(2)? also im not sure what a table is but i might just need to watch more videos lol
they dont use updated scripts
what like videos are outdated?
no they still work its just oudated
so what do u need help with also
well i mean would it be cool if i sent u my entire GUI script and u could help me shorten it or show what was definitely unnecessary
i can see what i can do
and and and and and and and
put them in a folder
(Or a table)
Either one works
tables are just folders for nerds 🤷♂️
lol
is this a table or a folder?
because its what i started using
table
also known as an array but dont call it that or you're a nerd
just saying
🤓
a folder is just a literal folder
thanks man
yw 👍