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 » Club Houses » Clans & Guilds
Home Search
 

Re: How to make Glass that you can break!

Previous Thread :: Next Thread 
alexslime is not online. alexslime
Joined: 11 Sep 2010
Total Posts: 63
20 Dec 2015 09:04 AM
-----Brick-Boom-script-----

local head = script.Parent
local sound = head:findFirstChild("Boom")
local toggle = false

function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
if toggle == false then
toggle = true
wait()
sound:Play()
end
end
end

script.Parent.Touched:connect(onTouched)




Script for the trigger

local dir = script.Parent.Parent.Parent.Debre -- Where the bricks are stored.
local AName = "ShowUp" -- Name of the brick that will appear.
local DName = "GoAway" -- Name of the bricks that will disappear.
local set = false
function onTouch(part)
if set == false then
if part.Parent:FindFirstChild("Humanoid") ~= nil then
set = true
local items = dir:GetChildren()
for i,k in pairs(items) do
if k.Name == AName then
k.Transparency = 0
k.CanCollide = true
end
if k.Name == DName then
k.Transparency = 1
k.CanCollide = false
end
end
end
script.Parent.Smoke.Enabled = true
wait(2)
script.Parent.Smoke.Enabled = false
end
end

script.Parent.Touched:connect(onTouch)




SIDE NOTE: MAKE A MODEL CALLED "Debre" and put it under a "Model" name the model "Glass"
Also add a ThumbnailCamera before "Debre"!
Report Abuse
LordIntense is not online. LordIntense
Joined: 01 Oct 2011
Total Posts: 24238
20 Dec 2015 09:04 AM
!!
Report Abuse
Xarean is not online. Xarean
Joined: 26 Feb 2015
Total Posts: 2190
20 Dec 2015 09:15 AM
aimbot script guys1!!
Report Abuse
ToasterTheRoaster is not online. ToasterTheRoaster
Joined: 26 May 2011
Total Posts: 11711
20 Dec 2015 09:25 AM
fm script

help me
Report Abuse
eiad999 is not online. eiad999
Joined: 27 Mar 2013
Total Posts: 210
22 Dec 2015 11:51 AM
Some scripting mistakes, the script could be much simpler, unneeded lines.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Clans & Guilds
   
 
   
  • 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