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 » Scripting Helpers
Home Search
 

Re: Spawning players with random face?

Previous Thread :: Next Thread 
xXRALXx is not online. xXRALXx
Joined: 12 Mar 2008
Total Posts: 153
11 Jul 2014 10:42 AM
function onPlayerRespawned(newPlayer)
local face = {23932048, 110288809, 20722130}
for i, v in pairs(face) do
newPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=" .. v
end
end




messed up code asddffds
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
11 Jul 2014 10:44 AM
that's not random.....

local face = {23932048, 110288809, 20722130} --THESE ARE STRINGS BY THE WAY
local randomface = face[math.random(1,#face)]

Report Abuse
qElite is not online. qElite
Joined: 31 Dec 2007
Total Posts: 410
11 Jul 2014 12:41 PM
@OP

that's going to give your player EVERY face not randomly, do what wish said
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
11 Jul 2014 12:44 PM
function onPlayerRespawned(newPlayer)
local face = {"23932048", "110288809", "20722130"}
local rface = face[math.random(#face)]
newPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id="..rface
end
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