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: What is teh best way to do this?

Previous Thread :: Next Thread 
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
22 Apr 2014 07:59 PM
What is the best way to clone an object when a player joins and put it in their torso?

Tooltip is a StringValue as a child inside this script.
The error is: Line4 Attempt to index a nil value.

local object = script.Tooltip

game.Players.PlayerAdded:connect(function(player)
object:Clone().Parent = game.Workspace:FindFirstChild(player.Name).Torso
end)
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
22 Apr 2014 08:06 PM
The*
Report Abuse
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
22 Apr 2014 08:09 PM
path = --yourpath

game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
clone = path:Clone()
clone.Parent = char
end)
end)

This should be an easy way.
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
22 Apr 2014 08:10 PM
What would I change to get their torso?
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
22 Apr 2014 08:11 PM
char.Torso?
Report Abuse
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
22 Apr 2014 08:18 PM
path = yourpath
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
local torso = char:FindFirstChild("Torso")
clone = path:Clone()
clone.Parent = torso
end)
end)

You were almost right,
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