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: breakjoints event

Previous Thread :: Next Thread 
diddims4 is not online. diddims4
Joined: 18 Feb 2010
Total Posts: 884
25 Jul 2013 03:55 AM
what capitals go where? :P

function KillPlayers()
local P = game.Players:GetChildren()
for i=1, #P do
if P[i].Character ~= nil then
P[i].Character:breakJoints()
end
end
end

is that correct?
Report Abuse
andirja11 is not online. andirja11
Joined: 11 Jul 2010
Total Posts: 584
25 Jul 2013 04:00 AM
Why don't you test it ?
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
25 Jul 2013 04:06 AM
Just look through item browser until u find it
Report Abuse
UnknownRichGuy is not online. UnknownRichGuy
Joined: 08 Jul 2013
Total Posts: 202
25 Jul 2013 04:18 AM
Idk about breakJoints() but everything else is fine.
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
25 Jul 2013 04:20 AM
[ Content Deleted ]
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
25 Jul 2013 04:21 AM
[ Content Deleted ]
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
25 Jul 2013 04:34 AM
> "Please note case sensitivity is very important"

No, it's not in some cases. However, Roblox is not consistent, so you may as well be everything that they aren't by being consistent.
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
25 Jul 2013 05:09 AM
[ Content Deleted ]
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
25 Jul 2013 05:32 AM
No, it isn't actually, or at least it used to not be.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Jul 2013 07:25 AM
I always capitalize everything, even though it's not required.

Like:
Game.Workspace
Wait(X)
GetService
Destroy()

etc
Report Abuse
mrmrluaa3 is not online. mrmrluaa3
Joined: 25 Jun 2013
Total Posts: 122
25 Jul 2013 09:25 AM
function KillPlayers()
local P = game.Players:GetChildren()
local lol = game.Workspace:GetChildren()

local players={ }
for i=1, #P do
table.insert(players,P[i].Name)
for i, v in pairs(lol) do
if v.Name == P[i].Name then
v:Destroy
end
end

end
end
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Jul 2013 09:27 AM
do:
v.Character:BreakJoints()

Destroying them will remove their character and glitch them till they :LoadCharacter()
Report Abuse
mrmrluaa3 is not online. mrmrluaa3
Joined: 25 Jun 2013
Total Posts: 122
25 Jul 2013 09:36 AM

function KillPlayers()
local P = game.Players:GetChildren()
local lol = game.Workspace:GetChildren()

local players={ }
for i=1, #P do
table.insert(players,P[i].Name)
for i, v in pairs(lol) do
if v.Name == P[i].Name then
v.Character:BreakJoints()
end
end

end
end
end
Report Abuse
Awesomesniperman1 is not online. Awesomesniperman1
Joined: 26 Sep 2011
Total Posts: 3780
25 Jul 2013 09:42 AM
Capital B in 'breakJoints()'.

~RAT is a clan, now get in my van. ®
Report Abuse
diddims4 is not online. diddims4
Joined: 18 Feb 2010
Total Posts: 884
26 Jul 2013 07:39 PM
thanks, exactly the answer im looking for

not exactly why everyone is giving me script suggestions...
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