Alright so, me and a friend were making a uniform GUI for our British military game, and we added buttons for low rank uniforms, medium rank, military police, and high rank. We have a medals system so I made myself and the owner custom uniforms with our medals, and he uploaded it for the ten robux. He then sent me the asset ID and we added a small button (which you’ll see) in the bottom for us to use for our uniform. All the buttons are locked so only certain ranks can see them. Each button fires a script in serverscriptservice to give players their uniform. (Both will be included.) BUT, the problem is that all of the shirt work, but when you attempt to get the custom uniform for me and the owner, it just takes your shirt off and makes it look like this;
Scripts and pictures below
LR = Low Rank
MR = Medium Rank
MP = Mili Police
MW = My/Owner’s uniform
To fire the event in the serverscript, this is pasted into the others but with different function names.
local plr = game.Players.LocalPlayer.Character
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Clothing:FireServer("MR")
script.Parent.Parent.Visible = false
end)
The serverscript that runs the event to give players their uniforms
local Event = game.ReplicatedStorage.Clothing
Event.OnServerEvent:Connect(function(plr, Type)
if Type == "HR" and plr.Character then
print("HR")
plr.Character.Shirt.ShirtTemplate = "rbxassetid://513567320"
plr.Character.Pants.PantsTemplate = "rbxassetid://513570472"
elseif Type == "LR" then
print("LR")
plr.Character.Pants.PantsTemplate = "rbxassetid://513568836"
plr.Character.Shirt.ShirtTemplate = "rbxassetid://513567796"
elseif Type == "MP" then
print("MP")
plr.Character.Shirt.ShirtTemplate = "rbxassetid://273280950"
plr.Character.Pants.PantsTemplate = "rbxassetid://273281072"
elseif Type == "MR" then
print("MR")
plr.Character.Shirt.ShirtTemplate = "rbxassetid://513570677"
plr.Character.Pants.PantsTemplate = "rbxassetid://513567601"
elseif Type == "MOWA" then
print("MW")
plr.Character.Shirt.ShirtTemplate = "rbxassetid://10028947661"
plr.Character.Pants.PantsTemplate = "rbxassetid://513570472"
end
end)
So yeah. If anyone can help it would be greatly appreciated. And no, it isn’t because the shirt isn’t approved because you can use admin (Such as Adonis) to do :shirt me 10028947661.
Also if anybody needs any more info, just ask and I can reply/edit. Thanks in advance to anyone.