|
| 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
|
  |
| 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 |
|
|
| |
|
M39a9am3R
|
  |
| Joined: 10 Nov 2012 |
| Total Posts: 1933 |
|
|
| 09 Jan 2014 05:58 AM |
| Oh, I thought LocalPlayer only worked in LocalScripts |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2014 01:12 PM |
| In that case how do you find the player? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|