SCORING GOALS - Events - Learn To Script #7
Learn how to use events to 'listen' for things happening in our game that we can then respond to using functions.
FILES ►gnome.codes/LearnToScript/
DISCORD ► / discord
TWITTER ►@gnomecodeRBLX
MUSIC
Aerosol Of My Love by Kevin MacLeod
Link: filmmusic.io/song/7013-aeroso...
License: filmmusic.io/standard-license
Пікірлер: 161
The Gnome Has Gone Mad Crazy and I Like It
@dogwarlordyt
Жыл бұрын
Ayo?
What an underrated guy .. Your tutorials are really understandable 👍♥️
This is very understandable and everything! I love how you make it fun, and we are making a game and learning at the same time! I love this tutorial course, and I hope you make an advanced one!!
Always happy to see a new GnomeCode video!
This KZread channel make you learn to how to script easy.
@GnomeCode
3 жыл бұрын
You heard it here first
Cool video, I also have a idea for a video. it would be cool if you made a tutorial about how to give different animations to a custom starter character, such as an idle, jump, fall or swim because since I already used the first tutorial its the only tutorial that I trust using lol
a cool way to learn using tutorials is pausing sometimes and trying to figure out how to do something without the guidence of a tutorial, it took me some time but I managed to make the goal scoreing work and then I tought I could also probably make the ball return to the original position, so I did that, now I am confident I won't forget it
*yes,* the *coder* is *back* !
I guess it's time for me to learn Lua with these epik tutorials
These vids re so great. Im so stupid but when I watch ur vids, Im really beginnig to learn how to script.
Best channel Ever
This guy is a LEGEND
اتعلمت منك اشياء كثيره وجميله وبخطط لانشاء لعبه + شكرا لك
Hi GnomeCode Love your tutorials!! You are way better then AlvinBlox
WE NEED THE NEXT EPISODE KEEP UP THE GREAT WORK
Yay thanks gnome
best.video.ever.
hello! I am an avid Korean subscriber. I have a question. If I exchange that ball with something else, can I move it by kicking it?
hey Gnome can you bring up a tutorial about when a person score a goal it's say (playername) scores!
At 13:08. Can someone tell me what is the more efficient way he is talking about?
First game thx so much! i've learned and starting making more games... Thiss really helped out.... You are the best! Thx :) Learn people more. Also make a gui show when u score a goal im confused how it works... So help pls?
I still don't see a 4th dimensional first person shooter. Is it coming on video number eight?
POV: *Your Reading This In Your Mind*
@tautvydaan
3 жыл бұрын
Yea
@agamingchannel2
3 жыл бұрын
no i read it out loud ha
@iamincognitomode
3 жыл бұрын
m a g i c
@FlowNeverHigh
3 жыл бұрын
yes
Hi gnome i was just want to know if you could mame a video of how to make a idle animation for a custom character, just like you did whit the walk animation, it would help me.
How would you stop the velocity of the ball when it returns to the center of the game, because every time I score it would keep the velocity and roll somewhere else.
@GingFreecss824
Жыл бұрын
Many ways but here is a basic way, Ill assume your ball is in the middle of the field & not in the air. Make 4 basic parts & put them around the ball & scale them so the ball is trapped within parts. Select all 4 parts union them, rename the union to BallStopper or whatever u wanna call it. Take a look at my script to solve this issue. Rename any variable & parts so it works. local goal1 = workspace.GoalPost1.GoalDetect1 local goal2 = workspace.GoalPost2.GoalDetect2 local ball = workspace["Pitch Stuff"].Ball local stop = workspace["Pitch Stuff"].BallStopper -- A part used to stop the ball from moving when it relocates local ballPosition = workspace["Pitch Stuff"].Ball.Position -- the current position before its moved etc ------- stop.Transparency = 1 -------Functions/Events goal1.Touched:Connect(function(part) -- part detects what touches the goal1 part if part == ball then -- if ball touches the part it detects it then runs the code print("The ball has entered goal1") task.wait(2.5) ball.Position = ballPosition stop.CanCollide = true -- turns on collide & the stop parts stop the ball from rolling away task.wait(1) stop.CanCollide = false -- turns off collide removing the stop parts end end) goal2.Touched:Connect(function(part) if part == ball then print("The ball has entered goal2") task.wait(2.5) ball.Position = ballPosition stop.CanCollide = true task.wait(1) stop.CanCollide = false end end)
@zuzingo.
Жыл бұрын
@@GingFreecss824 thanks for the help, i'll try it out
Cool YT trick type: awesome to make the timebar flickering in rb colors
i love this mans accent
Amazing! Always the best! But where’s the videos of the mafia city episodes?
@senanisgodly
3 жыл бұрын
Yeah, these videos are really good it I prefer Mafia City Episodes.
@nlaboratorio105robloxstudi4
3 жыл бұрын
@@senanisgodly me too I want it to finish, but gnome has his choices !
gane you do a tutorial for goal effects PLEASE im making a basketball game and i really want to add goal effects
wait why is my transparent green thing not working as if its archivable. i see it when im editing the game but when i play it it just isnt there and i tried switching archivable and putting it back but the goals just wont show. whats happening?
Yo do you know how to make a teleport system like the one in The Mimic?
Gnome code I found an office with you in chapter three I got sleepy tho you were playing cards
FINALLY YOU USED DARK THEME..
Ima make this this soccer thing and learn from it
But talking really i REALLY WANT you to do i'll love it!!!!!! :))))))))
hey gnomecode will you be hosting a easter gnome jam?
so i have an problem,when i shot the ball at the goal idk why but it isn't placing the ball at the Ball Position... Someone can help?
Can you play fan made games on live stream? (My game is called Yacht (story))
Hey GnomeCode! You probably won’t do this but I think it would be really cool if you could continue the Teddy series and show us how to make a death screen, lobby etc. I know you finished the game, but I spent a while making the Teddy character and AI path finding and I really, really don’t want to let my work go to waste. Thanks!
THANKS! Before, i didn't know how to make an event that when a part,, like the ball, touches something, ONLY THE BALL, it activates. Thank You.
@GnomeCode
Жыл бұрын
I'm glad to hear you found it helpful. Thanks for watching
a gun tutorial would be nice as there are not alot of efficient ones.
The dot is not pulling up any menu for me... is this tutorial obsolete now?
Hey Gnome_code can you do a tutorial on how to animate multiple motor 6D parts on a part? Because it seems I can't even animate the rig if there is so many motor 6D parts on one part, can you make a video to explain how to fix this?
@loligurl1971
2 жыл бұрын
@@paopaothemaocow it did i learned the problem i just forgot to comment it :P
You make scripting look easy lol
What do i do if it spams the amount i touched the ball in "attempt to call a nil value" ("(x138)" times for example)?
@zenkai5481
2 жыл бұрын
that's what happens to me :(
Teach how to put animations on a morph (idle walk etc)
Hey gnome, what is the bad meme blood between you and alvin blox. During the teddy dev logs, you call him out
@GnomeCode
3 жыл бұрын
There's no depth to it, was just a quick joke seen as he's the biggest roblox scripting channel.
I feel like someone is going to use these tutorials to make a roblox Fifa game
can someone help me, whenever the ball goes in the goal it scores like 4 goals instead of 1.
nice
Hello GnomeCode and thank you for this great tutorial. I am hitting an issue I can't understand why this is happening? I do see my print out when either team scores and the ball goes back to the center for the first couple of goals, but it stops working right after: doesn't print out the goal nor returns the ball to the center of the field. Can't understand what could be happening. These are events so they should happen when they are triggered, meaning the ball touching the goal1 and goal2. Anyone else with this issue?
@intitem
Жыл бұрын
Yes I have the issue to. Idk how to fix it.
@GingFreecss824
Жыл бұрын
@@intitem I tried to get the issue by scoring multiple goals in the same goal but I had no problem. If you can send me your script & ill help you, or just look at your script for any errors.
@WhiteHatGuides
Жыл бұрын
Make sure the ball is in workspace. not in a folder. but in workspace
@WhiteHatGuides
Жыл бұрын
@@intitem put it in workspace. the ball.
@intitem
Жыл бұрын
@@WhiteHatGuides a long time but I fixed it alr thanks though
Papa the daycare sank underwater
Gnomecode is making a soccer game?
It didnt print out GOAL for me for some reason
How to make goal count gui??? Please i need very much
ball = script.Parent ball.Touched:Connect(function(part) print(part) end) Put the script inside of the ball
Hey GnomeCode How i Made Dialog And Give the item
When did you do functions? I don't remember it
@GnomeCode
Жыл бұрын
Check the playlist! There's an episode 5 (and 5.5 that I made later on which covers more detail)
how do we find out who scored?
3:52 wowwwww
Could you please redo this script with a matchmaking system and ranked?
Hello! i have a new idea for a series try to make a game like Notoriety it would be pretty cool.
Is there going to be a easter Gnome Jam if there is I AM LOOKING FOWARD TO IT X 200000000
@waltuh5434
3 жыл бұрын
in his stream he said he might do a different theme
Dear gnome code please read this I got an idea for Teddy this is my idea when you collect an item there’s a 40 second timer you must use the item before the timer runs out if the timer runs out if you have the item the item goes back to its original spawn point I want this feature in the game because of the annoying trollers they grab items but they don’t use it on purpose and they ruined the whole game please add this it would make the game more fun!
@GnomeCode
3 жыл бұрын
Hi bendy, I'm aware this is becoming an issue. Thanks for the suggestion
@ElderWizard
3 жыл бұрын
@@GnomeCode yeah
@amgloriouschubbunny3261
3 жыл бұрын
@@GnomeCode I spent a while making the Teddy character and don’t want my work to go to waste can you please continue the series?
"The Ball Has Been Touched"
I made a game called ball thingie that I made with your tutorials it's made by lofified
When are you going to work on I mafia city
when i press . and scroll down theres no touched event
I’m definitely going to make a smaller version of this to play against my girlfriend with a goalie 1v1
" The ball was touched " the fact that he didnt even noticed it.
@SmokinConedHat
7 ай бұрын
it was touched by a part
Yesh
the end doesnt spawn on me
Idea:How To Make A Billiard/Pool Game
Idea for a video: how much money/robux you made from all your published games?
i have a video idea: I made a roblox game only using plugins, no scripts
If u pass my challenge, Do 2 things: Put the name Gnome sports mix 2. Make game night about it
video idea make a tower battle game
My ball kept flying in the air lol
Does anyone have a new script for these videos? they are broken and out of date
EA Sports Watching This: Write that down, write that down
damn you've been using global variables for some time
do gnome jam
Can you plz help script on my game gnome?
When the ball is amogus 😳😳
@Estoryu
3 жыл бұрын
😳😳😳sus
@sournois90
3 жыл бұрын
ball is the impostor??w?w?? 😳😳😳😳😳😳😳😳😳😳
Iam srry but can you add part 1 I can’t find it
@GnomeCode
Жыл бұрын
Every this is in the playlist Learn to Script "Your First Game": kzread.info/head/PLtMUa6NlF10dfhmgI23R9EPmrBrWe7Pcs
my ball just dissapeared
bread
make a chase script using recasting
i dont get it
World cupppppp
Scripting and gnomeo
7:10
nice and first :D
@botitized
3 жыл бұрын
nope, sorry man you weren't, I wasn't either.
@brightenlahaie533
3 жыл бұрын
alot of you arent
can you make a tutorial on making a combat system with combos and stuff?
@Shadowbirth1
3 жыл бұрын
Uhm he’s teaches scripting so you can do it on your own
Why dose my scripts always go wrong while watching these videos?
Wwwwwwwwww im in online rn shh
Name for the game: GnomeBall
Day 6 of asking to continue you mafia city roblox remake
21st
First maybe I Dont know 🤷 my internet is kinda trash.
@MarioMario-yb3iz
3 жыл бұрын
gg
@runes1216
3 жыл бұрын
@@MarioMario-yb3iz gg