|
| 10 Feb 2013 04:03 PM |
I want to make my script so once I come into contact with another brick it will make the animated decal change momentarily to a different image.
picture = script.Parent.Decal
while true do picture.Texture = "http://www.roblox.com/asset/?id=106314463" wait(0.25) picture.Texture = "http://www.roblox.com/asset/?id=106314566" wait(0.25)
end
I want to change two moving images (Textures) (http://www.roblox.com/asset/?id=106314463 and http://www.roblox.com/asset/?id=106314566) to one different image. (http://www.roblox.com/asset/?id=106314595) |
|
|
| Report Abuse |
|
|
solidhead
|
  |
| Joined: 19 Feb 2010 |
| Total Posts: 2745 |
|
|
| 10 Feb 2013 04:08 PM |
| Triggerd when you come in contact with it? If so, i think you need to have [function onTouch] in the beggining, i hope this helps but it probably wont cause i just started scripting :P |
|
|
| Report Abuse |
|
|
|
| 10 Feb 2013 04:11 PM |
there is not function called "onTouch" unless you make it... you have to use the .Touched event...whatever you call the function is your choice...
part.Touched:connect(bob)
function bob(hit)
end |
|
|
| Report Abuse |
|
|
solidhead
|
  |
| Joined: 19 Feb 2010 |
| Total Posts: 2745 |
|
|
| 10 Feb 2013 04:13 PM |
| Thanks for the correction, i need all of them i can get in terms of scripting. |
|
|
| Report Abuse |
|
|