of     1   

AvtomaticKalashnikov
#154997609Saturday, January 31, 2015 7:29 AM GMT

I made a game based on an alien jungle planet, it turned out great. Except one problem. I lag when I look at a tree...why does that happen? And how can I fix it?
Scottifly
#154998343Saturday, January 31, 2015 7:56 AM GMT

How many parts in the tree? If there are thousands in a small area it can cause lag there. Have you used any free models? They may contain lag causing scripts. Do you used Anchored Parts for all non-moving sections of your game? This can lessen lag.
AvtomaticKalashnikov
#155067498Sunday, February 01, 2015 2:50 AM GMT

Very few parts are on the trees, probably 24 in all, and maybe 100-200 trees. And yes they are free models...Ive got to change that.
Scottifly
#155089889Sunday, February 01, 2015 10:07 AM GMT

Go to your place in Edit mode. View > Explorer. Select a tree Model and click the + sign next to it in the Explorer window. Click all the + signs in all the Parts of the model, and any other ones you find. If you find a Script that you didn't put in the Game, double click the word Script and you can read the contents of it. If you don't understand scripting look for telltale signs like copies of scripts, Fire, Script names like 'Dang, you got owned' or 'Fire' or crud like that. These are common names of scripts that have been copied and placed in Free Model items.
AvtomaticKalashnikov
#155160396Monday, February 02, 2015 3:22 AM GMT

Did that, nothing still. I will find new trees I guess.
TC8950
#155163095Monday, February 02, 2015 3:54 AM GMT

They could have hidden objects in them. Look for a script that removes hidden objects.
AvtomaticKalashnikov
#155190248Monday, February 02, 2015 5:29 PM GMT

I just replaced the trees, it still lags. So I'm assuming its the terrain.
wolf_prefab
#155190436Monday, February 02, 2015 5:33 PM GMT

Try Turning on StreamingEnabled and FilteringEnabled in workspace.
wolf_prefab
#155190511Monday, February 02, 2015 5:35 PM GMT

Also right clikc the view tab and select "Script Performace" Run your game and see if one script is using ALOT of activity or rate. Also if you have any while loops, try increasing the wait()
AvtomaticKalashnikov
#155237499Tuesday, February 03, 2015 4:22 AM GMT

Is the streaming thing in properties? How do I get there? Its been a couple years since I have built a place, and the new update doesn't help.
TC8950
#155239797Tuesday, February 03, 2015 5:11 AM GMT

The things free mentioned are in the Workspace's properties.
AvtomaticKalashnikov
#155613621Monday, February 09, 2015 2:13 AM GMT

Ok I retried everything....I have like a billion fire and "you got infected LOLOLOLOLOL" script thingies. How do I get rid of them and still keep my model without restarting....Because I put a lot of work in it. And what if just one bush caused this. Is there a free script that can help me? Do I have to take two or three hours and delete every single one? Would this have effected my other places or models, even though they never came in contact? Would this ruin my friends models? Because I gave it to him? PLEASE PM ME AND HELPPPPP -A Captain In distress My ships sinking....... At least I still have my sense of humor XD
Scottifly
#155629695Monday, February 09, 2015 8:07 AM GMT

The problem is these spread scripts run and copy themselves into Parts that are touching each other. Your character can even get them in Build mode and spread them. Always always always look at free models in Edit mode to keep this from happening, and open up the model completely by clicking the + signs next to the Model and components. Here is how to insert this script that should delete all instances of the script. Open your game in studio edit mode. View > Command Bar. Put the following command in the command bar then hit enter to run the command. If you have other viruses you can change the name "Fire" in the script to that virus's name. Script was provided to me by SCARFACIAL: while Game:FindFirstChild("Fire", true) or Game:FindFirstChild("Spread", true) do (Game:FindFirstChild("Fire", true) or Game:FindFirstChild("Spread", true)):Remove() end
ShiKaizoku
#155631948Monday, February 09, 2015 10:43 AM GMT

Best way to dodge such situations is trying to keep your place as free from free models as possible. If you ever want to use free models make sure to check the insides for hidden scripts. Making alot of backup saves is a good thing too , roblox files don't take more than few kilobytes at most cases.
AvtomaticKalashnikov
#155803057Thursday, February 12, 2015 6:39 AM GMT

Turns out, half the models I used where infected! So I'm restating from scratch! So far so good! I even posted on the models saying they where infected. Hopefully that helps future players. I'm using less free models, and what models I do use I ceach to see if they are infected first! Thanks guys! This forum is now officaily useless to me!

    of     1