|
| 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 |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 03 Apr 2012 02:20 PM |
| o.0 did you replace the (ROUTE TO BRICK) part? |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2012 02:22 PM |
| Yes, but it still didn't work so I grabbed this one and eddited it. |
|
|
| Report Abuse |
|
|