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 » Scripting Helpers
Home Search
 

Re: Explosion PointLight

Previous Thread :: Next Thread 
madiik is not online. 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 is not online. Looah
Joined: 22 Feb 2013
Total Posts: 922
18 May 2013 02:00 AM
K5UHSIDXN52WYZBAO5SSA43UMVQWYIDZN52XEIDTOR2XA2LEEBZWG4TJOB2D6===
x.Position = y.Position

LFXXKIDXMVZGKIDTNVQXE5BAMVXG65LHNAQHI3ZAMRSWG4TZOB2CA3LZEBZWSZ3HPEXA====
Report Abuse
madiik is not online. 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 is not online. Looah
Joined: 22 Feb 2013
Total Posts: 922
18 May 2013 02:06 AM
mhm
MR2WQ===

0A+0B=15
Report Abuse
madiik is not online. 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 is not online. 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 is not online. 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 is not online. madiik
Joined: 10 Feb 2009
Total Posts: 625
18 May 2013 09:05 AM
bump
Report Abuse
btft is not online. btft
Joined: 19 Feb 2011
Total Posts: 1512
18 May 2013 09:07 AM
f=SOMETHING:findFirstChild("stoof")
Report Abuse
darthpyro is not online. 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 is not online. 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 is not online. 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 is not online. madiik
Joined: 10 Feb 2009
Total Posts: 625
18 May 2013 09:22 AM
bump...
Report Abuse
btft is not online. 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 is not online. madiik
Joined: 10 Feb 2009
Total Posts: 625
19 May 2013 05:38 AM
I hope it works.
Report Abuse
madiik is not online. madiik
Joined: 10 Feb 2009
Total Posts: 625
19 May 2013 05:38 AM
YUS, IT WORKED!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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