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: Clothing only visible to wearer? Glitch?

Previous Thread :: Next Thread 
DarthSpeedy is not online. DarthSpeedy
Joined: 23 May 2007
Total Posts: 36
06 Jan 2014 09:17 PM
Ok, I made a GUI where when you pick your character it replaces your face, pants, and shirt with a new id. I was testing with a friend when I noticed we could not see each others clothes change just our faces. On my screen it had changed for me... This is the script

function clicked()
game.Players.LocalPlayer.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=11057227"
game.Players.LocalPlayer.Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=11053779"
game.Players.LocalPlayer.Character.Head.face.Texture =
"http://www.roblox.com/asset/?id=34545228"

end

script.Parent.MouseButton1Down:connect(clicked)

Any ideas how to fix this?
This is a script and NOT local script btw
Report Abuse
TheJKM98 is not online. TheJKM98
Joined: 20 Dec 2010
Total Posts: 511
06 Jan 2014 09:24 PM
I had this exact glitch happen to me!

function BuyBlackPolo()
game.Players.LocalPlayer.leaderstats.Money.Value = game.Players.LocalPlayer.leaderstats.Money.Value - 50
game.Players.LocalPlayer.Character.Shirt.ShirtTemplate="http://www.roblox.com/asset/?id=114303438"
end

script.Parent.MouseButton1Click:connect(BuyBlackPolo)

And that was in a LocalScript!


Same with you, but no local script?


Interesting...
Report Abuse
DarthSpeedy is not online. DarthSpeedy
Joined: 23 May 2007
Total Posts: 36
09 Jan 2014 05:22 AM
Bump
Report Abuse
M39a9am3R is not online. M39a9am3R
Joined: 10 Nov 2012
Total Posts: 1933
09 Jan 2014 05:58 AM
Oh, I thought LocalPlayer only worked in LocalScripts
Report Abuse
DarthSpeedy is not online. DarthSpeedy
Joined: 23 May 2007
Total Posts: 36
09 Jan 2014 01:12 PM
In that case how do you find the player?
Report Abuse
Kingmouli is not online. Kingmouli
Joined: 28 Sep 2012
Total Posts: 1292
09 Jan 2014 01:19 PM
Put this in a Local script .-. LocalPlayer only works in LocalScripts
Report Abuse
DarthSpeedy is not online. DarthSpeedy
Joined: 23 May 2007
Total Posts: 36
09 Jan 2014 02:06 PM
I tried that, but I'll try again because I forgot the result... Either it didn't work or I got the same problem.
Report Abuse
DarthSpeedy is not online. DarthSpeedy
Joined: 23 May 2007
Total Posts: 36
11 Jan 2014 03:28 PM
Ok, I finally got a chance to see if the LocalScript would work and I still have the same problem... :/
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