madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
|
| 18 May 2013 01:59 AM |
okay I have a problem here.
MY SCRIPT IS UNFINISHED, DON'T EVEN PLAN TO STEAL IT.
while true do f = FindFirstChild("Explosion") if (f ~= nil) then NEWPART = Instance.new("Part") NEWPART.Parent = Workspace. NEWPART.Position.position = f -- This here has the problem. how should I put Position together?
LightsOn = Instance.new("PointLight") LightsOn.Color = Color3.new(220, 145, 59) LightsOn.Range = 40 --not continued yet...
Any Solutions?
|
|
|
| Report Abuse |
|
|
Looah
|
  |
| Joined: 22 Feb 2013 |
| Total Posts: 922 |
|
|
| 18 May 2013 02:00 AM |
K5UHSIDXN52WYZBAO5SSA43UMVQWYIDZN52XEIDTOR2XA2LEEBZWG4TJOB2D6=== x.Position = y.Position
LFXXKIDXMVZGKIDTNVQXE5BAMVXG65LHNAQHI3ZAMRSWG4TZOB2CA3LZEBZWSZ3HPEXA==== |
|
|
| Report Abuse |
|
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
|
| 18 May 2013 02:03 AM |
So it should be...
NEWPART.Position = f.Position
? |
|
|
| Report Abuse |
|
|
Looah
|
  |
| Joined: 22 Feb 2013 |
| Total Posts: 922 |
|
| |
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
|
| 18 May 2013 02:12 AM |
Now it says on Output
10:06:53.346 - Workspace.Script:6: unexpected symbol near '=' |
|
|
| Report Abuse |
|
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
|
| 18 May 2013 02:14 AM |
| Owait, My problem, It was a mistake inside the script I MADE. |
|
|
| Report Abuse |
|
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
|
| 18 May 2013 02:15 AM |
10:14:16.049 - Workspace.Script:2: attempt to call global 'FindFirstChild' (a nil value)
What de heck, isn't dat correct? |
|
|
| Report Abuse |
|
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
| |
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 18 May 2013 09:07 AM |
| f=SOMETHING:findFirstChild("stoof") |
|
|
| Report Abuse |
|
|
darthpyro
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 3569 |
|
|
| 18 May 2013 09:07 AM |
uhh
f = FindFirstChild("Explosion")
Where are you trying to find this child?
f = game.Workspace:findFirstChild("Explosion") |
|
|
| Report Abuse |
|
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
|
| 18 May 2013 09:08 AM |
| oh, so it should be f = Workspace:findFirstChild("Explosion") |
|
|
| Report Abuse |
|
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
|
| 18 May 2013 09:16 AM |
anyways, There is still a problem, Whenever I shoot the rocket and it explodes, it won't work. Is there something wrong with the script?
function explosion() f = game.Workspace:findFirstChild("Explosion") if (f ~= nil) then NEWPART = Instance.new("Part") NEWPART.Parent = Workspace NEWPART.Position = f.Position
LightsOn = Instance.new("PointLight") LightsOn.Color = Color3.new(220/255, 145/255, 59/255) LightsOn.Range = 40 LightsOn.Parent = NEWPART wait(1) NEWPART:Destroy() end end
explosion()
Whenever i replace function with While true do, THE Studio crashes! |
|
|
| Report Abuse |
|
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
| |
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 18 May 2013 11:04 AM |
| replace while true do with while wait() do |
|
|
| Report Abuse |
|
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
| |
|
madiik
|
  |
| Joined: 10 Feb 2009 |
| Total Posts: 625 |
|
| |
|