|
| 27 Jul 2016 09:29 AM |
Ok so I have a modulescript in ReplicatedStorage and even the SIMPLEST function makes a massive spike in script performance
for example: function _M:Heal(PlayerName, Amount, Overcharge) if Overcharge==false then game.Players[PlayerName].Character.Humanoid.Health=(game.Players[PlayerName].Character.Humanoid.Health+Amount)%100 else --overcharge=true game.Players[PlayerName].Character.Humanoid.Health=(game.Players[PlayerName].Character.Humanoid.Health+Amount)%200 end end
^^spikes it up along with a bunch of simple functions help? |
|
|
| Report Abuse |
|
|
Everoso
|
  |
| Joined: 26 Jul 2016 |
| Total Posts: 189 |
|
|
| 27 Jul 2016 09:30 AM |
They aren't laggy, not sure if this is a troll. What are you doing that's making it so inefficient?
|
|
|
| Report Abuse |
|
|
|
| 27 Jul 2016 09:30 AM |
Probably your coding. Modules work fine for me. ;)
( ͡• ◡ ͡•) -=[ RAP: 347,998 || DurstAuric; the narb of ROBLOX ]=- ( ͡• ◡ ͡•) |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2016 09:31 AM |
THIS IS NOT A TROLL :( i'm being serious, i know about script performance and the scripts are super simple it just spikes it up like CRAZY |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2016 09:33 AM |
| like the script above literally has a full 1 second delay :( |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2016 09:49 AM |
@durst the coding is about as simple as is it gets
on part.Touched it checks for humanoid as usual and THEN calls the module to run the function it works fine but it spikes hard
is it because of where the modulescript is? p.s. my computer is fine |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2016 09:52 AM |
wiki.roblox.com/index.php?title=Fighting_Lag
( ͡• ◡ ͡•) -=[ RAP: 348,045 || DurstAuric; the narb of ROBLOX ]=- ( ͡• ◡ ͡•) |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2016 09:59 AM |
i read that :( and i also read the official lua manual to fighting lag a while back my scripts should have no lag
interestingly, there is ZERO delay in studio (when it's local) but in game it's bad) |
|
|
| Report Abuse |
|
|