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: Lag causing Items to not load for Client?

Previous Thread :: Next Thread 
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 03:03 PM
So I have this Weapon Inventory, that's suppose to sort it the items in the StarterGear into a Gui but the weapons aren't loading for the client?

It works ingame of a non laggy place and it works on solo for the laggy place but not ingame for the laggy place. Also it works in ServerMode studio in laggy place.


Server:

repeat wait() until #StarterGear:GetChildren() > 0
for _,v in pairs(StarterGear:GetChildren()) do
if v:IsA("Tool") then
Amount = Amount + 1
end
end
print(Amount)
Remote:InvokeClient(p)

Remote.OnClientInvoke = function()
local Amount = 0
for _,v in pairs(StarterGear:GetChildren()) do
if v:IsA("Tool") then
Amount = Amount + 1
end
end
print(Amount)



For Non laggy places (Output):

1
1

For laggy places:

1
0

Any reason why or how to prevent this?




Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 03:35 PM
help xd
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 03:57 PM
please



Report Abuse
ikiled is not online. ikiled
Joined: 15 Jun 2012
Total Posts: 575
16 Apr 2016 04:03 PM
use :WaitForChild()

hope this helps


swag | ikiled | scripter
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 04:05 PM
How? I don't know what to :WaitForChild() because not every player has the same items.



Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 04:17 PM
:(



Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 07:09 PM
helppp



Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 07:34 PM
print('Bump')



Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 07:55 PM
Wtf this doesnt even work for localScript:

while wait(10) do
local Amount = 0
for _,v in pairs(StarterGear:GetChildren()) do
if v:IsA("Tool") then
Amount = Amount + 1
end
end
print(Amount)
if Amount > 0 then break
end
end

Always print 0 ingame but WORKS FINE in Studio and ServerMode (Studio)



Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 08:14 PM
can player even access stuff in StarterGear? I think they can right? It's their StarterGear



Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 08:26 PM
This annoying
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 08:56 PM
so I just tested it by removing and reading parts and it's defiantly lag or toomany bricks causing this
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 09:31 PM
whyyyy



Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 09:35 PM
whyyy
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
16 Apr 2016 10:43 PM
FFFFFFFFFFFFFF
Report Abuse
CreativitiesUnity is not online. CreativitiesUnity
Joined: 08 Nov 2014
Total Posts: 1281
16 Apr 2016 10:44 PM
so many bumps

Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
17 Apr 2016 05:41 AM
iklel
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
17 Apr 2016 06:21 AM
;(
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
17 Apr 2016 07:52 AM
cri



Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
17 Apr 2016 09:35 AM
omggg it's been like 24 hourss
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
17 Apr 2016 10:03 AM
Doesn't even work with FE off
Report Abuse
eRanged is online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
17 Apr 2016 10:34 AM
plss help



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