Alright, so I have this localscript.

player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
player.Character:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=757996865"-- Shirt ID here 
player.Character:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=758000255" -- Pants ID here 
end)

How would I change this localscript so that it stays on that same player upon death?

4 comments

0

You want the ShirtTemplate and PantsTemplate to stay on that person until death? And then, when they die you want the ShirtTemplate and PantsTemplate to change? I suppose...

0

Actually, it'd be exactly the same thing it is now, but when a player dies, the clothing stays on, rather than their normal one.

0

um, add a script to startercharacterscripts that checks what shirt/pants template they chose and each time they respawn it changes the template