|
| 26 Aug 2015 02:25 PM |
When I reset, I lose my uniform.
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) if plr:IsInGroup(2606994) then local rank = plr:GetRankInGroup(2606994) if rank >= 23 then if char:FindFirstChild("Shirt") then local Shirt = char.Shirt Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=285487990" else local shirt = Instance.new("Shirt", char) shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=285487990" end if char:FindFirstChild("Shirt") then local Shirt = char.Shirt Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=285487869" else local shirt = Instance.new("Shirt", char) shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=285487869" end end end if char:FindFirstChild("Pants") then local Pants = char.Pants Pants.PantsTemplate = "http://www.roblox.com/asset/?id=285488396" else local pants = Instance.new("Pants", char) pants.PantsTemplate = "http://www.roblox.com/asset/?id=285488396" end end ) end )
Private Road - Residents Only [WolfgangVonPrinz] |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2015 02:30 PM |
just do
local shirt = char:FindFirstChild("Shirt") or Instance.new("Shirt", char) |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2015 03:00 PM |
Oh alright. But how could I resolve my problem?
Private Road - Residents Only [WolfgangVonPrinz] |
|
|
| Report Abuse |
|
|
Rhaega
|
  |
| Joined: 18 Apr 2011 |
| Total Posts: 384 |
|
|
| 26 Aug 2015 03:03 PM |
make a char and buy it uniforms. then do kohls admin. then char yourself. gg |
|
|
| Report Abuse |
|
|
Modoveex
|
  |
| Joined: 21 Mar 2009 |
| Total Posts: 8057 |
|
|
| 26 Aug 2015 03:05 PM |
wow rhaega thats a really useful solution..
What does the output say about the scripting error? |
|
|
| Report Abuse |
|
|
Modoveex
|
  |
| Joined: 21 Mar 2009 |
| Total Posts: 8057 |
|
|
| 26 Aug 2015 03:09 PM |
| It probably makes a new shirt before the character's shirt is loaded. Try checking if there's two shirts in your character model using dev console. |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2015 03:18 PM |
That's not it, https://gyazo.com/f0fb2882816aa0196fd29dbb123f8848
Private Road - Residents Only [WolfgangVonPrinz] |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2015 04:07 PM |
plz halp
Private Road - Residents Only [WolfgangVonPrinz] |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2015 05:34 PM |
y no one help?
Private Road - Residents Only [WolfgangVonPrinz] |
|
|
| Report Abuse |
|
|