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: Need help with scripting please help

Previous Thread :: Next Thread 
Zulsoras is not online. Zulsoras
Joined: 10 Sep 2008
Total Posts: 963
06 Dec 2012 10:56 PM
i need this so when ever the character spawns the content of the bodyset from the plat is copied and pasted into player

function onPlayerEntered(newCharacter)
-- Zulsoras
backpack = newCharacter.Bodyset:GetChildren() -- actually need this to be taken from player
for y = 1, #backpack do
armor = backpack[y]:clone()
armor.Parent = newCharacter
end
end

game.Workspace.CharacterAdded:connect(onPlayerEntered)
Report Abuse
scooby8 is not online. scooby8
Joined: 09 Feb 2008
Total Posts: 460
06 Dec 2012 11:03 PM
"-- Zulsoras"
Putting your name in a script you didn't make doesn't give you ownership over it.
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
07 Dec 2012 01:47 AM
btw that doesnt even work... workspace hasnt got an event called .CharacterAdded... here use this:

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
print(player.."'s character has been added to workspace.")
--your code
end)
end)

~sycips~
Report Abuse
Zulsoras is not online. Zulsoras
Joined: 10 Sep 2008
Total Posts: 963
07 Dec 2012 08:58 AM
i did make the code idiot.
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
07 Dec 2012 09:08 AM
Dont spend time to that noobish talk! Did it work or not?!?!?!
Report Abuse
Zulsoras is not online. Zulsoras
Joined: 10 Sep 2008
Total Posts: 963
07 Dec 2012 09:13 AM
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
print(player.."'s character has been added to workspace.")

armorset = player.Bodyset:GetChildren()
for y = 1, #armorset do
armor = armorset[y]:clone()
armor.Parent = character
end
end)
end)

?
no it did not work unfortantly
Report Abuse
Zulsoras is not online. Zulsoras
Joined: 10 Sep 2008
Total Posts: 963
07 Dec 2012 09:14 AM
i have a script that works on entered but i can not figure out how to do on respawn
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
07 Dec 2012 09:17 AM
[ Content Deleted ]
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