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: I still can't figure the problem. :/

Previous Thread :: Next Thread 
Basquetbol is not online. Basquetbol
Joined: 09 Apr 2012
Total Posts: 819
24 Apr 2012 06:04 PM
function onTouch(Part)
x = game.Workspace.Part
if x.Transparency == 0 then
x.Transparency = 0.5
if x.CanCollide == false then
x.CanCollide = true
print(Hello)
h = Instance.new("Explosion")
h.Parent = game.Workspace.Part
h.BlassPressure = 25
h.BlastRadius = 10
h.Position = Vector3.new(10, 10, 10)
end
end
end
script.Parent.Touched:connect(onTouch)

Help?

~Basquetbol~
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
24 Apr 2012 06:21 PM
Multiple Parts in Workspace? If not then idk.
Report Abuse
TwoBoo is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
24 Apr 2012 06:22 PM
Didn't I already fix this on your other thread?

1) you don't need to define the Part when the script is in the part.
2) explosion's parent should be in the workspace so everyone can see.
3) h.Position = script.Parent.Position OR h.Position = script.Parent.Position + Vector3.new(10,10,10)
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
24 Apr 2012 06:22 PM
And what exactly is your problem?
Report Abuse
malachi11 is not online. malachi11
Joined: 07 May 2008
Total Posts: 2420
24 Apr 2012 07:19 PM
"h.BlassPressure"

...
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
24 Apr 2012 07:20 PM
.-.
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