Toby12600
|
  |
| Joined: 01 Mar 2011 |
| Total Posts: 193 |
|
|
| 14 Apr 2013 03:14 PM |
I am having problems with Touch Interest.
I am trying to make a block where when you touch it, it will remove all your limbs. Well, it works. But the problem is, it only works ONCE. The Touch Interest will go into the brick when I enable the script. When I touch the brick, it works; deleting my limbs. But, the touchinterest is removed. I always have to disable and re-anable the script to get it to work.
How can I keep the touch interest? Is there a problem in the script?
Here is the script I'm using. This one just removes an arm:
---------------------------------------------------------------------------------------------
local Brick = script.Parent
function onTouch(Brick) local Player = Brick.Parent:findFirstChild("Left Arm"):Remove() if (Player ~= nil) then end end Brick.Touched:connect(onTouch)
---------------------------------------------------------------------------------------------------------------
Please help! |
|
|
| Report Abuse |
|
Toby12600
|
  |
| Joined: 01 Mar 2011 |
| Total Posts: 193 |
|
| |