|
| 11 Dec 2014 09:58 PM |
I need help with a football script
I need a gui that says inc to pop up when the ball hits the ground. I have some of the script done, i just dont know how to trigger the inc when the ball hits the ground. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 11 Dec 2014 10:17 PM |
inc=game.ScreenGUI.Incomplete.inc
if --(This is the part i need)-- then
inc.Visible = true
wait(3)
inc.Visible = false
end
|
|
|
| Report Abuse |
|
|
|
| 11 Dec 2014 10:21 PM |
I'll be a bit more specific I need the Ball (Football, or script.parent) to trigger the 'if then function' by having contact with the ground (grasspart) |
|
|
| Report Abuse |
|
|
|
| 11 Dec 2014 10:26 PM |
local ball = --Insert ball here local ground = --Insert ground here
ball.touched:connect(function (otherPart) if otherPart == ground then --it touched, do stuff else --it didn't touch it, but another part, do stuff end end) |
|
|
| Report Abuse |
|
|