|
| 16 Dec 2016 08:20 PM |
| I've been trying out different things, trying to make a wall that deletes itself once it dies (wall is the head of humanoid) but it just wont take damage. |
|
|
| Report Abuse |
|
|
MK_0
|
  |
| Joined: 28 Aug 2010 |
| Total Posts: 1651 |
|
| |
|
|
| 16 Dec 2016 08:23 PM |
| Then why will it not take damage? |
|
|
| Report Abuse |
|
|
MK_0
|
  |
| Joined: 28 Aug 2010 |
| Total Posts: 1651 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 16 Dec 2016 08:35 PM |
Don't use a Humanoid for this, just put an IntValue in it named "Health" or something
Then have a script that says
local wall = workspace:WaitForChild("Wall") -- make sure it exists already local health = wall:WaitForChild("Health") =- this too Health.Changed:connect(function() if Health.Value <= 0 then wall:Destroy() script:Destroy() end end)
|
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 08:38 PM |
"connect" is deprecated, use 'Connect' instead
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 16 Dec 2016 09:00 PM |
If they ever remove :connect() I'd be surprised
|
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 09:02 PM |
| SOLVED: just welded a tiny invisible torso to the head, works like a charm |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 09:28 PM |
disillusions connect isn't deprecated, please try to use it first
|
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 09:29 PM |
get your facts straight:
http://wiki.roblox.com/index.php?title=RBXScriptSignal#Methods
|
|
|
| Report Abuse |
|
|