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: whats wrong with this

Previous Thread :: Next Thread 
cubs4ever7 is not online. cubs4ever7
Joined: 21 Dec 2009
Total Posts: 784
31 Mar 2012 08:31 PM
it used to work but now nothing happens

--[[this script rains rays of red
in random spots on the base. If you
happen to go in one you die.]]--
print("Ray script Activated")
h=Instance.new("Hint",workspace)
h.Text="Its shooting rays from the sky!"
while true do wait()
part=Instance.new("Part",workspace)
part.Size=Vector3.new(1,350,1)
part.Name="Ray"
part.BrickColor=BrickColor.new("Really red")
part.Anchored=true
part.CanCollide=false
part.CFrame=CFrame.new(Vector3.new(math.random(-256,256),175,math.random(-256,256)))
ex=Instance.new("Explosion",workspace)
ex.BlastRadius=100
ex.BlastPressure=1000000
ex.Position=part.Position-Vector3.new(0,175,0)

function onTouched(hit)
f=Instance.new("Fire",hit)
f.Size=10000
end

part.Touched:connect(onTouched)

function onTouched(hit)
h=hit.Parent:findFirstChild("Humanoid")
if h~= nil then
h.Health=0
end
end

part.Touched:connect(onTouched)

for i = 1,100 do wait(0.03)
part.Transparency=part.Transparency+0.01
end
wait()
part:remove()
end
Report Abuse
cubs4ever7 is not online. cubs4ever7
Joined: 21 Dec 2009
Total Posts: 784
31 Mar 2012 08:41 PM
bump
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