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
 

Can someone Please help me with a small script? 1-5 lines?

Previous Thread :: Next Thread 
sourcream123 is not online. sourcream123
Joined: 16 Mar 2009
Total Posts: 1510
03 Apr 2012 01:24 PM
I need it so when on touch it turns a brick (Not the brick that you touch) transparency to 0.

I know know one likes request, but I really need it :3
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
03 Apr 2012 01:24 PM
no requests
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
03 Apr 2012 01:26 PM
function OnTouch(hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil then
(ROUTING TO BRICK).Transparency = 0
end
end
script.Parent.Touched:connect(OnTouch)

Put this inside the brick you want to touch
Report Abuse
sourcream123 is not online. sourcream123
Joined: 16 Mar 2009
Total Posts: 1510
03 Apr 2012 01:26 PM
...
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
03 Apr 2012 01:27 PM
shay, it doesn't really matter for a 5 line script, I pretty much spent the same time to write it as you did to write, "No requests."
Report Abuse
sourcream123 is not online. sourcream123
Joined: 16 Mar 2009
Total Posts: 1510
03 Apr 2012 01:27 PM
@unknown89089

Thanks.
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
03 Apr 2012 01:27 PM
not really, it says no requests in the rules, if you can't except that then leave
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
03 Apr 2012 01:29 PM
**accept

If we never give someone a place to start, they'll never learn how to script.
Report Abuse
sourcream123 is not online. sourcream123
Joined: 16 Mar 2009
Total Posts: 1510
03 Apr 2012 01:30 PM
I would have done it but I don't script, I can just edit script's that other people have done, but I am getting there.
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
03 Apr 2012 01:32 PM
I learn through reading free model scripts, then understanding what they do, then i use those principles to make my own script... the least he could have done was come here with a free model script for us to fix.... and thanks for fixing the typo
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
03 Apr 2012 01:34 PM
Not everyone learns the same way, pretty much, this IS a free model script I'm giving him anyways.
Report Abuse
sourcream123 is not online. sourcream123
Joined: 16 Mar 2009
Total Posts: 1510
03 Apr 2012 01:34 PM
Well I'm sorry.
Report Abuse
shaythegoon is not online. shaythegoon
Joined: 18 Jul 2010
Total Posts: 630
03 Apr 2012 01:35 PM
oh lol, thats, Ironic XD brilliant... I don't work much with Ontouch scripts, should probably spend more time looking at them
Report Abuse
sourcream123 is not online. sourcream123
Joined: 16 Mar 2009
Total Posts: 1510
03 Apr 2012 02:19 PM
Actually, that one didn't even work so I used this one :3


function onTouched(hit)
local humanoid = hit.Parent:findFirstChild("Humanoid")
if humanoid~=nil then
game.Workspace.brick1.Transparency = 0
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
03 Apr 2012 02:20 PM
o.0 did you replace the (ROUTE TO BRICK) part?
Report Abuse
sourcream123 is not online. sourcream123
Joined: 16 Mar 2009
Total Posts: 1510
03 Apr 2012 02:22 PM
Yes, but it still didn't work so I grabbed this one and eddited it.
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