Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to trigger a GOAL! Gui when a person scores a goal in my football (Soccer) game?

Asked by 10 years ago

I am creating a Football (Soccer) game in Roblox and i am not a very good scripter so i need some help e.g how to script a gui to trigger when someone scores a goal or when someone is offside and scores a goal it triggers a foul, etc.

3 answers

Log in to vote
1
Answered by 10 years ago

Look for a basketball hoop in free models, where if you shoot the basketball in the hoop it says "Swish", take out a phew scripts in it, and put them into the goal. Otherwise, you're going to need to make this yourself, because this isn't a requesting site. It's a helpful site, don't get me wrong, but you can't request scripts here.

Ad
Log in to vote
0
Answered by 10 years ago

I'm not sure about the fouls.. but with just getting any goal you could put an invisible non-CanCollide[able] brick inside the goal, and make that if the ball touches the brick then a message/GUI would pop up. I think that might work, not too sure. Apologies if that wasn't very helpful xD

Log in to vote
0
Answered by
Mowblow 117
10 years ago

@infallivelemon Good Idea! Make sure that part covers the whole inside of the goal. Put this script inside of it. A script for it would be like:

local toucherpart = script.Parent
toucherpart.Touched:connect(function(Part)
if Part.Name = FootBall then
local f  = Instance.new("Message")
f.Text = "Goal!"
f.Parent = Workspace
wait(5)
f:remove()
end
end)

Hope this helped! PM me @Mowblow on roblox for more help!

Answer this question