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

How would I turn this LocalScript into a loop until it's false?

Asked by 7 years ago

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?

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... KingLoneCat 2642 — 7y
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. comotose 3 — 7y
0
um, add a script to startercharacterscripts that checks what shirt/pants template they chose and each time they respawn it changes the template User#13357 0 — 7y

Answer this question