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
 

Another issue:

Previous Thread :: Next Thread 
SimpleClover is not online. SimpleClover
Joined: 07 Feb 2015
Total Posts: 90
19 Mar 2015 08:58 PM
"Head is not a valid member of Player" The output I get when I try to do this script:

local player = Game.Players.LocalPlayer
local Face = player.Head.face

Im trying to make a local of the decal named "face" in the Head of a player, trying to change faces by script.

Someone help?

R$106
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
19 Mar 2015 09:06 PM
The player and the character are different. Everything that is physical is in the Character.

This is how you get the character from a local script:

local character = player.Character
if not character or not character.Parent then
character = Player.CharacterAdded:wait()
end

--and then you can do

local Face = character.Head.face
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
19 Mar 2015 09:09 PM
why are you doing this locally

that decal wouldn't replicate to the server if filteringenabled is on
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
19 Mar 2015 09:19 PM
why are you doing this locally[2]
Report Abuse
SimpleClover is not online. SimpleClover
Joined: 07 Feb 2015
Total Posts: 90
20 Mar 2015 10:10 AM
Im doing this locally bcuz its a GUI and its going to be like a remade version of APOC but like 100% different and im adding face customization in the GUI

R$106
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