generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Make a simple script for R$

Previous Thread :: Next Thread 
spot9110 is online. 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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
27 Sep 2015 07:56 PM
http://www.roblox.com/Donation-item?id=258280721

Buy it
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
27 Sep 2015 07:57 PM
R$15 = 1M TIX
logic xD

-The [Guy]
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
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 is not online. 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
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
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 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
27 Sep 2015 07:59 PM
Thanks.
I bought the shirt.
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
27 Sep 2015 08:00 PM
use GetPlayerFromCharacter()
Report Abuse
spot9110 is online. 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
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
27 Sep 2015 08:04 PM
Do you want like everything in the character gone but not take away character appearence?

Report Abuse
spot9110 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
27 Sep 2015 08:04 PM
Boss, make another shirt XD
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
27 Sep 2015 08:05 PM
spot delete his and buy again
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
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 is online. 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 is online. 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 is not online. 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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
28 Sep 2015 05:38 PM
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Char)
Char:ClearAllChildren()
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image