|
| 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 |
|
| |