#im worrying about my script continuing after an script-reset. plus the error detecter doesnt work
1 messages · Page 1 of 1 (latest)
for i,v in game.Players:GetPlayers() do
i = nil
v.Character.Health = 0
v.Team = game.Teams.Humans
tick()
v.Team = game.Teams.Humans
tick()
v.Team = game.Teams.Humans
tick()
v.Team = game.Teams.Humans
tick()
v.Team = game.Teams.Humans
tick()
v.Team = game.Teams.Humans
tick()
v.Team = game.Teams.Humans
tick()
end
``` wtf is this
is this a script from 2015
We didn't rlly use Messages much past 2012 tbf
why are u storing maps in Lighting
replicated storage is overrated
ok
uh
there is an script that detects if a player die
so it uh
turns it into a zombie team
so i covered into that thing just bc to cover it
Humanoid.Died:Connect(function() end)
incase a player lags
guy applying bandages n shit to a script
bruh
low end devices...
All client-side
ik
So what exactly are you worried about?
Very rookie.
which can cause an loophole
First off, if you disable the script - it won't run anymore.
Which means it never turns on.
Also tick() is not a replacement for task.wait()
💀
tfym skull
wdym enabled or disabled
if the script is enabled then it runs
if it is disabled it won’t
ok
so i should just put task or what
if u change the enabled property in the same script u wont halt it
it will still execute everything
that is what im worrying about
return exits early if ur wondering
brain stopped working
bur ok
plus
why the uh
error detector starts to stop functioning after the script resets
where should even i put the return...
where you want the script to exit
uhh
and stop anything else from executing
i haven’t even seen ur script
the near end
??
basically i want to halt the script after an event like if -04738084 == idk then
or after an repeat
but my biggest nightmare is that
when the if are complete then
okay so make it a function and call the function and break whenever that condition is true
idk how much clearer i can be
but what function
** You are now Level 12! **
i get that you want me to do an function but
what function if the if detects if the game divided 1 / 3
send the code
where exactly you want it to stop the rest of the script from executing
okay where?
so make that a function
do u know how to script?
yup
for i,v in game.players:getplayeres() do
and bkah
if i idnt know how to script
wdym how bro
u clearly don’t
u make a function e.g using number of players as an argument
call the function when you want to check if number of players is less than 1 and return if it is true
ur kinda right since i quitted scripting two years ago then came back
how i am supposed to remember...
just stop lying
ok, whatever you say.
so you made that whole script
when someone doesnt agree in your opinion thats the only thing you say
yes
and you don’t know how to create a function
?
while you make numerous functions and use modules in your scripts
i know how to make an function but i have never saw an function use numbers
why would a function not be able to use a number?
i mean, i didnt see a function detect an number value
t
that is what i mean
meant
how would you attempt do this then
if?
the function to return if cond is true
ok but
how should i use the function
like when i end the doing the function is just do
siop(idk)
or something like that
like my brain isnt working in this type of situation
you call it
Seperate your code into functions at the very least
You never want an unambiguous blob of code
then i disconnect it?