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
 

Re: Issue with uniform script

Previous Thread :: Next Thread 
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
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
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
26 Aug 2015 02:30 PM
just do

local shirt = char:FindFirstChild("Shirt") or Instance.new("Shirt", char)
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
26 Aug 2015 03:00 PM
Oh alright. But how could I resolve my problem?

Private Road - Residents Only [WolfgangVonPrinz]
Report Abuse
Rhaega is not online. 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 is not online. 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 is not online. 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
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
26 Aug 2015 03:18 PM
That's not it, https://gyazo.com/f0fb2882816aa0196fd29dbb123f8848

Private Road - Residents Only [WolfgangVonPrinz]
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
26 Aug 2015 04:07 PM
plz halp

Private Road - Residents Only [WolfgangVonPrinz]
Report Abuse
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
26 Aug 2015 05:34 PM
y no one help?

Private Road - Residents Only [WolfgangVonPrinz]
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