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

How can i make a script that removes tshirts ?

Asked by 10 years ago

So i want to make a script that removes tshirt but i dont want it to remove the player's shirt/pants.

plyr = game.Player:WaitForChild("LocalPlayer") plyr.CharacterAdded:connect(function(char) if char.Torso and char.Torso:FindFirstChild("roblox") then char.Torso:FindFirstChild("roblox"):Destroy() end end

does not work :C

2 answers

Log in to vote
0
Answered by
l0cky2013 135
10 years ago
plyr = game.Player:WaitForChild("LocalPlayer") plyr.CharacterAdded:connect(function(char) if char.Torso and char.Torso:FindFirstChild("roblox") then char.Torso:FindFirstChild("roblox"):Destroy() end end) --your typo was not adding the parenthesis 
0
that did not work =[ Mikering 5 — 10y
Ad
Log in to vote
-1
Answered by
NotSoNorm 777 Moderation Voter
10 years ago

Ignore this, I miss understood the question.

0
still not working D: Mikering 5 — 10y

Answer this question