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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Humanoid name changer

Previous Thread :: Next Thread 
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
08 Oct 2012 03:38 PM
function pie()
while true do
wait(0.01)
c = player.Character:FindFirstChild("Humanoid")
c.Name = "Human"
end
end
game.Players.PlayerAdded:connect(pie)
------------------------------------
This is a local script named "Bob" the whole point of this script is to change the humanoids name to "Human" just so regular gears wont kill each other. It isn't working, please help.
Report Abuse
Laekim is not online. Laekim
Joined: 04 Oct 2012
Total Posts: 118
08 Oct 2012 03:41 PM
Why isn't it working? What error is happening? How are you testing this?

:L
Report Abuse
corto713 is not online. corto713
Joined: 12 Dec 2009
Total Posts: 962
08 Oct 2012 03:41 PM
I could probably make something like this in a regular script but idk never tried it...
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
08 Oct 2012 03:42 PM
You can't change the name of a player's character.
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
08 Oct 2012 03:43 PM
You can change the name of the Humanoid.
Report Abuse
Laekim is not online. Laekim
Joined: 04 Oct 2012
Total Posts: 118
08 Oct 2012 03:44 PM
> You can't change the name of a player's character.

He's not trying to. He trying to change the name of the humanoid instance in the character (Character.Humanoid)

:L
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
08 Oct 2012 03:45 PM
^He's changing the name of the Humanoid, which is possible if I'm not mistaken.

@OP; Since it's a LocalScript I think you want this.

repeat wait(1) until Game.Players.LocalPlayer
Game.Players.LocalPlayer.CharacterAdded:connect(function(Character)
repeat wait() until Character:findFirstChild("Humanoid")
Character.Humanoid.Name = "New Humanoid Name";
end)
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
08 Oct 2012 03:45 PM
yeah and there are no errors in the output
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
08 Oct 2012 03:45 PM
1st of all,
If this is in a localscript, why is there a .PlayerAdded event...?
2ndly
Never defined player.
Try this:
plr = game.Players.LocalPlayer
char = plr.Character
if char then
char.Humanoid.Name = "Human"
end
Report Abuse
Laekim is not online. Laekim
Joined: 04 Oct 2012
Total Posts: 118
08 Oct 2012 03:46 PM
Found what might be the error

    function pie(player) --I added the parameter 'player'
        while true do
            wait(0.01)
            c = player.Character:FindFirstChild("Humanoid")
            c.Name = "Human"
        end
    end

    game.Players.PlayerAdded:connect(pie)

Pretty self-explanatory fix, but if you need an explanation I'll be happy to give one

:L
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
08 Oct 2012 03:47 PM
@Epic,
Why the .CharacterAdded when localscripts only work in PlayerGui, Backpack, and character, and all 3 reset each time a player dies, so you're script wouldn't work :3
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
08 Oct 2012 03:47 PM
your*
Report Abuse
Laekim is not online. Laekim
Joined: 04 Oct 2012
Total Posts: 118
08 Oct 2012 03:48 PM
This is a local script?
-_- Why? With the way this is written this could have easily been done without a localscript.

:L
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
08 Oct 2012 03:48 PM
nope and the other guy who's script made no sense to me.. nope. Guys try to keep it basic for me
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
08 Oct 2012 03:51 PM
Ninja knows nothing about LocalScripts, also, mine was a simpler version of yours, so you are plain stupid, or you didn't create this script.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
08 Oct 2012 03:53 PM
>.< Oh yeah...

Game.Players.LocalPlayer.Character.Humanoid.Name = "New Humanoid Name";
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
08 Oct 2012 03:54 PM
@ninja5566;

Intermediate Scripter... my arse.
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
08 Oct 2012 03:56 PM
nop
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
08 Oct 2012 03:59 PM
Haha funny thing is I got it working with a script. -smh-

player = script.Parent.Parent
if player then
player.Character.Humanoid.Name = "Human"
end


xD thanks for trying to help guys.
Report Abuse
StealthKing95 is not online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
08 Oct 2012 04:03 PM
make it:

function pie(player)
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
08 Oct 2012 04:05 PM
I already got it >:O
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
08 Oct 2012 04:14 PM
@Ninja
We fixed it, you were just too ignorant to admit you made an idiotic mistake, kthxbai
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
08 Oct 2012 04:15 PM
You didn't fix it. I swear I tried all of your scripts.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
08 Oct 2012 08:32 PM
Let's break down Ninja's PM.

"So you refuse to accept i'm an intermediate scripter even though none of your scripts worked. I made a shop gui and a Text label that is your money. I am not learning about function and all that crap so I assume i'm an intermediate scripter."

> refuse to accept i'm an intermediate scritper
• I don't refuse to accept you're an intermediate scripter. You just aren't.

> I made a shop gui and a Text label that is your money
• That's not intermediate work.

> I am not learning about function and all that crap
• Hate to break it to ya, but functions are beginner level.
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
08 Oct 2012 09:05 PM
He's mad.
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