#why is my script still running after being enabled = false?

1 messages · Page 1 of 1 (latest)

echo fulcrum
#

damn

grave helm
#

if this is a local do you disable player's script, not starter player's script

echo fulcrum
#

its placed in serverscriptservice

grave helm
#

it's necessary to disable this script?

pine zephyr
#

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

echo fulcrum
#

i just kinda feeled putting the

pine zephyr
#

and connections you gotta disconnect them

echo fulcrum
#

script.enabled = false

pine zephyr
#

you read what i said?

echo fulcrum
grave helm
#

i recommend just don't disable script

echo fulcrum
pine zephyr
echo fulcrum
#

ik

pine zephyr
#

if you want to disconnect an event

echo fulcrum
#

daspdma:Disconnect(Function()?

pine zephyr
#

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

echo fulcrum
#

oh

#

but wait

pine zephyr
#
local a
a = aaa:Connect(function()
  a:Disconnect()
  a = nil
end)
#

set it to nil too

echo fulcrum
#

i used the enabled = false when a different script got triggered

pine zephyr
#

wdym

echo fulcrum
#

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

dire ermine
#

You should have never to deal with Enabled property

echo fulcrum
#

ik but

pine zephyr
#

yeah

dire ermine
#

Why want you to disable ?

pine zephyr
#

find an other way

echo fulcrum
#

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

pine zephyr
#

can you show the code ?

dire ermine
#

If you explain we can give u a alternative

echo fulcrum
#

aight

#

the main scriot

pine zephyr
#

send a screenshot

#

not a text

echo fulcrum
#

too late...

pine zephyr
#

nah that's fine

#

it's in a txt file

echo fulcrum
pine zephyr
#

it's a serverscript right

echo fulcrum
pine zephyr
#

excuse me

#

what

#

is this

echo fulcrum
pine zephyr
#

this will never happen

grave helm
#

why?

#

this will repeat until there're not 0 players on the server

pine zephyr
#

servers

#

are startd

echo fulcrum
#

uh

pine zephyr
#

if someone enters them

echo fulcrum
pine zephyr
#

bro

grave helm
#

but this will trigger lol

pine zephyr
#

i mean

grave helm
#

it's not even necessary

echo fulcrum
#

there is an script that triggers smth when you accidentally die by yourself

pine zephyr
#

it's just useless

grave helm
#

but this will fire

echo fulcrum
#

when you get killed by bad team

pine zephyr
#

it will

grave helm
pine zephyr
#

but it's useless

echo fulcrum
#

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....

pine zephyr
#

@echo fulcrum

#

i'd advise you to start watchin youtube tutorials and reading roblox docs

grave helm
#

no

pine zephyr
#

yes

echo fulcrum
grave helm
#

i'll recommend to try to recode something simple

pine zephyr
grave helm
#

hitbox that detects something

pine zephyr
grave helm
#

and make it correctly

#

so there're no these unpolished unneeded things like repeats and so on

echo fulcrum
#

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

grave helm
echo fulcrum
#

i do NOT know what im doin

grave helm
#

you can do all lobby matchmaking things in one script

#

just use local functions

#

to make it clean

echo fulcrum
#

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()

grave helm
#

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

echo fulcrum
#

what

grave helm
#

and these lines will just work both

#

yk

#

when

#

you have connection

#

and it fires

#

activates*

#

your script will add a thread

echo fulcrum
#

ok bro

grave helm
#

that will read all lines

echo fulcrum
#

my mind cant with this...

grave helm
#

seperatly

#

like another script

#

but this is the same script

echo fulcrum
#

dude i cant

#

imma just find my way

grave helm
#

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

echo fulcrum
grave helm
#

or just clock

grave helm
echo fulcrum
grave helm
#

and try to make it polished

echo fulcrum
#

I KNOW LIKE

#

3% OF CODING

#

😭

grave helm
#

no lol

#

you know variables

real mapleBOT
#

studio** You are now Level 9! **studio

grave helm
#

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?

wary epoch
echo fulcrum