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: team create is trash

Previous Thread :: Next Thread 
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
04 Apr 2016 02:28 PM
Always crashes me with this script when I test it

This is the main part of the code.

function Update_Items()
local state = false
local counted = 0
local totalCounted = 0
for i,v in pairs(counts) do
local Amount = GetItemCount(v.itemset.StringName.Value)
if Amount < v.maxCount then
for Number = 1,v.maxCount - Amount do
local newInstance = CreateItem(v)
newInstance.Parent = game.Workspace
v.count = 0
SpawnItem(newInstance,0,0,0,0,0,0)
wait()
end
else
counted = counted + 1
end
totalCounted = totalCounted + 1
end
if counted == totalCounted then
state = true
end
return state
end

Update_Items() --Initial game load

game.Workspace.ChildRemoved:connect(function()
Update_Items()
end)
Report Abuse
DevConsole is not online. DevConsole
Joined: 02 Jun 2008
Total Posts: 460
04 Apr 2016 02:30 PM
What were you expecting from a feature in beta stage? :P


Report Abuse
ghostleader is not online. ghostleader
Joined: 16 Feb 2008
Total Posts: 1131
04 Apr 2016 02:32 PM
You're probably doing something wrong, try disabling certain parts to find out what is crashing it, and get a solid simple reproduction of the bug so you can report it instead of complaining.
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
04 Apr 2016 02:35 PM
It worked before if I used a while loop instead of ChildRemoved. That's all I know of.
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
04 Apr 2016 02:51 PM
Woah! It's not just team create, but my other project too. It's a faulty roblox bug. :l
Report Abuse
ghostleader is not online. ghostleader
Joined: 16 Feb 2008
Total Posts: 1131
04 Apr 2016 03:15 PM
Then find the bug, and make a simple repro for me to report.
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
04 Apr 2016 03:17 PM
It could be your computer can't handle it or it's a bug in ur script
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
04 Apr 2016 03:30 PM
i doubt it sharp, this happened a lot in the past, it all went away on it's own. also my friend said his studio was crashing when we were in team create, idk if it was the script or not, the same crashing was happening in my other project with no team create and that script wasn't in the other game.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 Apr 2016 03:39 PM
Stop using team create.


Report Abuse
Crimsonal is not online. Crimsonal
Joined: 23 Apr 2011
Total Posts: 1795
04 Apr 2016 04:02 PM
Yeah it isn't his PC because my PC has good specs and it still crashed
Report Abuse
DevConsole is not online. DevConsole
Joined: 02 Jun 2008
Total Posts: 460
04 Apr 2016 04:05 PM
I have a monster spec'd PC and Roblox still crashes for me when the thread get's overloaded by some code. IT could be the code or it could be the fact that team create is still in beta and it's extremely buggy like most things in beta. I dont see why script execution would be any different in team create than in regular studio though. Either way it's one of the two. Run the code in normal studio mode, if it crashes, then you know it's the code.


Report Abuse
Crimsonal is not online. Crimsonal
Joined: 23 Apr 2011
Total Posts: 1795
04 Apr 2016 04:31 PM
Yeah. Probably so.
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
04 Apr 2016 04:42 PM
Good idea Dev! We'll try that. I was just trying to efficienize my script because using a while loop, like running unnecessary code every 1/30 seconds consumes memory. I was trying to bring it down by using a ChildRemoved event instead. Which, for some reason, crashes the game...
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