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: Kill Players in a Specific Model?

Previous Thread :: Next Thread 
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
17 Jun 2014 11:58 AM
Hey There!

Im trying to kill the Players inside a Specific Model. But when the script should do it, nothing happends. Im trying to do this:

local Vandeath = game.Workspace.Vanishing
local Surdeath = game.Workspace.Players
wait(1)
Vandeath:BreakJoints()
wait(0.1)
Surdeath:BreakJoints()

Help D:?

THX!
Planesoldier
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
17 Jun 2014 11:59 AM
local Vandeath = game.Workspace.Vanishing
local Surdeath = game.Workspace.Players

bj = function(parent)
parent:BreakJoints()
for I,v in pairs(parent:GetChildren()) do
bj(v)
end
end
wait(1)
bj(Vandeath)
wait(0.1)
bj(Surdeath)
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
17 Jun 2014 12:13 PM
Error:

BreakJoints is not a valid model of SpecialMesh
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
17 Jun 2014 12:14 PM
if parent:IsA"Model" then
parent:BreakJoints()
end
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Jun 2014 12:18 PM
You can put player model's in another model?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Jun 2014 12:19 PM
nvm you can lol
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
17 Jun 2014 12:19 PM
I cant, they HAVE to die. And that one above you didnt work either.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Jun 2014 12:20 PM
for i,v in pairs(model:GetChildren()) do
if game:GetPlayerFromCharacter(v) then
v:BreakJoints()
end
end
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
17 Jun 2014 12:26 PM
Above,

19:26:08.212 - GetPlayerFromCharacter is not a valid member of DataModel
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Jun 2014 12:27 PM
woops
game.Players*
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
17 Jun 2014 12:34 PM
Where should i put game.Players?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Jun 2014 12:35 PM
if game.Players:GetPlayerFromCharacter(v) then
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
17 Jun 2014 12:35 PM
he said if game:GetPlayerFromCharacter

DUH

game.Players:GetPlayerFromCharacvter

ETC

geez man, it doesn't take a expert scripter to have common sence!
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
17 Jun 2014 12:37 PM
Sorry... :l
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
17 Jun 2014 12:39 PM
sorry, but anytime someone tells u something obvious

your like

where do I put that

like WHAT?

someone posts

game:Getservice("Workspace").ChildAdded

or something

and then says

woops

GetService*

and your like "where do I put that?"
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
17 Jun 2014 01:38 PM
well sorry for not being a scripting pro. and when i see only game in the script and someone says woops, game.players. I dont know if i should put it there or not. game might be good. so stfu
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
17 Jun 2014 01:38 PM
And it didnt work btw :3
Report Abuse
planesoldier is not online. planesoldier
Joined: 26 Sep 2010
Total Posts: 533
17 Jun 2014 01:42 PM
And this is the only time i had that. On my previous help things they said "Make a caurantaine or this or that". And if i dont know what it is, or how i have to make it i ask how to do it.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Jun 2014 01:50 PM
if it does not work then there are no players in the model.
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