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 » Scripters
Home Search
 

Re: new explosion instance

Previous Thread :: Next Thread 
y1p is not online. y1p
Joined: 05 May 2013
Total Posts: 350
30 Jan 2016 10:27 PM
How do i made an explosion using new.Instance
Report Abuse
NecroBumpism is not online. NecroBumpism
Joined: 25 Nov 2015
Total Posts: 534
30 Jan 2016 10:29 PM
Instance.new("Explosion")
Report Abuse
y1p is not online. y1p
Joined: 05 May 2013
Total Posts: 350
30 Jan 2016 10:45 PM
thats not making a new explosion
Report Abuse
NecroBumpism is not online. NecroBumpism
Joined: 25 Nov 2015
Total Posts: 534
30 Jan 2016 10:47 PM
because it's not parented
Report Abuse
y1p is not online. y1p
Joined: 05 May 2013
Total Posts: 350
30 Jan 2016 10:48 PM
halp
Report Abuse
NecroBumpism is not online. NecroBumpism
Joined: 25 Nov 2015
Total Posts: 534
30 Jan 2016 10:48 PM
local explosion = Instance.new("Explosion")
explosion.Parent = game.Workspace
explosion.BlastPosition = position
Report Abuse
NecroBumpism is not online. NecroBumpism
Joined: 25 Nov 2015
Total Posts: 534
30 Jan 2016 10:49 PM
sorry it's Position not BlastPosition
Report Abuse
kreeith is not online. kreeith
Joined: 02 Jul 2012
Total Posts: 3613
30 Jan 2016 11:00 PM
I tried this just for fun.. lol

function onButtonClicked()
local explosion = Instance.new("Explosion")
explosion.Parent = game.Workspace
explosion.Position = game.Workspace.Target
end

script.Parent.MouseButton1Click:connect(onButtonClicked)

but yet, somehow, I screwed it up.



Report Abuse
NecroBumpism is not online. NecroBumpism
Joined: 25 Nov 2015
Total Posts: 534
30 Jan 2016 11:02 PM
^ Explosion.Position is measured as a Vector3 value, not an Object value
change;
explosion.Position = game.Workspace.Target
...to;
explosion.Position = game.Workspace.Target.Position
Report Abuse
kreeith is not online. kreeith
Joined: 02 Jul 2012
Total Posts: 3613
30 Jan 2016 11:06 PM
Well, I'm generally surprised that I did not remember that.

better luck next time brain.



Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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