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
 

What is wrong with this?

Previous Thread :: Next Thread 
crome60 is not online. crome60
Joined: 22 Nov 2008
Total Posts: 15266
29 Aug 2013 08:53 PM
game.Players.PlayerAdded:connect(function(player)
print("A player has entered: " .. player.Name)
script.Parent.Name = player.Name.. "'s Warrior"
script.Parent.Owner.Value = player.Name
script.Parent.Died:connect(function()
wait(15)
script.Parent:Clone()
end)
end)

everything is working perfectly except for the onDied-clone thing.
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
29 Aug 2013 08:56 PM
local x = script.Parent:clone();

game.Players.PlayerAdded:connect(function(player)
print("A player has entered: " .. player.Name)
script.Parent.Name = player.Name.. "'s Warrior"
script.Parent.Owner.Value = player.Name
script.Parent.Died:connect(function()
wait(15)
local x = x:Clone().Parent = script.Parent.Parent
x:MakeJoints()
end)
end)
Report Abuse
Unsubstantial is not online. Unsubstantial
Joined: 11 Sep 2012
Total Posts: 872
29 Aug 2013 08:56 PM
Is Script.Parent a humanoid?
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
29 Aug 2013 08:56 PM
local x = script.Parent:clone();

game.Players.PlayerAdded:connect(function(player)
print("A player has entered: " .. player.Name)
script.Parent.Name = player.Name.. "'s Warrior"
script.Parent.Owner.Value = player.Name
script.Parent.Died:connect(function()
wait(15)
local x = x:Clone();
x.Parent = script.Parent.Parent
x:MakeJoints()
end)
end)
Report Abuse
crome60 is not online. crome60
Joined: 22 Nov 2008
Total Posts: 15266
29 Aug 2013 09:07 PM
No, is it necessary?
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
29 Aug 2013 09:10 PM
Died is for Humanoids.
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