Uniform Giver - Source Code

Scripting Support


Need help, make a post on #scripting-support!

Source Code


local Players = game:GetService("Players")

local GroupID = 1
local MinRankId = 0

local Shirt = script.Uniform.Shirt.ShirtTemplate
local Pants = script.Uniform.Pants.PantsTemplate



Players.PlayerAdded:Connect(function(Player)
	local RankInGroup = Player:GetRankInGroup(GroupID) 
	if RankInGroup >= MinRankId then 
		local Playercharacter = Player.Character
                Playercharacter:WaitForChild("Shirt").ShirtTemplate = Shirt
                Playercharacter:WaitForChild("Pants").PantsTemplate= Pants
	end
end)
1 Like

This topic was automatically closed 1 minute after the last reply. New replies are no longer allowed.