generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why does this script lag

Previous Thread :: Next Thread 
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
25 Mar 2017 01:10 PM
for _,v in pairs(game.Players:GetPlayers()) do
wait(0)
Reload(v)

It has like a delay on it in game.


~ Commander Xegic of TKC | "Learn, Adapt, Conquer" |
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
25 Mar 2017 01:12 PM
"wait(0)"
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
25 Mar 2017 01:12 PM
Because you're calling a function that yields...


Report Abuse
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
25 Mar 2017 01:13 PM
Reload=function(player)
player:LoadCharacter()
end

for _,v in pairs(game.Players:GetPlayers()) do
wait(0.1)
Reload(v)
end




~ Commander Xegic of TKC | "Learn, Adapt, Conquer" |
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
25 Mar 2017 01:14 PM
"Reload=function(player)
player:LoadCharacter()
end"

I already said in the other thread that this is stupid. I also don't know why you're expecting the code to run instantly if you're explicitly yielding.


Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
25 Mar 2017 01:15 PM
Is that from the :end chatted?
Report Abuse
Xegic is online. Xegic
Joined: 29 Jan 2016
Total Posts: 2105
25 Mar 2017 01:15 PM
I DON'T KNOW HOW TO CHANGE IT
WHAT DO I DO


~ Commander Xegic of TKC | "Learn, Adapt, Conquer" |
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image