|
| 23 Apr 2015 08:51 PM |
| Hi, im a new scripter and im building a game to escape a building that is on fire. I would like to spawn fire randomly. Could anyone help me get started or give me some tips. Thank you. |
|
|
| Report Abuse |
|
|
|
| 23 Apr 2015 09:09 PM |
| Instance.new("Fire",Parent) |
|
|
| Report Abuse |
|
|
| |
|
pketny
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 1162 |
|
|
| 24 Apr 2015 10:45 AM |
local fire = Instance.new("Fire") fire.Size = 10 fire.Parent = workspace.Part
Always set the parent as last property and never put it inside the Instance.new function. Setting the parent as last property will prevent the player from seeing you changing the instance's properties and not puttin the parent inside the Instance.new function will improve the speed of your code.
|
|
|
| Report Abuse |
|
|
|
| 25 Apr 2015 12:28 AM |
| Thankyou so much for all your input it is really helpful. |
|
|
| Report Abuse |
|
|