spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 27 Sep 2015 07:49 PM |
Anyone know how to remove all of a players CharacterMesh?
function onTouched(hit) --put it in here script.Parent.Touched:connect(onTouched)
Reward is 15R$ |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 07:56 PM |
game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Char) for i, v in pairs(Char:GetChildren()) do if v:IsA("CharacterMesh") then v:Destroy() end end end) end)
|
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 07:56 PM |
http://www.roblox.com/Donation-item?id=258280721
Buy it |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 07:57 PM |
R$15 = 1M TIX logic xD
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 07:57 PM |
Oh you wanted touched
script.Parent.Touched:connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then for index, value in pairs(hit.Parent:GetChildren()) do if value:IsA("CharacterMesh") then value:Destroy() end end end) |
|
|
| Report Abuse |
|
|
Csharp0
|
  |
| Joined: 05 Mar 2015 |
| Total Posts: 261 |
|
|
| 27 Sep 2015 07:58 PM |
function onTouched(hit) if hit.Parent.Humanoid then for i, v in ipairs(hit.Parent) if v.ClassName == "CharacterMesh" then v:Destroy() end end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 07:58 PM |
oh, that's probably more efficient than this:
function onTouched(hit) local p = hit.Parent:GetChildren() for i=1, #p do if(string.find(p[i].Name, "2.0") or string.find(p[i].Name, "3.0")) then p[i]:Destroy() end end end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 27 Sep 2015 07:59 PM |
Thanks. I bought the shirt. |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:00 PM |
"if hit.Parent.Humanoid then" That will error. Use :FindFirstChild() which returns nil instead of error.
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:00 PM |
| use GetPlayerFromCharacter() |
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 27 Sep 2015 08:02 PM |
| Also paying 15R$ if someone has a script to remove Body Colors |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:03 PM |
This guy is milking us, but he's paying up so we're happy. xD
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:03 PM |
script.Parent.Touched:connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then for index, value in pairs(hit.Parent:GetChildren()) do if value:IsA("BodyColors") then value:Destroy() end end end) |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:04 PM |
Do you want like everything in the character gone but not take away character appearence?
|
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 27 Sep 2015 08:04 PM |
| Boss, make another shirt XD |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:05 PM |
| spot delete his and buy again |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:05 PM |
function PlayerRespawned(Player) local Char = Player.Character
if Char then if Char.Head:findFirstChild("face") then Char.Head.face:Destroy() end end
if Char then Char.ChildAdded:connect(function(Child) if Child then if Child:IsA("Hat") then Child:Destroy() end end end) end
if Char then wait(1) local Colours = Char:findFirstChild("Body Colors") Colours.LeftArmColor = BrickColor.new("") Colours.LeftLegColor = BrickColor.new("") Colours.RightArmColor = BrickColor.new("") Colours.RightLegColor = BrickColor.new("") Colours.TorsoColor = BrickColor.new("") end
if Char then for i, v in pairs(Char:GetChildren()) do if v:IsA("CharacterMesh") then v:Destroy() end end end
if Char then for i, v in pairs(Char:GetChildren()) do if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ShirtGraphic") then v:Destroy() end end end
if Char then if Char:findFirstChild("Torso") then Char.Torso:findFirstChild("roblox"):Destroy() end end end
function PlayerJoined(JoinedPlayer) JoinedPlayer.Changed:connect(function(Prop) if Prop == "Character" then PlayerRespawned(JoinedPlayer) end end) end
game.Players.PlayerAdded:connect(PlayerJoined) |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2015 08:06 PM |
I'm too lazy to make another shirt, If you want to pay me delete the tshirt you bought from me and buy it again.
http://www.roblox.com/Donation-item?id=258280721 |
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 27 Sep 2015 10:14 PM |
| Your script doesn't remove the face decal. It didn't work |
|
|
| Report Abuse |
|
|
spot9110
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 475 |
|
|
| 28 Sep 2015 05:28 PM |
| Anyone wanna fix his script so it removes the face for 15R$? |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 28 Sep 2015 05:34 PM |
at the rate that the value of tix is decreasing, 15 robux will equal 1m tix in no time!
Red Blossoms |
|
|
| Report Abuse |
|
|
|
| 28 Sep 2015 05:38 PM |
game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Char) Char:ClearAllChildren() end) end) |
|
|
| Report Abuse |
|
|