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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 08 Oct 2012 03:42 PM |
| You can't change the name of a player's character. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 08 Oct 2012 03:53 PM |
>.< Oh yeah...
Game.Players.LocalPlayer.Character.Humanoid.Name = "New Humanoid Name"; |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 03:54 PM |
@ninja5566;
Intermediate Scripter... my arse. |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
| |
|
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 |
|
|
|
| 08 Oct 2012 04:03 PM |
make it:
function pie(player) |
|
|
| Report Abuse |
|
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
| |
|