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: This worked yesterday, why not today?

Previous Thread :: Next Thread 
Josherino is not online. Josherino
Joined: 11 Nov 2012
Total Posts: 3261
28 Jul 2016 12:01 PM
I changed nothing... This used to force a character, but now it loads the forced character and a few moments later the normal character loads?

-- First before anyone joins we should know where the model is
local appearance = game.ServerStorage:WaitForChild("Character")

-- To make things easier I have a list of parts to just put into the character normally
local cloned = {
appearance:WaitForChild("Undercover Superhero Left Arm"),
appearance:WaitForChild("Undercover Superhero Right Arm"),
appearance:WaitForChild("Undercover Superhero Left Leg"),
appearance:WaitForChild("Undercover Superhero Right Leg"),
appearance:WaitForChild("Undercover Superhero Torso"),
appearance:WaitForChild("Shirt"),
appearance:WaitForChild("Pants"),
appearance:WaitForChild("BrownCharmerHair"),
appearance:WaitForChild("Body Colors")
}

-- Now we make a function that runs every time a player joins
game.Players.PlayerAdded:connect(function(player)
-- Stop their regular appearance from loading (they're a noob now :P)
player.CanLoadCharacterAppearance = false
player.CharacterAdded:connect(function(character)
-- Now we take everything from the list on Line 5 and put it in the character
for i=1, #cloned do
local item = cloned[i]
item:Clone().Parent = character
end
-- Now we need to do the face separately
character.Head:FindFirstChild("face"):Destroy()
appearance.Head:WaitForChild("face"):Clone().Parent = character.Head
end)
end)


https://www.roblox.com/MLP-item?id=448257314 R$7,078
Report Abuse
Josherino is not online. Josherino
Joined: 11 Nov 2012
Total Posts: 3261
28 Jul 2016 12:06 PM
1


https://www.roblox.com/MLP-item?id=448257314 R$7,078
Report Abuse
Josherino is not online. Josherino
Joined: 11 Nov 2012
Total Posts: 3261
28 Jul 2016 12:09 PM
2


https://www.roblox.com/MLP-item?id=448257314 R$7,078
Report Abuse
Oddslod is not online. Oddslod
Joined: 01 May 2008
Total Posts: 3695
28 Jul 2016 12:30 PM
I'm pretty sure that something was recently changed with regards to how scripts interact with players - a load of my stuff randomly broke as well
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