User:Jak12321: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Charl3s7
No edit summary
>Jak12321
Line 121: Line 121:
wait(0.5)
wait(0.5)
<nowiki></nowiki>
<nowiki></nowiki>
<nowiki>Insert non-formatted text here</nowiki><nowiki>Insert non-formatted text here</nowiki>

Revision as of 15:47, 4 March 2008

--Hey, im charl3s7, i just wanted to say hi!--

Scripts that may help!

Thanks to Telemon Miked and jak12321 (might be others)

Trapdoor:--

print("Trapdoor loaded")

local trapdoor = script.Parent

while true do --Repeat Line

  wait(5) --Standby for 5 seconds
  trapdoor.Transparency = 1 --Invisible
  trapdoor.CanCollide = false  --Make trapdoor disappear and have anyone on the brick fall through
  wait(1) --Wait before I Go Back To Normal
  trapdoor.Transparency = 0 --Visible
  trapdoor.CanCollide = true  --Return brick to normal condition

end

FireWorks:--

game.Lighting.TimeOfDay = "08,00,00" e = {}

msg = Instance.new("Message") msg.Text = "Get ready for the science labs awesome fireworks!" msg.Parent = game.Workspace

p = game.Players:GetChildren() ch = game.Workspace:GetChildren() for i = 1, #p do

   for j = 1, #ch do 
       if ch[j].Name == p[i].Name then 
           ch[j]:MoveTo(Vector3.new(math.random(-500,-450),200,math.random(-50,50))) 
           ch[j].Torso.Anchored = true 
       end 
   end 

end

wait(3) msg:Remove()

for n = 1, 10 do

   for t = 1, 2 do 
       x = math.random(-100, 100) 
       y = math.random(50,150) 
       z = math.random(-100,100) 
       e[t] = Instance.new("Explosion") 
       e[t].Position = Vector3.new(x,y,z) 
       e[t].BlastPressure = 100 
       e[t].Parent = game.Workspace 
       col = BrickColor.Random() 
       for i = 1, 100 do 
           b = Instance.new("Part") 
           b.Size = Vector3.new(math.random(1,5), math.random(1,5), math.random(1,5)) 
           b.BrickColor = col 
           b.Name = "aBrick" 
           b.Position = Vector3.new(x+math.random(-1,1), y+math.random(-1, 1), z+math.random(-1, 1)) 
           b.Parent = game.Workspace 
           b.Velocity = Vector3.new(math.random(-20,20), math.random(-5,200), math.random(-20,20)) 
       end 
       wait() 
   end 
   wait(5) 

end wait(2)

p = game.Players:GetChildren() ch = game.Workspace:GetChildren() for i = 1, #p do

   for j = 1, #ch do 
       if ch[j].Name == p[i].Name then 
           ch[j]:MoveTo(Vector3.new(math.random(-50,50),10,math.random(-50,50))) 
           ch[j].Torso.Anchored = false 
       end 
   end 

end

ch = game.Workspace:GetChildren() for i = 1, #ch do

   if ch[i].Name == "aBrick" then 
       ch[i]:Remove() 
   end 

end

game.Lighting.TimeOfDay = "12,00,00"


Explotion block:--

function Explosion(blastRadius, blastPressure, position)

  local Boom = Instance.new("Explosion")
  Boom.Parent = game.Workspace
  Boom.BlastRadius = blastRadius
  Boom.BlastPressure = blastPressure
  Boom.Position = position

end

function onTouched(part)

  local h = part.Parent:FindFirstChild("Humanoid")
  if h~=nil then
     Explosion(10, 1000, Vector3.new(10,10,10)) --All numbers are edittable.
  end

end

script.Parent.Touched:connect(onTouched) --If you want to change which brick to touch, change "script.Parent".



CoulourFull Brick:--


while true do script.Parent.Color = Color3.new(math.random(), math.random(), math.random()) wait(0.5) <nowiki> Insert non-formatted text hereInsert non-formatted text here