of     1   

Noctiz
#141239556Wednesday, July 23, 2014 4:05 AM GMT

when you hit the brick it sometimes triggers other bricks to dissapear can anyone help? hitted = false function ontouch() if hitted == false then hitted = true wait(.5) script.Parent.Transparency = .5 wait(.3) script.Parent.Transparency = 1 wait(.5) script.Parent.CanCollide = false wait(.5) script.Parent.Anchored = false end end script.Parent.Touched:connect(ontouch)
Noctiz
#141239806Wednesday, July 23, 2014 4:08 AM GMT

B1
FertileTurtle
#141239847Wednesday, July 23, 2014 4:08 AM GMT

This script should only make one brick disappear.
Noctiz
#141240075Wednesday, July 23, 2014 4:10 AM GMT

but it triggers other bricks some how
TickerOfTime
#141240133Wednesday, July 23, 2014 4:11 AM GMT

I don't know. if hitted == false -SHOULD BE- if hitted = false
Noctiz
#141240219Wednesday, July 23, 2014 4:12 AM GMT

it don't matter
blox6137
#141242955Wednesday, July 23, 2014 4:41 AM GMT

Actually it does matter if it's '=' or '=='. One is telling, one is asking. It's like: a = 1 a == 1?
blox6137
#141243050Wednesday, July 23, 2014 4:42 AM GMT

But you should probably make a 'human variable' that finds if the thing touching it has a Humanoid in it. That's probably what's causing it.
blox6137
#141243863Wednesday, July 23, 2014 4:51 AM GMT

Quick question: is this script inside of a model, or an individual part? I'm not too great at working with models, but parts are easy.
blox6137
#141244594Wednesday, July 23, 2014 4:58 AM GMT

--THIS WORKS-- This script works if the parent of the script is an individual part, not within a model! ~~~~~~~~ local fFall = script.Parent hHit = false fFall.Touched:connect(function(hit) if hHit == true then return end hHit = true local hum = hit.Parent:FindFirstChild("Humanoid") if hum then wait(.5) fFall.Transparency = .5 wait(.3) fFall.Transparency = 1 wait(.5) fFall.CanCollide = false wait(.5) fFall.Anchored = false end hHit = false end) ~~~~~~~~ It can be kinda glitchy though.

    of     1