Here yall go : [1'ST SCRIPT IN THE VID] video:local roundLength = 120 local intermissionLength = 15 local InRound = game.ReplicatedStorage.InRound local Status = game.ReplicatedStorage.Status local LobbySpawn = game.Workspace.LobbySpawn local GameAreaSpawn = game.Workspace.GameAreaSpawn InRound.Changed:Connect(function() wait(1) if InRound.Value == true then for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = GameAreaSpawn.CFrame end else for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = LobbySpawn.CFrame end end end) local function roundTimer() while wait() do for i = intermissionLength, 1, -1 do InRound.Value = false wait(1) Status.Value = "Intermission: ".. i .." seconds left!" end for i = roundLength, 1, -1 do InRound.Value = true wait(1) Status.Value = "Game: ".. i .." seconds left!" end end end spawn (roundTimer) local Status = game.ReplicatedStorage.Status local TimerDisplay = script.Parent.TimerDisplay Status.Changed:Connect(function() TimerDisplay.Text = Status.Value end)
@monkosproofs64113 жыл бұрын
Thanks for the script, it was very helpful, but how do you keep the players alive when they die? Say if you were doing an obby, how do you make sure that the player(s) can respawn in the obby?
@cloe11693 жыл бұрын
Thank you so much! You are so helpful.
@max15ye3 жыл бұрын
THANKS SO GODDAMN MUCH IM SUBBING
@smhh.hxyzzn16223 жыл бұрын
@@monkosproofs6411 checkpoint scripy
@sammywoo13723 жыл бұрын
You. Are. A. Legend
@JustWowNick4 жыл бұрын
Finally, a tutorial that's not 4 years old.
@phitran47824 жыл бұрын
Lol same here
@perry27354 жыл бұрын
Lol
@perry27354 жыл бұрын
. Why are you here?
@axepxo64894 жыл бұрын
GearzDev idk
@shayraiz92314 жыл бұрын
IKR ive been looking for a round based script that was made in 2019 or 2020 FOREVER
@never_gonna_give_you_up122 жыл бұрын
a tip for everyone whos using this add "ui corner" to your text label it adds nice curved like corners to your intermission background and i think it makes it look alot nicer
@kurtmedina37362 жыл бұрын
video i made about it: kzbin.info/www/bejne/bmqzXqOvjtWBhK8 edit: my other channel
@CRT_YT2 жыл бұрын
or you could just hide the background and its 10 times better??
@never_gonna_give_you_up122 жыл бұрын
@@CRT_YT i guess you could do that to
@osdysis2 жыл бұрын
pin this
@p0p7art2 жыл бұрын
@@osdysis no
@DoggoGamerYT3 жыл бұрын
"this will take around 15 minutes." 3 hours later...
@godlybatiste47083 жыл бұрын
if u know the basics of scripting its pretty easy maybe watch some basics before u skip too far ahead
@imbilguun2363 жыл бұрын
@@godlybatiste4708 yep true
@channelnamegoeshere47073 жыл бұрын
meanwhile me seeing the first line of code and going, "Oh, ok" and then doing everything else myself
@mainlyyusuf26083 жыл бұрын
@@godlybatiste4708 OHHHHHHH
@TheMaskedWarrior90013 жыл бұрын
@@channelnamegoeshere4707 Meanwhile me not flexing to people who are new to the lua language
@Jayzbin4 жыл бұрын
If you can't select an item or object in Roblox Studio, check if it's locked. That's probably why in the beginning of the video you questioned why you couldn't select the object in Roblox Studio. Hopefully this helped! :D
@gavin95563 жыл бұрын
No, he duplicated the baseplate part which you cannot select in your screen, it can only be selected in the main parent, which is the workspace :)
@MrRuby-xz3db3 жыл бұрын
@@gavin9556 You can unlock the baseplate.
@cristianospohr693 жыл бұрын
@@MrRuby-xz3db okay
@ScriptedOcean2 жыл бұрын
@@gavin9556 I know that this is a very late reply but that doesn't make sense because if you check the baseplate properties window, you will notice that the locked property is ticked which causes it to not be able to move it around by just selecting it. But if you didn't duplicate the baseplate, then it will not be able to be dragged.
@The0fficialTango6 ай бұрын
Finally a tutorial that’s not 4 years old.. 2024:
@BlueTheCrew2 ай бұрын
yeah
@mrriku92094 жыл бұрын
for the people wondering what for i = is for i = 0,0,0 is a loop that keeps going until a specific number is met. heres some examples for i = start,end, add these are what they resemble you start with 30 seconds then if end is met for example 0 the loop will stop. and you can divide multiply or remove from add for i = 30, 0 , -1 do print("Timer: ".. i) -- i is a variable for index end print("Game Starting") -- when timer meets 0 then we will print out game starting sorry for bad explanation im still learning too
@nuramirahbintiismail37644 жыл бұрын
its called a for loop you can watch youtubers can explain it
@mrriku92094 жыл бұрын
Nuramirah Ismail i know what it is I just wanted to get it out there because many people start without understanding.
@mrriku92094 жыл бұрын
Drawn Out Beats np
@hahaha-vf2xl4 жыл бұрын
In the string "for i" the "i" it's the variable you want to control, for example: for lol = 30, 1, -1 do the "lol" it's the name variable :)
@mrriku92094 жыл бұрын
@@hahaha-vf2xl i is a variable which stands for index. but you can change it into anything
@jamham48203 жыл бұрын
“It’s really easy trust me” That’s what a lot of ppl said and now I have a phd in quantum physics
@paul.warlock3 жыл бұрын
anyone else explain why th it doesnt work? my game's release is in two days and i need a reply that can fix it urgent!! local roundLength = 120 local intermissionlength = 30 local InRound = game.ReplicatedStorage.InRound local Status = game.ReplicatedStorage.Status local LobbySpawn = game.Workspace.LobbySpawn local GameAreaSpawn = game.Workspace.GameAreaSpawn InRound.Changed:Connect(function() wait(1) if InRound == true then for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = GameAreaSpawn.CFrame end else for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = LobbySpawn.CFrame end end end) local function roundTimer() while wait() do for i = intermissionlength, 0, -1 do InRound = false wait(1) Status.Value = "Intermission: ".. i .." seconds left!" end for i = roundlength, 0, -1 do InRound = true wait(1) Status.Value = "Game: ".. i .." seconds left!" end end end spawn(roundTimer)
@paul.warlock3 жыл бұрын
@@zerothegoatONG I got it under control
@mmisterio42063 жыл бұрын
@@paul.warlock What did u do to make it work
@paul.warlock3 жыл бұрын
@@mmisterio4206 luckily for me the release of my game was only a demo, and I used a completely different script
@paul.warlock3 жыл бұрын
I recommend to go watch gnome code’s video
@Sharp20063 жыл бұрын
"Then it will start counting down, Or actually it won't count down" -TheDevKing 2020
@bigchungus14hvh123 жыл бұрын
not funny didnt laugh
@dxpressedlol3 жыл бұрын
@@bigchungus14hvh12 no one asked if you didnt laugh
@lukebomber92923 жыл бұрын
@@bigchungus14hvh12 nobody cares
@bigchungus14hvh123 жыл бұрын
@@lukebomber9292 your mum doesnt care
@whuanimations2433 жыл бұрын
@@bigchungus14hvh12 it wasnt supposed to be a joke-
@johnnyla2 жыл бұрын
For anyone having an issue with getting Status, he said to create a intValue for Status but it should be a String instead. I think he fixed it off camera unless I missed it. Thanks for the tutorial, buddy
@whitekingcat51182 жыл бұрын
omg thank you i was about to jump off a bridge
@beurghy48812 жыл бұрын
still not working :(
@GooseOnoob2 жыл бұрын
He did mention it in the video by the way
@mariodenis1111_edits Жыл бұрын
@@beurghy4881 read the output
@Abdarahman_450 Жыл бұрын
You missed it 💀
@PubertyHitHard3 ай бұрын
"Finally, a tutorial that's not 4 years old."
@koolkyle733 жыл бұрын
I love how it's not completely perfect because it shows the actually process of coding and debugging. All in all, great video man!😀
@diggychase2 жыл бұрын
yeah i like it when youtubers show they are thinking about what they are writing instead of pasting in a freemodel
@PHNX_main4 жыл бұрын
Video idea that could go along with this: Randomize maps, and also make like a random role. For example sheriff and murder and all of that like murder mystery 2. I would enjoy that a lot and it would help me become a much better developer.
@mckamsocomic4874 жыл бұрын
Yeah
@rickypingui32704 жыл бұрын
Yea, i want to make something like you vote for a map, then when the intermission ends, you get teleported to the map that gets more votes. Everybody will have a sword and they'll have to kill everybody in a period of time. The people who survive win. Idk if that already exists.
@ooffriend93313 жыл бұрын
I would TheDevKing to do that!
@futurefeline4838 Жыл бұрын
need this
@danv043 жыл бұрын
15:31 in the for loop for rounds you can also just move the wait(1) above the inRound.Value and you will be teleported on time!
@davijak_13 жыл бұрын
what?
@skld-xm2 жыл бұрын
@@davijak_1 what do you not get about it 💀
@mariodenis1111_edits Жыл бұрын
that is in pair loop not a for loop if. it was for loop your explanation would be entirely wrong
@RealJas0n Жыл бұрын
omg everyone here knows about coding and I'm the only one 💀💀
@RealJas0n Жыл бұрын
it hurts my brain
@scorchraven79353 жыл бұрын
video:local roundLength = 120 local intermissionLength = 15 local InRound = game.ReplicatedStorage.InRound local Status = game.ReplicatedStorage.Status local LobbySpawn = game.Workspace.LobbySpawn local GameAreaSpawn = game.Workspace.GameAreaSpawn InRound.Changed:Connect(function() wait(1) if InRound.Value == true then for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = GameAreaSpawn.CFrame end else for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = LobbySpawn.CFrame end end end) local function roundTimer() while wait() do for i = intermissionLength, 1, -1 do InRound.Value = false wait(1) Status.Value = "Intermission: ".. i .." seconds left!" end for i = roundLength, 1, -1 do InRound.Value = true wait(1) Status.Value = "Game: ".. i .." seconds left!" end end end spawn (roundTimer)
@BreakfastKid3 жыл бұрын
Wow thx for typing all of this tho now im gonna just paste it and fix some
@modsbanthatguy323 жыл бұрын
tysm (:
@aderReal2 жыл бұрын
thanks i was lazy af
@maryannindonilla967011 ай бұрын
Thank you so much
@fluffi7514 жыл бұрын
This works fine for me heres the scripts if you need help --local status = game.ReplicatedStorage.Status local TimerDisplay = script.Parent.TimerDisplay status.Changed:Connect(function() TimerDisplay.Text = status.Value end)-- --round Variable local roundLength = -- how long you want the game to be local intermissionLength = -- how long the intermission is local inRound = game.ReplicatedStorage.InRound local Status = game.ReplicatedStorage.Status local LobbySpawn = game.Workspace.LobbySpawn local gameAreaSpawn = game.Workspace.GameAreaSpawn inRound.Changed:Connect(function() if inRound.Value == true then for _, player in pairs(game.Players:GetChildren())do local char = player.Character char.HumanoidRootPart.CFrame = gameAreaSpawn.CFrame end else for _, player in pairs(game.Players:GetChildren())do local char = player.Character char.HumanoidRootPart.CFrame = LobbySpawn.CFrame end end end) local function roundTimer() while wait() do for i = intermissionLength, 1, -1 do inRound.Value = false wait(1) Status.Value = "Intermission: "..i.." Seconds Remaining!" end for i = roundLength, 1, -1 do inRound.Value = true wait(1) Status.Value = "game: "..i.." Seconds Remaining!" end end end spawn(roundTimer)-- "hope this helps!"
@fluffi7514 жыл бұрын
@@poldron7033 Your welcome C:
@fluffi7514 жыл бұрын
David wang Your not supposed to copy that part-
@Noobcy4 жыл бұрын
Not Working :/
@nellh2.44 жыл бұрын
It doesnt work
@jakecabral94634 жыл бұрын
im so confused when i start the game it just keeps my Gui on Label and it doesnt countdown????
@LiamOSullivan4 жыл бұрын
I cant help but ik what is happening. In output it says TimerDisplay is not a valid member or ScreenGui
@LiamOSullivan4 жыл бұрын
Wait I know what is happening. Whatever your textlabel is called you put
@bethyprado73254 жыл бұрын
@whirlipie mee toooo
@bethyprado73254 жыл бұрын
@@LiamOSullivan u put.. what sorry
@LiamOSullivan4 жыл бұрын
@@bethyprado7325 no I didn't XD
@ClassyGamesTM3 жыл бұрын
TYSM IT ACTUALLY WORKS, I TRIED THE SMALL TUTORIALS WITH THE "SCRIPT IN THE DESCRIPTION" ( but they dont work ofc) AND TRIED THIS VIDEO, AND IT ACTUALLY WORKS!!!!!!!
@ClassyGamesTM3 жыл бұрын
@Ethan Hawkinson Do it exact, copy it, look over, do it in all the formations.
@jason_collaku3 жыл бұрын
@Ethan Hawkinson same
@strafe91414 жыл бұрын
I've watched your beginner scripting and advanced scripting tutorial.
@hodataraa98394 жыл бұрын
me too
@luffyluffy37584 жыл бұрын
I really like these videos you've been making lately as opposed to your regular scripting series. After a while that series just got really rudimentary and it really didn't give me any further knowledge on any certain topic as I could easily just look it up on the developer forum and understand said topic in less than the time it takes for your video to finish(giving that it is a relatively easy topic of course). These videos on the contrary provide a more in depth and a more interactive experience and do a much better job at driving in previous topics covered on this channel into an actual game idea. I would really enjoy if you could dive into more advanced systems though if that's possible, as that's how I best learn. Perhaps even better, maybe try making videos on systems which involve a more complex mathematical process to get what you are looking for. This doesn't mean that you have to completely abandon your other scripting series though. Overall though, I love the direction in which your channel is heading and I hope it works out for you :-)
@TheDevKing4 жыл бұрын
Thanks man! I'm glad you like the new videos. I also seriously appreciate the feedback. I will take that into account. I'm also not a big fan of just scripting topic after scripting topic. I like these videos where the things I've taught people all kinda tie in together. I may be making a few more of those just for some complex features but I believe I'm pretty much done with that series as a whole. I've honestly taught pretty much about 80% of everything there is to know about roblox scripting, maybe more. If you have any ideas for advanced topics be sure to let me know. I'm always reading these comments :)
@vedbeastz43094 жыл бұрын
i cant see the timer! :C
@h00jid4 жыл бұрын
@@vedbeastz4309 I don't have a timer either.
@aaravcreationstv55372 жыл бұрын
@@TheDevKing help i dont see the timer
@ZaPlayType2 жыл бұрын
@@TheDevKing why wont it teleport me
@astbrast105811 ай бұрын
script yall: make 2 parts. one is gonna be called LobbySpawn and the other GameAreaSpawn script 1: local roundLength = 5 local intermsssionlength = 10 local InRound = game.ReplicatedStorage.InRound local Status = game.ReplicatedStorage.Status local Lobby = game.Workspace.LobbySpawn local GameAreaSpawn = game.Workspace.GameAreaSpawn InRound.Changed:Connect(function() if InRound.Value == true then for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = GameAreaSpawn.CFrame end else for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = Lobby.CFrame end end end) local function roundTimer() while wait() do for i = intermsssionlength, 1, -1 do InRound.Value = false wait(1) Status.Value = "Intermission: ".. i .." secounds left!" end for i = roundLength, 1, -1 do InRound.Value = true wait(1) Status.Value = "Game: ".. i .." secounds left!" end end end spawn(roundTimer) ----------------------------------------------------------------------------------------------- Now make create a screengui in startedGUI. In the StartedGUI make a TextLabel called TimerDisplay and a localscript Add this script to the local script. LocalScript: local Status = game.ReplicatedStorage.Status local TimerDisplay = script.Parent.TimerDisplay Status.Changed:Connect(function() TimerDisplay.Text = Status.Value end)
@IamCHONG123410 ай бұрын
ty bro
@bernie41304 жыл бұрын
I'd love to see more videos like these, 1 or 2 specific things that aren't massive projects, but something people can put into their games. Duckin' love it!
@itz_cheezy46224 жыл бұрын
sameeeeeeee
@simplyoliver71652 жыл бұрын
langague
@KaramBit101 Жыл бұрын
@@simplyoliver7165 he said ducking, not fucking
@simplyoliver7165 Жыл бұрын
@@KaramBit101 This comment is old wth
@KaramBit101 Жыл бұрын
@@simplyoliver7165 ik its old
@iluvtacos383 жыл бұрын
Me: tries to script Also me: fails aslo also me: searches turorials and copys the script and fail also also also me: *cries*
@User-ys2ip3 жыл бұрын
ahhahahahahahaha
@law_man173 жыл бұрын
finally someone who gets me
@TamilHitBox-v8o3 жыл бұрын
same, i failed the script i have no idea why
@gigglepixel3 жыл бұрын
worked for me: -- Round Variables local roundLength = 5 local intermissionLength = 10 local InRound = game.ReplicatedStorage.InRound local Status = game.ReplicatedStorage.Status local LobbySpawn = game.Workspace.LobbySpawn local GameAreaSpawn = game.Workspace.GameAreaSpawn InRound.Changed:Connect(function() if InRound.Value == true then for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = GameAreaSpawn.CFrame end else for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = LobbySpawn.CFrame end end end) local function roundTimer() while wait() do for i = intermissionLength, 1, -1 do InRound.Value = false wait(1) Status.Value = "Intermission: ".. i .." seconds left!" end for i = roundLength, 1, -1 do InRound.Value = true wait(1) Status.Value = "Game: ".. i .." seconds left!" end end end spawn(roundTimer)
@krebothegamer3 жыл бұрын
Thanks, this helped me a lot, after struggling endlessly trying to learn how to do it myself:-)
@johnloverman4 жыл бұрын
can you make a video on how to have a map voting system for the game? or maybe a video about how to change to different minigame types?
@astroepengee9204 жыл бұрын
It won't teleport me when the timer is over. Edit: I figured it out, you need to put InRound.Value = true/false and not just InRound = true/false.
3 жыл бұрын
Incase it doesnt work for you, here are a few errors that he fixed, make sure to fix them too Status Value must be a StringValue, not IntValue in the bottom of the first script, for roundLength, set the InRound status to true If the Label doesn't countdown, try to replace the localscript with this one! local ReplicatedStorage = game:GetService("ReplicatedStorage") local Status = ReplicatedStorage:WaitForChild('Status') local TimerDisplay = script.Parent.TimerDisplay TimerDisplay.Text = Status.Value Status.Changed:Connect(function() TimerDisplay.Text = Status.Value end)
@danielkennedy73774 жыл бұрын
Finally a tutorial video which isn't outdated! 😀
@first98073 жыл бұрын
if your timer display stopped working after you added the teleport script you most likely forgot to add another end statement for your second "for" loop
@blazeearl6203 жыл бұрын
local Status = game.ReplicatedStorage.Status local TimerDisplay = script.Parent.TimerDisplay Status.Changed:Connect(function() TimerDisplay.Text = Status.Value end) what do i do?
@Arccent82 жыл бұрын
a question : is this outdated bc it doesn't work (the spawn roundtimer has a red line) ?
@MrF692 Жыл бұрын
Nah Bro I use ChatGpt LOL AI Control Everything in 2023 2023 gang btw 👇
@theduke43963 жыл бұрын
how do i make a timer that ends when theres one player left doe
@meiskoi76533 жыл бұрын
if #game.Players:GetPlayers() < 2 then --what happens when theres 1 player left. end
@MiniSigma6992 жыл бұрын
Who is watching tapwater aka dev king in 2022
@smallhawk8662 жыл бұрын
Hey Dev King, could you show us how to do this but, when the Intermission timer is over, red team goes to the red spawn point and blue team goes to the blue spawn point, and when the round is over, both teams go back to the lobby, and the same things goes over and over.
@sk11lz782 жыл бұрын
Did u ever find a video or solution to this
@axolotlmaster91842 жыл бұрын
@@sk11lz78 probably
@clearlygoose2 жыл бұрын
@@sk11lz78 you could do an if statement like if player.Team = (teamname) then (script to teleport player to certain part) and then just have one part for each team named differently and then to have them all teleported back just do the regular teleport script or you could just copy and paste the if statement and use one part for both teams (not ideal if you want a short script but easier cuz u can just copy and paste the if statement
@JosephKarsten3334 жыл бұрын
It's really cool how often you upload dude!
@DirteeSock3 жыл бұрын
I followed all of the video and guess what?!?!?!?!? IT WORKS!!!!!!!!!!!!!!!!!! THANK YOU SO MUCH!!!!!!!!!!!! :D
@chillypenguin64504 жыл бұрын
Lmao He put Status to String Value a bit later in the video. Took me a while to figure it out.
@coolsholl4 жыл бұрын
Thanks, this made the script work for me after changing Status to a String Value.
@oogleschnork4 жыл бұрын
You're supposed to watch the whole video to understand it so no doubt your making mistakes.
@cupofbleach33523 жыл бұрын
@@oogleschnork just work as you watch
@tickyotacky4 жыл бұрын
how do i make it so that when you die you respawn into the game and not the lobby till the round ends
@alwanla56744 жыл бұрын
Team
@alwanla56744 жыл бұрын
AllowTeamChangeAtTouch
@BonnNova4 жыл бұрын
@@alwanla5674 How do I do that?
@alwanla56744 жыл бұрын
@@BonnNova on the property of spawnobjectthere is property that called change team on touch
@alwanla56744 жыл бұрын
@@BonnNova do you have discord i can send you a video how to do it here my discord id AlwanLA #4547
@Potato0nezzzz2 жыл бұрын
Finally, a tutorial that's not made by alvinblox
@HizuTheWizu4 жыл бұрын
it dont work when u hit play after finishing the local script it just says "Label"
@AndrewTheEpicYT4 жыл бұрын
Yeah
@AndrewTheEpicYT4 жыл бұрын
@Kayden Vrdoljak it still doesn't work
@gabster6474 жыл бұрын
@Andrew2all You have to change status from an Int Value to a String value and keep the script local
@XJNG64 жыл бұрын
@@gabster647 it doesnt work so how? i have change the int value to string value
@gabster6474 жыл бұрын
@@XJNG6 Did you change only the status value to an string value?
@SafoanPlayz4 жыл бұрын
Dev king uploads : me ohhh im interested Me : sees title Well that was unspected....
@miguelcanais4 жыл бұрын
was it?
@acorniscute9264 жыл бұрын
y r u
@RipePlastic Жыл бұрын
can you make up your mind on things its kinda annoying that you change your mind on things every 3 seconds so i gotta wait or change things to
@Andrei_IsSussy3 жыл бұрын
him: very very easy. also him: ima make this vid 16 mins long
@gengar-edits34573 жыл бұрын
Your impatient
@duckq99893 жыл бұрын
That’s short
@blutoh41812 жыл бұрын
I have a question on how to improve this a little bit. How can I make it so that if all players die in a round the round with automatically end and go to the intermission
@goku938608 ай бұрын
i have the same question
@Exceptional_Hacks6 ай бұрын
ok this guy is rlly good at coding ngl, but he needs to make up his mind lol "for now, I'll make them invisible - wait no i'll ma- no i'll ma- i'll make it visible."
@Blox_MC114 жыл бұрын
OMG THIS HELPED ALOT finally after all these years somebody with a good and helpful tutorial Even thought my Dad helped more
@depressedgoat3 жыл бұрын
Hello! My script's teleport did not work. Could you possibly send your script so I can see what I did wrong? Thanks!
@racerguy3 жыл бұрын
can you make it so the countdown will start only when theres 3 people in it?
@thejackalope6093 Жыл бұрын
What was the point of all those variables like intermission length when you could of just put 10 in the for loop?
@zippycat4 жыл бұрын
Thank you, But how to make so it requires 2 players minimum? And how to make so players teleport in diffrent spots?
@mrbrandon69313 жыл бұрын
i want to know how to tp in different spots too
@nitrozoronstudio20054 жыл бұрын
"very very easy" my life on Unity
@Basicman123Real9 ай бұрын
it didnt work for me, the text just said label still. i dont know why it does this to me lol
@zon69397 ай бұрын
i have the same problem. i tried to print the countdown to the output but no luck
@alpha6664 жыл бұрын
Is there a way I can make randomly picked spawn points for the in game section? (Basically when the timer reaches 0 and you are teleported to the game spawn, can I have multiple and it chooses one at random each time?)
@sophiewalsh58514 жыл бұрын
@grace me too
@astrowow93774 жыл бұрын
You can add a folder or something with parts and get all the parts with :GetChildren and then in the for i,v in pairs loop add another for i,v in pairs loop with this table and then teleport each player to each part...
@rolosencja50572 жыл бұрын
did you know how to do it yet? pls tell me
@soda55444 жыл бұрын
i did evrything right but wen i click play to test it still shows "Label" and i dosent even tp (edit) Nvm figured out instead of me putting LobbyArea i put LobbySpawn
@bananaampler11853 жыл бұрын
Bruh same
@allg8mer9433 жыл бұрын
TheDevKing :takes 15 minuites me: takes a whole day
@rotacos26684 жыл бұрын
workspace.Message.Text = "Thank you TheDevKing!"
@531hp64 жыл бұрын
workspace.Message.Text = "XD"
@531hp64 жыл бұрын
print("Thanks! Devking!")
@tristantheoofer24 жыл бұрын
game.Workspace.Message.Text = "thank you"
@darkie63833 жыл бұрын
for i, v in next(getgc()) do If type(v) == table then Print("Thanks DevKing!") debug.getconstant(v) end end
@computerprogrammer79423 жыл бұрын
@@darkie6383 ok
@tristancalkins99004 жыл бұрын
The timer is working but isn't teleporting me I have tried me writing the script, the ones in the comments but nothing is working pls someone help
@dr.94184 жыл бұрын
for me the teleport work but the timer not
@Kazwire4 жыл бұрын
Hi. I understand your problem. I made a video that is extremely easy to follow! all the scripts are in their own site so no copy paste from screen needed! You can do it in under 5 mins. Hope this helps! kzbin.info/www/bejne/aJ2kqJxnZ9Cto8k
@george56773 жыл бұрын
I decided that I want to learn to code in Roblox. And I learned so much today, all because of you. Thanks for the great tutorials
@VortexSwayzee4 жыл бұрын
Are you able to do this with a Monster/Enemy instead of changing to the map?
@xboydubose72543 жыл бұрын
Yea just follow the steps for teleporting players but instead if players put the name of the monster and make sure you clone it or else it could run out
@joshftc73924 жыл бұрын
Could you use a module script to contain all the bool/int values? if you're making a bigger game beyond rounds, I just feel like it would be a lot easier
@Grytix55672 жыл бұрын
1:45 because the movement for this part was locked because it was a baseplate before
@ranukanojia16814 жыл бұрын
my timerdisplay only shows label even if i have done everythhing as shown in the video plz help
@khanteainsi85354 жыл бұрын
omg same if u figured it out pls helppp
@haileylyricz3 жыл бұрын
Yeah same and I spent like a half an hour on this-
@masterof_burritos49593 жыл бұрын
Show me your script and then I can fix it.
@TheDiamondFish4 жыл бұрын
How do I randomize multiple team spawns in that script as I need 2 players to be on the opposite team of each other to make it fair for my game. I also need help with teleporting a player back to the lobby when they die. Plus I need help with ending the round when a player finds something and picks it up. Please give me the same script but with those details. Thanks.
@TheDiamondFish4 жыл бұрын
Answer please and don’t like.
@hakeemadny874 жыл бұрын
i need that answer too i want make my game has a lot mode capture the flag, team battle,team race and lot more but all team but i cant do it cuz i have 2 spawn
@hakeemadny874 жыл бұрын
we need help
@groberkriegproductions3 жыл бұрын
@@hakeemadny87 me to
@juliagleason12023 ай бұрын
To anyone saying its not working: Always learn the basics of coding so you can debug. Lua changes over time. It works fine for me after I debugged it.
@jonnygg24874 жыл бұрын
The thing didn’t teleport me anywhere, it was just a moving text label ok that works but when it reached 0 of intermission nothing happened I just stayed put :( can anyone help?
@ivelur91284 жыл бұрын
Me too
@jonnygg24874 жыл бұрын
@@poldron7033 hmm?
@ivelur91284 жыл бұрын
@@poldron7033 i did
@ivelur91284 жыл бұрын
@@poldron7033 i did but it didnt work
@evergladelmao4 жыл бұрын
8:31 SAVING WHERE I LEFT OFF
@tusheyy60334 жыл бұрын
no
@jionuslucas25793 жыл бұрын
why the timer show "label"? am i do wrong? i checked back ill do the right steps
@alwaystactical92503 жыл бұрын
doesnt work it says only label /:
@HeroEmu_Gaming4 ай бұрын
figured it out?
@xboydubose72543 жыл бұрын
How do you give a tool for a certain minigame and take it away in the intermission? Also how do you make multiple minigames?
@jedinoah53707 ай бұрын
In the in round function, if it's true you can make the player get the tool and if it's false, check the players inventory for the tool and delete it.
@SomeAverageYoutuber Жыл бұрын
I’m making a back to the future game and I wanna make it so the delorean hits 88mph then 6 seconds later, how would I script it so that after hitting 88mph 6 seconds later it would teleport the player to another game and the car would disappear
@The_Patriot4734 жыл бұрын
when i get the label part how do you get the label to show up cause this video is a joke to me
@learninglua75144 жыл бұрын
Ugh people hating on good videos. Maybe try making a screen gui then put text label?
@learninglua75144 жыл бұрын
Or is that too hard
@jojoash13 жыл бұрын
@@learninglua7514 yes it is
@yellowdwarf88043 жыл бұрын
i dont know but this was just so hard to follow as you kept on changimg the things i just kept getting confused
@Nwilson27273 жыл бұрын
Ya I couldn’t do anything
@bu_rn83173 жыл бұрын
Same
@el_stew3 жыл бұрын
me too
@SoakedGamer Жыл бұрын
Finally a tutorial that’s not 5 years old from Alvin Blox
@adriansstopmotionproductio72034 жыл бұрын
How do we add a map selection to this pls I need to know
@jayyyyyyy55314 жыл бұрын
Dont think u can but i just made mine a random map generator so it picks the map by it self
@LUKAHDMUSIC3 жыл бұрын
@@jayyyyyyy5531 how?
@xboydubose72543 жыл бұрын
@@LUKAHDMUSIC something with math.random I will leave the code if I figure it out
@flyingugames45483 жыл бұрын
First script: local roundlength = 5 local intermissionlength = 10 local InRound = game.ReplicatedStorage.InRound local Status = game.ReplicatedStorage.Status local LobbySpawn = game.Workspace.LobbySpawn local GameAreaSpawn = game.Workspace.GameAreaSpawn local function roundTimer() while wait() do for i = intermissionlength, 1, -1 do InRound.Value = false wait(1) Status.Value = "Intermission: ".. i .." seconds left!" end for i = roundlength, 1, -1 do InRound.Value = false wait(1) Status.Value = "Game: ".. i .." seconds left!" end end end spawn(roundTimer)
@everythingtoca89003 жыл бұрын
Thank you
@Tyrantu1a_wasTaken Жыл бұрын
The teleporting script always teleports me to the same spawn, what do I do?
@qj47794 жыл бұрын
this was made on my birthday..... (no i didnt have a birthday party) :(
@mionikat4 жыл бұрын
k
@symeck84734 жыл бұрын
Haha
@CoolShorts69694 жыл бұрын
Your 0
@qj47792 жыл бұрын
Bro that was my IQ.
@user-autumnpaws2 жыл бұрын
Hey, this has been helped me a lot when I was making my game thank you so much, but I have been experimenting for a while to figure out how to make multiple teleports so that when the round starts, not everyone teleports in the same spot, but all teleport in their own quadrants. Do you have any tips I can use? I would really appreciate it.
@cffcff72982 жыл бұрын
Cff Cff il y a 1 seconde bro just create a folder and insert the parts and that s the code local roundLength = 10 local intermissionLength = 10 local InRound = game.ReplicatedStorage.InRound local Status = game.ReplicatedStorage.Status local LobbySpawn = game.Workspace.LobbySpawn local GameAreaSpawn = game.Workspace.GameAreaSpawn local player = game.Players.LocalPlayer InRound.Changed:Connect(function() wait(1) if InRound.Value == true then for _, player in pairs(game.Players:GetChildren()) do local rn = math.random(1,15) if rn == 1 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 2 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 3 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 4 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 5 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 6 then player.Character.HumanoidRootPartCFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 7 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 8 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 9 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 10 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 11 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 12 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 13 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 14 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false elseif rn == 15 then player.Character.HumanoidRootPart.CFrame = CFrame.new(insert the location of the part) print(rn) script.Parent.Visible = false end end else for _, player in pairs(game.Players:GetChildren()) do local char = player.Character char.HumanoidRootPart.CFrame = LobbySpawn.CFrame end end end) local function roundTimer() while wait() do for i = intermissionLength, 1, -1 do InRound.Value = false wait(1) Status.Value = "Intermission: ".. i .." seconds left!" end for i = roundLength, 1, -1 do InRound.Value = true wait(1) Status.Value = "Game: ".. i .." seconds left!" end end end spawn (roundTimer) local Status = game.ReplicatedStorage.Status local TimerDisplay = script.Parent.TimerDisplay Status.Changed:Connect(function() TimerDisplay.Text = Status.Value end) i hope that this tip helps you
@julesnmaisies_beads2 жыл бұрын
i know this was a month ago, but you can look at the random function tutorial in the basic scripting tutorial and add that to the teleport script.
@NatureEditzzz Жыл бұрын
THANK YOU SO MUCH!!! i made a game where there is a block that moves and you try not to get touched by it while you are still doing parkour, - - please no one steal my idea. Thank you
@ne0n8634 жыл бұрын
and can you copy paste your scripts on the desc. cuz I think ive done some stuff incorrent but I cant see them
@Kazwire4 жыл бұрын
I made a tutorial about this with a website dedicated to the scripts and you can do it in under 5 minutes hope it helps kzbin.info/www/bejne/aJ2kqJxnZ9Cto8k
@doglas26533 жыл бұрын
@@Kazwire if this is going to work ur a life saver cuz i got 4 days to make a game that needs this!
@doglas26533 жыл бұрын
@@Kazwire IT WORKED TYSM :D!!!!!!!
@Kazwire3 жыл бұрын
@@doglas2653 np glad I could help
@unfortunatelydeprived35324 жыл бұрын
i want to know how in the games it says 10 players needed to start game. I want to know how to do that.
@prollycurryeaterbad44774 жыл бұрын
Define the game players and stuffs and then just do like if number of player
@noideafornow.3 жыл бұрын
Just put the local script in the text label and change the script for that : while true do script.Parent.Text = game.ReplicatedStorage.Status.Value wait(0.01) end
@oliviagroenier4 жыл бұрын
my gui is stuck on “label.” no issues with TimerDisplay, the code is exactly the same. turned on API and all that, can someone please help?
@riotaken4 жыл бұрын
@wgse ck at the InRound section try putting inRound instead and look at the end) because it could just be a simple issue like that
@jacobwalker22504 жыл бұрын
make sure that all the lines match up and there are an equal number of ends as his, hope this helps
@lorainex39324 жыл бұрын
Make sure all your parts like the lobby and the lobbyspawn are named right-
@meiskoi76534 жыл бұрын
open out put to check for errors
@CoolShorts69694 жыл бұрын
Did you add the 2 values to ReplicatedStorage??
@KILLSAS4 жыл бұрын
0:21 :DDDDDDDDD i died i think xD
@ThePerrster3 жыл бұрын
i like how at 3:25 he makes intermission time longer than the game time xD
@briguy67874 жыл бұрын
How would I do it so instead of you spawning on a part, how do you spawn In different teams
@acemo14 жыл бұрын
i havent watched it yet but you should watch his teams video maybe he will cover it there
@dcohen15804 жыл бұрын
@@acemo1 I dont think he did. I also have this question.
@crispycroissantgamer3464 жыл бұрын
I also have this question
@crispyycoconut3 жыл бұрын
Maybe make a pastebin? I can’t get this to work.
@ClassyGamesTM3 жыл бұрын
It worked for me, i just paused each line, then copied it, then checked it and carried on (In full screen for the video)
@dasteee3 жыл бұрын
GUYS! IF IT DIDNT WORK, The "Status" Value needs to be a StringValue, not an IntValue!!
@rachelhiguchi24413 жыл бұрын
I spent all this time, and it did not work-
@mesterblox63374 жыл бұрын
can you tell us how to make an auto generated obby please ? I tried everything and nothing worked :( @TheDevKing
@MrRenyox3 жыл бұрын
How do we teleport everyone except one person who is randomly chosen And how to make it do the same but when people vote for a map it teleports them except the person who was randomly chosen
@kduck7894 жыл бұрын
bruh you changed the entire script in the end now i have to restart! Dislike. I spent an hour :(
@Swan_Land4 жыл бұрын
if you give up after an hour, then you should be reminded why you even started.
@milkyway-uq1wg4 жыл бұрын
That means your trash at scripting lol
@HeyImCode3 жыл бұрын
For some reason, the timer doesn't work. It just says "Label" on the screen instead of the timer. help?
@yourmom36983 жыл бұрын
same :/ did it end up working for u??
@HeyImCode3 жыл бұрын
@@yourmom3698 haven’t tried. Thinking about doing it again
@Shar_s3 жыл бұрын
local Status = game.ReplicatedStorage.Status local TimerDisplay = script.Parent.TimerDisplay Status.Changed:Connect(function() TimerDisplay.Text = Status.Value end) is not working for me. For me I think I have this bug where whenever it says :Connect it just doesnt work
@onlydjspike83092 жыл бұрын
finally a tutorial that dosent have a 8 year old mumbling through the whole thing
@LoopyLele2 жыл бұрын
when you watch this on HD quality its so much better aaaaa
@Starculation10 ай бұрын
Cool video! It really worked! But I have one problem. Say if you want to spawn inside some sort of interior rather than being outside on another baseplate, how would I make it so it teleports me like that?
@LoanShark_totallyreal8 ай бұрын
Move the round spawner?
@alidiop83002 жыл бұрын
Tip: you can anchor the blue brick to stop it from moving.
@cgyambo_211 Жыл бұрын
TYSMMM!!!!!!!!!!!!
@4ken9383 жыл бұрын
yo why this doesnt work? i even put the model the same name as. the script