of     1   

Noctiz
#141119652Tuesday, July 22, 2014 1:37 AM GMT

hitted = false function ontouch() if hitted == false then hitted = true wait(.5) script.Parent.Anchored = false wait(.5) script.Parent.Transparency = 1 end end script.Parent.Touched:connect(ontouch) Everything here works but it's just that when you step on it the block(s) next to it will fall too, can anyone help?
Xephyric
#141119899Tuesday, July 22, 2014 1:39 AM GMT

hitted isn't a word
Noctiz
#141119943Tuesday, July 22, 2014 1:40 AM GMT

I know...
Xephyric
#141120174Tuesday, July 22, 2014 1:42 AM GMT

The falling brick probably triggers the Touched Function for the other bricks you are talking about. To prevent it just check if the object that touched it has a humanoid in its parent model
Xephyric
#141120231Tuesday, July 22, 2014 1:43 AM GMT

function ontouch(hit) if hitted == false and hit.Parent:findFirstChild("Humanoid") then
UncleTaz
#141120700Tuesday, July 22, 2014 1:48 AM GMT

Yea touched events trigger touch interest and that effects all bricks.
blox6137
#141121130Tuesday, July 22, 2014 1:53 AM GMT

This could work. ~~~~~~~~~~~~~~~~~~~~~ hitted = false script.Parent:connect(function(hit) if hitted == true then return end hitted = true local hum = hit.Parent:FindFirstChild("Humanoid") if hum then wait(.5) script.Parent.Anchored = false wait(.5) script.Parent.Transparency = 1 end hitted = false end) ~~~~~~~~~~~~~~~~~~~~~
Noctiz
#141121606Tuesday, July 22, 2014 1:57 AM GMT

Still No
blox6137
#141121723Tuesday, July 22, 2014 1:59 AM GMT

Wait, so what's the problem SPECIFICALLY. You're OP didn't really make any sense.
smiley599
#141121793Tuesday, July 22, 2014 1:59 AM GMT

Try this. Your script doesn't really make sense though. ~~~~~~~~~~~~~~~~~~~~~ hitted = false script.Parent:connect(function(hit) if hitted == false then return end local hum = hit.Parent:FindFirstChild("Humanoid") if hum then hitted=true wait(.5) script.Parent.Anchored = false wait(.5) script.Parent.Transparency = 1 end hitted = false end) ~~~~~~~~~~~~~~~~~~~~~
UncleTaz
#141121810Tuesday, July 22, 2014 1:59 AM GMT

Space the bricks out by 0.05 studs. So they don't touch each other.
blox6137
#141122183Tuesday, July 22, 2014 2:03 AM GMT

@smiley, wouldn't that script not run, because hitted was already set to false?
smiley599
#141122641Tuesday, July 22, 2014 2:08 AM GMT

Sorry. Ignore what I said. I looked at yours and saw 'if hitted==true then' and I thought the reason OP so frustratingly said 'didn't work' was because true should have been false. My mistake. Why would you use 'then return end' though? Just use the opposite bool.
Xephyric
#141123034Tuesday, July 22, 2014 2:12 AM GMT

OP never said it didn't work
blox6137
#141123684Tuesday, July 22, 2014 2:18 AM GMT

OP says it works, but not the way it's intended to. I'm assuming this script is for a model that has several parts within it, and once the player steps on a part within the model, the part de-anchors and drops.
Noctiz
#141226274Wednesday, July 23, 2014 1:52 AM GMT

@all, I found a way that works. Thanks for the 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)

    of     1