Y3L
|
  |
| Joined: 24 Mar 2009 |
| Total Posts: 6737 |
|
|
| 07 Nov 2015 11:40 AM |
game.Workspace.yabbi.Touched:connect(function(otherPart) game.Workspace.Fdown.Transparency=1 end)
game.Workspace.yabbi2.Touched:connect(function(otherPart) game.Workspace.Fdown.Transparency=1 end)
Fdown is the brick I want to disappear when it touches the brick called "yabbi" or "yabbi2" but Fdown is disappearing randomly (when its not even touching "yabbi" or "yabbi2"
does anyone know why this is happening? |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 07 Nov 2015 11:45 AM |
Touched fires when the brick gets touched... let it be a player or a brick falling from the sky. You may wanna check if the part touching it has a Humanoid.
For example:
game.Workspace.yabbi.Touched:connect(function(otherPart) if otherPart.Parent:FindFirstChild("Humanoid") then game.Workspace.Fdown.Transparency=1 end end) |
|
|
| Report Abuse |
|
|
Y3L
|
  |
| Joined: 24 Mar 2009 |
| Total Posts: 6737 |
|
|
| 07 Nov 2015 11:50 AM |
^ when i replaced the old script with that Fdown wasn't disappearing when it touched "yabbi" |
|
|
| Report Abuse |
|
|
Y3L
|
  |
| Joined: 24 Mar 2009 |
| Total Posts: 6737 |
|
| |
|
|
| 07 Nov 2015 12:04 PM |
game.Workspace.yabbi.Touched:connect(function(otherPart) if otherPart.Parent:FindFirstChild("Humanoid") then game.Workspace:FindFirstChild("Fdown").Transparency = 1 end)
game.Workspace.yabbi2.Touched:connect(function(otherPart) if otherPart.Parent:FindFirstChild("Humanoid") then game.Workspace:FindFirstChild("Fdown").Transparency = 1 end)
- No signature - |
|
|
| Report Abuse |
|
|
Y3L
|
  |
| Joined: 24 Mar 2009 |
| Total Posts: 6737 |
|
| |
|
Y3L
|
  |
| Joined: 24 Mar 2009 |
| Total Posts: 6737 |
|
| |
|