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 » Scripters
Home Search
 

Re: Why isn't this simple script working...?

Previous Thread :: Next Thread 
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:16 PM
game.Players.PlayerAdded:connect(function(Player)
local NameTag = script.NameTag:Clone()
NameTag.Parent = Player
end)

It won't clone the nametag into the player


Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
27 Apr 2017 09:25 PM
What is NameTag?
If it's a tool then it goes into Player.Backpack
If it's a local script then it goes into Player.PlayerGui or Player.Character
Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:33 PM
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local NameTagClone = game.ServerStorage.NameTag:Clone()
NameTagClone.Parent = character
end)
end)

NameTag is a Model


Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
27 Apr 2017 09:36 PM
I tested it and it worked fine.
Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:37 PM
Doesn't work for me


Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
27 Apr 2017 09:42 PM
Yes it does, stuff doesn't just not work for you. Thats not how scripts work.
Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:42 PM
But it isn't though haha


Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
27 Apr 2017 09:45 PM
Well then you have it disabled, or parented somewhere scripts don't run, or don't have a child inside it named NameTag. Or you have another script that removes it after it is parented to the player. Take your pick.
Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:46 PM
It's not disabled

The script is parented in ServerScriptService

The child named NameTag is within ServerStorage, which the script accesses

No scripts that would do such a thing


Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
27 Apr 2017 09:49 PM
Well then I don't believe you.
https://www.youtube.com/watch?v=A2HTKr9Ng7g
Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:50 PM
I don't need you to


Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
27 Apr 2017 09:51 PM
Well I posted video proof of it working so wheres your proof it doesn't?
Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:51 PM
I want it to clone into the players character, so I obviously did something wrong


Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:52 PM
Give me one good reason why I would lie


Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:53 PM
What do I gain from it


Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
27 Apr 2017 09:53 PM
Well that isn't what you asked for in the original post.
The second script you posted works too though and does exactly that.
Report Abuse
Dratik is online. Dratik
Joined: 13 Nov 2008
Total Posts: 36385
27 Apr 2017 09:54 PM
If you want it cloned to the character, then set the parent to the character... you only set it to the player.


Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:54 PM
See but for whatever reason, it isn't cloning the nametag at all, I'm gonna use prints, see what happens


Report Abuse
Dratik is online. Dratik
Joined: 13 Nov 2008
Total Posts: 36385
27 Apr 2017 09:55 PM
oh i see you fixed that in the 2nd script


Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:56 PM
Yea I don't know man, my animation scripts have been acting funny too, my animations won't replicate, but others have been complaining about this too


Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
27 Apr 2017 09:58 PM
No once again you are wrong and it works fine.
https://www.youtube.com/watch?v=Kk7db__47A8
Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 09:58 PM
It's legit not working for me, try with r15


Report Abuse
Dratik is online. Dratik
Joined: 13 Nov 2008
Total Posts: 36385
27 Apr 2017 09:58 PM
Animations are glitched rn I believe, but I just tried your second script and it works fine. Are you actually going into the Character in studio and seeing if "NameTag" is there?


Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 10:00 PM
Yea I am


Report Abuse
Spathi is not online. Spathi
Joined: 18 Nov 2013
Total Posts: 14776
27 Apr 2017 10:01 PM
Got it working, it was r15


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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