RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
|
| 17 Nov 2013 06:18 PM |
Purpose:
The following script removes the players left arm and causes them to take 25 damage and removes the tool.
Error:
Arm deletes, tool deletes, damage is not taken.
Script:
b = script.Parent b.Selected:connect(function(m) m.Button1Down:connect(function() local p = game.Players.LocalPlayer local c = p.Character la = p.Character["Left Arm"] la:Destroy() c.Humanoid:TakeDamage(25) b:Destroy() end) end)
NOTE:
I've tried using LocalScripts, switching methods (c.Humanoid.Health = c.Humanoid.Health - 25 instead of :TakeDamage(25)), and much more.
Any help is appreciated. |
|
|
| Report Abuse |
|
|
RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
|
| 17 Nov 2013 06:29 PM |
The game that I'm using this for:
http://www.roblox.com/Discontinued-place?id=117627403 |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Nov 2013 06:30 PM |
| People saying SH can't help yet I see none of this on that forum |
|
|
| Report Abuse |
|
|
RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
|
| 17 Nov 2013 06:32 PM |
@cnt,
I posted this on an alt of mine (SamaraRMorgan) |
|
|
| Report Abuse |
|
|
RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
|
| 17 Nov 2013 06:37 PM |
Well,
I've noticed that when I remove a different script from my place (one that makes the joined player lose .01 health every 1/30th of a second) the player takes damage.
Anyone care to explain why? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Nov 2013 06:37 PM |
When? Well I'm half AFK so whatever.
Go freestyle yee |
|
|
| Report Abuse |
|
|
RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
|
| 17 Nov 2013 06:38 PM |
| Basically it's connected to the (deprecated) .Stepped event. |
|
|
| Report Abuse |
|
|
RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
| |
|
MettaurSp
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 3179 |
|
|
| 17 Nov 2013 08:26 PM |
| Probably just bad timing,bump it up to 1/15th of a second. |
|
|
| Report Abuse |
|
|