I’m a little stupid and have never used a Module Script before as I’m not really into game development and just have fun but I’m working on a project that requires the use of Module Scripts.
Does anyone know how to check if this ‘Table Variable’ is true or false?
This is a stupid question but I literally have never used Module Scripts before, sorry!
local Robux = {}
Robux.Boredom = {
BoredSquad = true
}
if Robux.Boredom.BoredSquad == true then
Player:Kick('dfsdfasdfadfg')
end
return Robux -- returns the table so it can be accessed by the scripts that call it
also, are you requiring this module anywhere? If not insert a normal server script and do so
Nope, still doesn’t work and I am not requiring this module or anything. I’m just messing around and trying to learn new things for a private project.
My Code :
local Robux = {}
Robux.Boredom = {
BoredSquad = true
}
if Robux.Boredom.BoredSquad == true then
game.Players.LocalPlayer:Kick('dfsdfasdfadfg')
end
return Robux