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 » Scripting Helpers
Home Search
 

Re: Player died when selected

Previous Thread :: Next Thread 
Wolater is not online. Wolater
Joined: 06 Mar 2011
Total Posts: 2786
29 Nov 2013 12:40 AM
local m = Instance.new("HopperBin",game.Players.Wolater.Backpack)
m.Selected:connect(function(m)
m.Button1Down:connect(function()
local p = game.Players:FindFirstChild(m.Hit.p)
if p then
p.Character:BreakJoints()
end
end)
end)


Won't kill the selected player when I click on them
Report Abuse
TIMTA is not online. TIMTA
Joined: 17 Dec 2009
Total Posts: 38
29 Nov 2013 03:13 AM
try p.Parent:BreakJoints()
Report Abuse
6e8 is not online. 6e8
Joined: 21 Jul 2013
Total Posts: 10
29 Nov 2013 03:20 AM
LocalScript in a HopperBin:

script.Parent.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()
if mouse.Target and mouse.Target.Parent:FindFirstChild("Humanoid") then
mouse.Target.Parent:BreakJoints()
end
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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