#Runservice Shenanigans
1 messages · Page 1 of 1 (latest)
And we'll read your mind to know what the issue is
Calm, I'm tryna paste the code
then explain
it's pretty long
basically, through debugging
I've found out it breaks once there's more than 1 player charging
(cld be from the server not from the function)
it creates and inf activation loop
so it's stuck either charging
or discharging
it's almost like when one person charges, others can't charge or they're stuck in the charging state they were
basically it
Client -> Server put all datas in a table to know which one is holding you probabaly have the server only in one state variables
can you rephrase
i havent read the script yet
but i assume you do this:
--server
local charging = false
local remote = remotepath
remote blh nlah blah:Connect(function()
charging = true
end)
im lazy
im on phone
basically
I'll show what i died basically
what
so
first the script wld check if the charging connection was active if it was supposed to dsicharge
if it was on, it wld disconnect it
it did the same when it wanted to charge
check if the discharge connection was active before charging, if it was it wld disconnect
and I sued runservice for it
Was the variable global?
I've looked through everything
the only global vairables are the events
oh wait
the charging and discharging variables are global
😭
faaahhh
theres your problem
LMAO
server lag 📈