|
| 23 Jul 2017 03:14 PM |
| OK, so here is my issue, i have a custom coffee tool made out of bricks and such, and I would like to have it so when it collides with a brick it changes the decal on the liquid to add the effect of cream or something. My script that I currently have is down below, if someone could help me out with this, that would be perfect! function onTouch(hit) if hit.Parent.className == "Classic Brew" and hit.Parent.liquid ~= nil then if hit.Parent.liquid.Texture == ########################################### then while true do script.Parent.Texture = ########################################### end end end end script.Parent.Touched:connect(onTouch) The first decal is a decal with literally nothing, and the second is with a swirl, both can be found on my profile |
|
|
| Report Abuse |
|
|
LeafDoode
|
  |
| Joined: 29 May 2017 |
| Total Posts: 3094 |
|
| |
|
|
| 23 Jul 2017 03:16 PM |
| I Accidentally Broke The Script In There, My Bad, Here It Is Again In A Proper Format function onTouch(hit) if hit.Parent.className == "Classic Brew" and hit.Parent.liquid ~= nil then if hit.Parent.liquid.Texture == ########################################### then while true do script.Parent.Texture = ########################################### end end end end script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
ahwz
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 3230 |
|
|
| 23 Jul 2017 03:16 PM |
First post is a filtered post.
|
|
|
| Report Abuse |
|
|
LeafDoode
|
  |
| Joined: 29 May 2017 |
| Total Posts: 3094 |
|
| |
|
LeafDoode
|
  |
| Joined: 29 May 2017 |
| Total Posts: 3094 |
|
|
| 23 Jul 2017 03:17 PM |
| oops the "XD" was for pump |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2017 03:17 PM |
| still not properly formatted in the post, but it looks fine in the script :P |
|
|
| Report Abuse |
|
|
LeafDoode
|
  |
| Joined: 29 May 2017 |
| Total Posts: 3094 |
|
|
| 23 Jul 2017 03:18 PM |
| copy and paste the script in ######## |
|
|
| Report Abuse |
|
|
LeafDoode
|
  |
| Joined: 29 May 2017 |
| Total Posts: 3094 |
|
| |
|
LeafDoode
|
  |
| Joined: 29 May 2017 |
| Total Posts: 3094 |
|
| |
|
|
| 25 Jul 2017 05:50 PM |
| ## ##### but only 9 comments, anyone actually able to help? |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2017 05:51 PM |
| boy does Roblox love censorship of things that don't need to be |
|
|
| Report Abuse |
|
|