|
| 17 Mar 2012 05:24 PM |
Does anybody have a script like this/Can make one?
When click the gear's texture changes (NOT THE THE MESH. THE MESH'S TEXTURE!!!) |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Mar 2012 05:26 PM |
| We can only help if you give us a script to fix.. We don't do requests. |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2012 05:26 PM |
| I could use one. I need one. Please |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2012 05:27 PM |
Okay.
Here is a UNCOMPLETE and BROKEN script
function(onClicked)
if script.Parent.Mesh.TextureId == "insertidhere" then script.Parent.Mesh.TextureId = "insertid2here"
elseif script.Parent.Mesh.TextureId = "insertid2here" then script.Parent.Mesh.TextureId = "insertid2here"
end |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Mar 2012 05:31 PM |
| script.Parent.ClickDetector.MouseClick:connect(onClicked) -- Don't forget this connection line. |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2012 05:33 PM |
| Give me the full script. And Where to put the script (into)] |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 17 Mar 2012 05:52 PM |
function(onClicked) if script.Parent.Mesh.TextureId == "insertidhere" then script.Parent.Mesh.TextureId = "insertid2here" elseif script.Parent.Mesh.TextureId = "insertid2here" then script.Parent.Mesh.TextureId = "insertid2here" end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
--You put the script under the tool and make sure you have a click detector =.= Next time read the connection line =.=
|
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Aug 2012 02:19 AM |
| i'm re-testing Script-tester.png |
|
|
| Report Abuse |
|
|
| |
|