generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Scripting helpers could not help

Previous Thread :: Next Thread 
RaidenJPN is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. RaidenJPN
Joined: 22 May 2013
Total Posts: 6920
17 Nov 2013 07:09 PM
Any explanation?
Report Abuse
MettaurSp is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image