|
| 10 Jun 2013 01:46 PM |
IM working on this..but i made it where if anything touches the brick it will say inc..i want it to be where only if the ball touches.
debounce = false function onTouched(hit) if debounce==false then debounce = true msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = ("INC") wait(5) msg.Text = ("lol") msg:remove() debounce = false end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2013 02:22 PM |
debounce = false function onTouched(hit) if debounce==false then if hit.Name = "Ball" then debounce = true msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = ("INC") wait(5) msg.Text = ("lol") msg:remove() debounce = false end end end script.Parent.Touched:connect(onTouched)
http://www.roblox.com/My/Groups.aspx?gid=66545 |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2013 02:37 PM |
debounce = false function onTouched(hit) if debounce==false then if hit.Name == "Ball" then debounce = true msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = ("INC") wait(5) msg.Text = ("lol") msg:remove() debounce = false end end end script.Parent.Touched:connect(onTouched)
http://www.roblox.com/My/Groups.aspx?gid=66545 |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2013 09:46 PM |
| Its just touching a regular brick called part..You want me to name it a special brick? |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2013 09:48 PM |
debounce = false function onTouched(hit) if debounce==false then if hit.Name == "part" then --Change where is says "part" to the exact name of the ball debounce = true msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = ("INC") wait(5) msg.Text = ("lol") msg:remove() debounce = false end end end script.Parent.Touched:connect(onTouched)
http://www.roblox.com/My/Groups.aspx?gid=66545 |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2013 11:58 PM |
debounce = false function onTouched(hit) if debounce==false then if hit.Name == "part" then --Change where is says "part" to the exact name of the ball debounce = true msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = ("INC") wait(5) msg.Text = ("lol") msg:remove() debounce = false end end end script.Parent.Touched:connect(onTouched)
-still didnt work. do i need a script on the ball?..i appreciate you helping me btw |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 11 Jun 2013 12:02 AM |
| Did you read, and acknowledge his comment on line four...? You have to change 'part' to the name of the ball. |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2013 10:12 AM |
| i did that..i was just posting the old script again so he could look at it.. |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2013 10:19 AM |
debounce = false function onTouched(hit) if debounce==false then if hit.Name == "Football" then --Change where is says "part" to the exact name of the ball debounce = true msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = ("INC") wait(5) msg.Text = ("lol") msg:remove() debounce = false end end end script.Parent.Touched:connect(onTouched)
-Is what i put on the brick |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2013 12:34 PM |
Wait, did you put this in the ball or the "goal"?
It should be in what ever you want the "goal" to be, not the ball.
http://www.roblox.com/My/Groups.aspx?gid=66545 |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2013 08:50 PM |
| I put this on the brick...im going to make it invisible..so when the ball touches the ground it is going to say inc |
|
|
| Report Abuse |
|
|