#why is my script still running after being enabled = false?
1 messages · Page 1 of 1 (latest)
if this is a local do you disable player's script, not starter player's script
its serversided
its placed in serverscriptservice
it's necessary to disable this script?
when you disable a script, it will not suddenly stop
the code inside will run till it's finished
so if you have connections
while loops
they will continue
till they have finished
idk
i just kinda feeled putting the
and connections you gotta disconnect them
script.enabled = false
you read what i said?
how do i
i recommend just don't disable script
r e m o v e ( )
Connections are the things you do when doing Event:Connect(function()
ik
if you want to disconnect an event
daspdma:Disconnect(Function()?
you gotta recognize it
so you'd first assign the connection to a variable
local a = grgrg:Connect(function()
and later in the code
when you want to disconnect
a:Disconnect()
and if you wish to disconnect inside the connect's function, you'd have to define the variable before
i used the enabled = false when a different script got triggered
wdym
how do i explain thi
basically
an script makes an event happen when a team has 0 players
after that checking
tjee script makes an hint with an text
thenn
pairs all players to get them into the good team
so it gets all players from bad and good team into good team
You should have never to deal with Enabled property
ik but
yeah
Why want you to disable ?
find an other way
the aim is the main causer cuz it detects if there is more than 0 players
and it needs like an
how do i explain this
30 seconds of survivals
but i need it to work
can you show the code ?
If you explain we can give u a alternative
this is main
it's a serverscript right
teamcheck script
both scripts are serversided
this will never happen
uh
if someone enters them
bro
it's not even necessary
there is an script that triggers smth when you accidentally die by yourself
it's just useless
but this will fire
when you get killed by bad team
it will
yes
but it's useless
you become bad team
but if you dont get killed by anybody
you become an ghost
thats why spmmaed these things
to prevent becoming an Ghost....
@echo fulcrum
i'd advise you to start watchin youtube tutorials and reading roblox docs
no
yes
nah i'd use devforum
i'll recommend to try to recode something simple
you just have to open that to understand
hitbox that detects something
use roblox docs too
and make it correctly
so there're no these unpolished unneeded things like repeats and so on
yo...gurt....
how do i explain this again...
the reason why i added script.enabled = false is bc
there is an script that detects if there is no player in a team
so that script resets the game too
so does main
4
but main is victoru
and that script is defeat

you can do all lobby matchmaking things in one script
just use local functions
to make it clean
yes but
how tf do i add an team detector if a team has 0 players
into a script that already has game.players.playeradded:connect(function()
you can have multiple connections in one script
lol
then
like pvp game
if one player uses skill
it means that othe players cn't use this skill?
script will just make another thread
what
and these lines will just work both
yk
when
you have connection
and it fires
activates*
your script will add a thread
ok bro
that will read all lines
my mind cant with this...
as i said
you should learn how to script properly
i see that you have knowledge
but you don;t know how to use it
try to make clock system
like so they can show current time of current device
script.parent
or just clock
just do something not that complicated
DUDE
and try to make it polished
** You are now Level 9! **
you know pairs
using these you can easily script tycon
but tycon is a system
many systems
and it's hard to imagine how all will work
so it's compicated and hard
yk?
youll get it in time buddy
bruh