|
| 23 Dec 2015 09:11 PM |
Hello, I'm trying to make a script in which every single player's character that joins the game turns into a Noob. Unfortunately, it doesn't work, and I'm wondering what's wrong with it, since I'm not getting any error.
Please aid in completing this script.
Thanks, Pikachu84639
--P.S. Here's the script: game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) repeat wait(0.1) until character.Parent:findFirstChild("Humanoid") ~= nil --local human = character.Parent:findFirstChild("Humanoid") character.Parent:findFirstChild("Head").BrickColor = BrickColor.new(24) character.Parent:findFirstChild("Head").Transparency = 0 character.Parent:findFirstChild("Torso").BrickColor = BrickColor.new(23) character.Parent:findFirstChild("Torso").Transparency = 0 character.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(24) character.Parent:findFirstChild("Left Arm").Transparency = 0 character.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(24) character.Parent:findFirstChild("Right Arm").Transparency = 0 character.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(119) character.Parent:findFirstChild("Left Leg").CanCollide = true character.Parent:findFirstChild("Left Leg").Transparency = 0 character.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(119) character.Parent:findFirstChild("Right Leg").CanCollide = true character.Parent:findFirstChild("Right Leg").Transparency = 0 end) end) |
|
|
| Report Abuse |
|
|
R3pix
|
  |
| Joined: 07 Jan 2012 |
| Total Posts: 2642 |
|
|
| 23 Dec 2015 09:24 PM |
FindFirstChild*
Yesterday, tomorrow, new zealand? |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2015 09:28 PM |
Nope. Didn't change anything. Thanks for reviewing it, though.
Pikachu84639 • The answer to a math question is the question itself. Proof: 9+10 = 9+10 - Correct ✔ |
|
|
| Report Abuse |
|
|
chimmmihc
|
  |
| Joined: 24 Jul 2014 |
| Total Posts: 2420 |
|
|
| 23 Dec 2015 09:31 PM |
| replace that stupid wait loop with Character:WaitForChild("Humanoid") |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2015 09:43 PM |
--Here's the edited script (I fixed some errors I had): game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid") character:FindFirstChild("Head").BrickColor = BrickColor.new(24) character:FindFirstChild("Head").Transparency = 0 character:FindFirstChild("Torso").BrickColor = BrickColor.new(23) character:FindFirstChild("Torso").Transparency = 0 character:FindFirstChild("Left Arm").BrickColor = BrickColor.new(24) character:FindFirstChild("Left Arm").Transparency = 0 character:FindFirstChild("Right Arm").BrickColor = BrickColor.new(24) character:FindFirstChild("Right Arm").Transparency = 0 character:FindFirstChild("Left Leg").BrickColor = BrickColor.new(119) character:FindFirstChild("Left Leg").CanCollide = true character:FindFirstChild("Left Leg").Transparency = 0 character:FindFirstChild("Right Leg").BrickColor = BrickColor.new(119) character:FindFirstChild("Right Leg").CanCollide = true character:FindFirstChild("Right Leg").Transparency = 0 end) end)
Still doesn't work :( Anyone else?
Pikachu8463
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 23 Dec 2015 10:49 PM |
function AppendColor(Limb, Color) Limb.BrickColor = Color end
game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) Player.CharacterAppearanceLoaded:wait() Player:ClearCharacterAppearance() AppendColor(Character.Head, BrickColor.new(24)) AppendColor(Character.Torso, BrickColor.new(23)) AppendColor(Character["Left Arm"], BrickColor.new(24)) AppendColor(Character["Right Arm"], BrickColor.new(24)) AppendColor(Character["Left Leg"], BrickColor.new(119)) AppendColor(Character["Right Leg"], BrickColor.new(119)) end) end) |
|
|
| Report Abuse |
|
|
Vultorz
|
  |
| Joined: 02 Mar 2015 |
| Total Posts: 2985 |
|
|
| 23 Dec 2015 10:53 PM |
If you wanna make the char look like a noob when they join, here. game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) p.CanLoadCharacterAppearance = false end) end) |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2015 10:55 PM |
| ^ I think he's going for the classic noob look though. |
|
|
| Report Abuse |
|
|
Zztheses
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 94 |
|
|
| 23 Dec 2015 10:56 PM |
Try this;
game.Players.PlayerAdded:connect(function(plr) player.CharacterAdded:connect(function(character) while true do wait(0.1) local humanoid = character:FindFirstChild("Humanoid") if (humanoid) ~= nil character.Parent:findFirstChild("Head").BrickColor = BrickColor.new(24) character.Parent:findFirstChild("Head").Transparency = 0 character.Parent:findFirstChild("Torso").BrickColor = BrickColor.new(23) character.Parent:findFirstChild("Torso").Transparency = 0 character.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(24) character.Parent:findFirstChild("Left Arm").Transparency = 0 character.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(24) character.Parent:findFirstChild("Right Arm").Transparency = 0 character.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(119) character.Parent:findFirstChild("Left Leg").CanCollide = true character.Parent:findFirstChild("Left Leg").Transparency = 0 character.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(119) character.Parent:findFirstChild("Right Leg").CanCollide = true character.Parent:findFirstChild("Right Leg").Transparency = 0 end end end) end) |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2015 01:42 PM |
@thedestroyer115
Your script solved the problem. Thanks! |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Dec 2015 02:49 PM |
I just discovered that this script only works in games other than the one I intend to use it for, for some reason.
Any idea why?
Pikachu84639 |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 03:06 PM |
game.Players.PlayerAdded:connect(function(Player) Player.CanLoadCharacterAppearance = false end) |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 05:17 PM |
Still doesn't work...
This is strange...
Pikachu84639 |
|
|
| Report Abuse |
|
|
Vultorz
|
  |
| Joined: 02 Mar 2015 |
| Total Posts: 2985 |
|
|
| 25 Dec 2015 05:17 PM |
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) p.CanLoadCharacterAppearance = false end) end)
|
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 05:29 PM |
Strangely, it now *finally* works.
Thanks, Pikachu84639 |
|
|
| Report Abuse |
|
|