|
| 05 Apr 2015 03:00 AM |
I wondered if anyone could help me. I want to make it so when a golf ball hits a hole the game deletes that ball and spawns a new one. I know its a large thing, I am just not great with scripting yet.
Thanks for time. |
|
|
| Report Abuse |
|
|
Wittiest
|
  |
| Joined: 02 Mar 2009 |
| Total Posts: 9665 |
|
|
| 05 Apr 2015 03:19 AM |
local ball = script.Parent local ball1 = ball:Clone() holename = '' --name of the part the ball will be touching ball.Touched:connect(function(hit) if hit.Name == holename then game:GetService('Debris'):AddItem(ball,1) ball1.Parent=workspace end end) |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2015 07:08 AM |
Thanks for answering. Quick question, does that go into the ball, or where the ball will spawn? |
|
|
| Report Abuse |
|
|