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: I still need some help with this.

Previous Thread :: Next Thread 
xXRALXx is not online. xXRALXx
Joined: 12 Mar 2008
Total Posts: 153
24 Apr 2014 06:24 PM
local asset = "http://www.roblox.com/asset/?id="
local Players = Game:GetService('Players')
local player = Players:GetPlayerFromCharacter(character)

local persis = player:WaitForChild("PersistentModel")
local face = persis:WaitForChild("FaceTexture")
local facetexture = face.Value

script.Parent.Face.Texture = asset .. facetexture



It doesn't index a player correctly. How do I make this work?
Also, this isn't a local script. (But perhaps changing it to local would fix it...?)
Report Abuse
SlothGod is not online. SlothGod
Joined: 04 Apr 2011
Total Posts: 1517
24 Apr 2014 06:27 PM
local asset = "http://www.roblox.com/asset/?id=Need something here I THINK"
local Players = Game:GetService('Players')
local player = Players:GetPlayerFromCharacter(character)

local persis = player:WaitForChild("PersistentModel")
local face = persis:WaitForChild("FaceTexture")
local facetexture = face.Value

script.Parent.Face.Texture = asset .. facetexture

ALso ye make it a local script
Report Abuse
xXRALXx is not online. xXRALXx
Joined: 12 Mar 2008
Total Posts: 153
24 Apr 2014 06:33 PM
Local script doesn't fix it. And 'asset' defines "http://www.roblox.com/asset/?id=", and facetexture fills up the end of the asset. Nothing wrong there.
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