frakerman
|
  |
| Joined: 29 Dec 2008 |
| Total Posts: 213 |
|
|
| 08 Apr 2016 05:20 AM |
| Anyone have any clue how to make food gears like the turkey leg or taco destroy itself after a few clicks? This is seen on some front page games and I can't seem to figure it out. |
|
|
| Report Abuse |
|
|
Qraotic
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 63 |
|
|
| 08 Apr 2016 05:46 AM |
Maybe add like a counting function e.g.
local eat = 0
Player.Mouse.Button1Clicked:connect(function(clicked) if eat >= 3 then eat = eat+1 -- functions, animations etc.
end) |
|
|
| Report Abuse |
|
|
frakerman
|
  |
| Joined: 29 Dec 2008 |
| Total Posts: 213 |
|
|
| 11 Apr 2016 04:04 PM |
| Ohh I see. I've been scripting for a while but I'm still a newb and find myself stumped on the simplest things. :/ |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 11 Apr 2016 04:18 PM |
| Keep at it and you'll get better |
|
|
| Report Abuse |
|
|
frakerman
|
  |
| Joined: 29 Dec 2008 |
| Total Posts: 213 |
|
|
| 11 Apr 2016 04:23 PM |
| Haha I've been focusing too much on the design and not enough on the scripting @doneyes. I'm a better modeler than I am a scripter to be honest. |
|
|
| Report Abuse |
|
|