|
| 25 Aug 2011 10:05 AM |
function onTouch() fire=Instance.new("Fire") fire.Parent=game.Workspace fire.Name="Fire" fire.Heat=(25) fire.Size=(30) fire.Position=script.Parent.Position local msg=Instance.new("Message") msg.Text="Something" msg.Parent=game.Workspace msg.Name="MSG" wait(2) a:remove() end
script.Parent.Touched:connect(onTouch)
Can someone tell me what's wrong with this? |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 25 Aug 2011 10:08 AM |
Always include Output. I'm not fixing, I'm adding comments so you can fix it yourself.
function onTouch() fire=Instance.new("Fire") fire.Parent=game.Workspace -- Parent it to the part. fire.Name="Fire" fire.Heat=25 fire.Size=30 fire.Position=script.Parent.Position -- You can't set the position of the fire, only the Part it's in. local msg=Instance.new("Message") msg.Text="Something" msg.Parent=game.Workspace msg.Name="MSG" wait(2) a:remove() -- Never defined what a is. end
|
|
|
| Report Abuse |
|
|
| |
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 25 Aug 2011 10:10 AM |
Oops, I edited 2 lines instead of adding comments, so I'll post the two lines not edited and tell you what I did with them.
fire.Heat=(25) fire.Size=(30)
You don't need the brackets surrounding the numbers. |
|
|
| Report Abuse |
|
|