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 » Scripting Helpers
Home Search
 

Re: T-Shirt Remover Help

Previous Thread :: Next Thread 
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
14 Jan 2012 10:36 AM
I am a complete newb at scripting, so my friend helped me make a script. Actually helped me, I did very little but he was explaining as we went along. Finally we made a T-Shirt Remover, that was about a year ago. My cousin he's eight loves playing Roblox, I was in the middle of building and he deleted a bunch of my script text. I've had it in my one place since my friend helped me out, well he moved to the states and he hasn't been on Roblox in a month. So I can't get help from him, to make a long story short this is all I have left:


local DementedKnightBrandPeanutButter = FindFirstChild("Humanoid")

function onTouched(part)
DementedKnightBrandPeanutButter.Parent.Torso.Decal:Remove()
end
end

I know thats wrong, you might aswell just re-write it. I can't find any copys of it and he already saved on my game. >_>

What could I do to get some assistance with this?
I would like either some sort of online guide, an actual person helping me or this script getting fixed by the forums. I would really appreciate it, yes I have read all of the Roblox Wiki Scripting Guides but I don't understand it very well.

Please help!
Thanks for reading
-DementedKnight
Report Abuse
FreeGamesROBLOX is not online. FreeGamesROBLOX
Joined: 15 Jun 2011
Total Posts: 6622
14 Jan 2012 10:39 AM
function onTouched(part)
game.Workspace.DementedKnight.Decal:remove()

That simple

-Lua FTW
Report Abuse
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
14 Jan 2012 10:41 AM
Its for everyone not just me.
Report Abuse
FreeGamesROBLOX is not online. FreeGamesROBLOX
Joined: 15 Jun 2011
Total Posts: 6622
14 Jan 2012 10:42 AM
Who's considered "everyone"

-Lua FTW
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
14 Jan 2012 10:43 AM
function onTouched(hit)
h = hit.Parent:findFirstChild("Humanoid")
if h ~= nil then
ts = h.Parent.Torso:findFirstChild("roblox")
if ts ~= nil then
ts:Destroy()
end
end
end

script.Parent.Touched:connect(onTouched)

If I must E.E

ˈ˟ˈ About me? I got Remove()'d but came back for I was not Destroy()'d :3 ˈ˟ˈ http://www.roblox.com/Rainbow-Flow-item?id=69674148
Report Abuse
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
14 Jan 2012 10:44 AM
Those who touch it, its going into a brick and whatever Humanoid touches it will have their T-Shirt removed.
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
14 Jan 2012 10:48 AM
h = Instance.new("Message")
h.Text = string.reverse("DX tpircs tnac thginKdetnemeD")

ˈ˟ˈ About me? I got Remove()'d but came back for I was not Destroy()'d :3 ˈ˟ˈ http://www.roblox.com/Rainbow-Flow-item?id=69674148
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
14 Jan 2012 10:53 AM
@18 You didn't parent it.
Report Abuse
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
14 Jan 2012 10:57 AM
Maybe I should been specific, I need the Shirt Graphic removed too.
Report Abuse
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
14 Jan 2012 10:58 AM
Thanks for the support 18, I really appreciate your message. >_>
Maybe now I won't give credit.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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