Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help making teams spawn with there own set of clothes and hats?

Asked by 5 years ago

Hello I am trying to make my teams spawn with there own set of clothes and hats. I have this one script that works only if I put it in workspace ( shirt and pants work but hat id doesnt), but it doesnt work with the seperate teams. If anyone knows a script that is able to assign shirts, pants, and hats to a certain team please let me know thank you. I am new to scripting so please be specific in telling me what to do thank you.

game.Players.PlayerAdded:connect(function(player) -- Hat adder repeat wait()until player.Character local hatId = 000000 -- Find the ID of the hat local hat = game:service("InsertService"):LoadAsset(hatId):GetChildren()[1] hat.Parent = player.Character end)

game.Workspace.ChildAdded:connect(function(plr) --Pants and body adder local name = plr.Name local playerinplayers = game.Players:FindFirstChild(plr.Name) playerinplayers.CanLoadCharacterAppearance = false plr.Head.face.Texture = "rbxassetid://000000" --Find an ID of a decal for your face. local shirt = Instance.new("Shirt", plr) shirt.ShirtTemplate = "rbxassetid://000000" -- Find the ID of the shirt local pants = Instance.new("Pants", plr) pants.PantsTemplate = "rbxassetid://000000" -- Find the ID of the pants end)

0
Post the script block please. Yonatann12 0 — 5y
0
use script blocks pls User#23365 30 — 5y
0
Please, delete this question and create new, with script block. I dont understand anything HaveASip 494 — 5y

Answer this question