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: Rapid random explosion positioning trouble

Previous Thread :: Next Thread 
imcoolfire8 is not online. imcoolfire8
Joined: 23 Nov 2009
Total Posts: 3008
11 Aug 2011 02:55 PM
The name of the script of course is UisforUraniumBoooomb
the output says this:
Workspace.UisforUraniumBoooomb:5: ')' expected near ','
_____________________________________________________
Script:

while true do
wait(0)-- 0 would crash the server :P
local e = Instance.new("Explosion")
e.Parent = game.Workspace
e.Position = Vector3.new(math.random(-255.5,255.5), (math.random(1,0), (math.random(255.5,-255.5))
e.BlastPressure = 999999
e.BlastRadius = 100
-- Explosion remove themselfs
end
-- Made by imcoolfire8, with a little positioning help from the scripting helpers--
Report Abuse
xxDARKSTERxx is not online. xxDARKSTERxx
Joined: 02 Nov 2010
Total Posts: 2358
11 Aug 2011 02:57 PM
You missed a parenthesis at line 5?
Report Abuse
matthewhwang is not online. matthewhwang
Joined: 02 Jun 2008
Total Posts: 5811
11 Aug 2011 02:59 PM
while true do
wait()
local e = Instance.new("Explosion")
e.Parent = game.Workspace
e.Position = Vector3.new(math.random(-255,255), math.random(1,0), math.random(255,-255))
e.BlastPressure = 999999
e.BlastRadius = 100
-- Explosion remove themselfs
end
Report Abuse
kornawe is not online. kornawe
Joined: 25 Nov 2008
Total Posts: 1272
11 Aug 2011 03:11 PM
e.Position = Vector3.new(math.random(-255.5,255.5), (math.random(1,0), math.random(255.5,-255.5))
Report Abuse
kornawe is not online. kornawe
Joined: 25 Nov 2008
Total Posts: 1272
11 Aug 2011 03:13 PM
NVM This is what it should be I think math.random doesn't have () around it and if you put one infront put one after it to:

(math.random(-1,1))
or
math.random(-1,1)
NOT
(math.random(-1,1)

e.Position = Vector3.new(math.random(-255.5,255.5), math.random(1,0), math.random(255.5,-255.5))
Report Abuse
xxDARKSTERxx is not online. xxDARKSTERxx
Joined: 02 Nov 2010
Total Posts: 2358
11 Aug 2011 03:27 PM
"NOT
(math.random(-1,1)"

There is a parenthesis before math.random() because he's messing with Vector3 values.

>_>

Vector3.new()
Report Abuse
imcoolfire8 is not online. imcoolfire8
Joined: 23 Nov 2009
Total Posts: 3008
11 Aug 2011 04:08 PM
I need a random tho -__- you all are confusing me!
Report Abuse
imcoolfire8 is not online. imcoolfire8
Joined: 23 Nov 2009
Total Posts: 3008
11 Aug 2011 04:12 PM
I think the - is breaking it!
Report Abuse
Blankscarface23 is not online. Blankscarface23
Joined: 12 Apr 2011
Total Posts: 1234
02 Jun 2012 06:15 PM
heres the deal,
it is very very unlikely for a random explosion to come near you when you do random vector3.new coordinates so what i suggest is making an infinite strings of coordinates near your game so say if you were playing on a naturally placed base plate and you wanted your explosion to be in the middle you would say x=Instance.new("Explosion",game.Workspace)
so if you want it to be random near your thing you can also place it on a brick with this script as long as you name every brick you want to be included as "Part"
hope that helped
--Blankscarface23

Report Abuse
FPShooter319 is not online. FPShooter319
Joined: 28 May 2012
Total Posts: 153
02 Jun 2012 06:19 PM
Your missing a closing ).
use this line:

e.Position = Vector3.new(math.random(-255.5,255.5), math.random(1,0), math.random(255.5,-255.5))

MrMcAero
Report Abuse
malachi11 is not online. malachi11
Joined: 07 May 2008
Total Posts: 2420
02 Jun 2012 06:42 PM
The lowest number always comes first in math.random.
Report Abuse
imcoolfire8 is not online. imcoolfire8
Joined: 23 Nov 2009
Total Posts: 3008
04 Jun 2012 10:16 PM
^cOLD mOLD on a sLATE pLATE^
And since I have dramatically improved my scripting skills.

♪ Can you dig it? ♪
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
04 Jun 2012 10:24 PM
while true do
wait(0)-- IT doesn't actually wait 0 ...
local e = Instance.new("Explosion")
e.Parent = game.Workspace
e.Position = Vector3.new(math.random(-255.5,255.5), math.random(1,0), math.random(255.5,-255.5))
e.BlastPressure = 999999
e.BlastRadius = 100
-- Explosion remove themselfs
end
Report Abuse
imcoolfire8 is not online. imcoolfire8
Joined: 23 Nov 2009
Total Posts: 3008
05 Jun 2012 06:52 AM
IT'S DONE.

♪ Can you dig it? ♪
Report Abuse
zeax12 is not online. zeax12
Joined: 11 Sep 2008
Total Posts: 433
05 Jun 2012 07:00 AM
._. i bet this code is for an exploit isn't it... naughty naughty...
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
05 Jun 2012 07:01 AM
I think he just wants to obliterate the planet :o
Report Abuse
imcoolfire8 is not online. imcoolfire8
Joined: 23 Nov 2009
Total Posts: 3008
05 Jun 2012 07:04 AM
This is so old. Look at the post date. And plus now I realized what I did was stupid. I infected a bunch of models with this code and used tick() to make a timed release. But only like 5 people took the model. :P

♪ Can you dig it? ♪
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