its not that sadly, it just doesnt work all together, when i test it in studio, it doesn't show anything or work, ill show screen shots if you add me on discord @: iiFxrious#5185
Wow, great video! This actually works compared to other tutorials showing me how to make a minigame. Just saying, IM YOUR 300TH SUBSCRIBER XD Keep up with the videos please!
Great to hear you're that my 300th subscriber! I really appreciate all of you being here, you're pretty lucky you haven't had to wait like the rest. But be patient, I plan to release a video by Christmas!
THIS IS AN OUTRAGE!!!!!!!!!! IT'S SUCH A GOOD TUTORIAL!!!! AND SO ARE THE OTHERS!!!!!! HE NEEDS MORE SUBS!!!! I'm not kidding , he explains and everything so you can understand everything better!
Hey i need some help what does this mean 15:32:43.296 - ServerScriptService.Script:1: Incomplete statement: expected assignment or a function call when it shows up in output (im fairly new to coding) oh and btw great videos?
Let me make this clear. This guy is so helpful! This worked first time. I've been looking for a video on this all dyay, and finally found this! I also like how he ACTUALLY RESPONDS to people's questions! I'm subscribing!
I did it right but this came up 18:44:12.823 - ServerScriptService.Script:45: bad argument #1 to '?' (CFrame expected, got table) 18:44:12.823 - Stack Begin 18:44:12.824 - Script 'ServerScriptService.Script', Line 45 18:44:12.824 - Stack End do u know how to fix it?
I did everything but when i tested it, it didnt teleport me to the teleports for i,v in pairs (Players) do if v then local Teleport = Clone.Teleports:GetChildren() [math.random(1, #Clone.Teleports:GetChildren())] v.Character:SetPrimaryPartCFrame()(Teleport.CFrame * CFrame.new(0, 5,0)) Teleport:Destroy()
20:56:55.485 - Plugin_142731176._Char:365: attempt to index global 'character' (a nil value) 20:56:55.488 - Stack Begin 20:56:55.489 - Script 'Plugin_142731176._Char', Line 365 - field setupPlayer 20:56:55.490 - Script 'Plugin_142731176._Char', Line 514 20:56:55.492 - Stack End Cutscene Editor Loaded 20:56:55.485 - Plugin_142731176._Char:365: attempt to index global 'character' (a nil value) 20:56:55.488 - Stack Begin 20:56:55.489 - Script 'Plugin_142731176._Char', Line 365 - field setupPlayer 20:56:55.490 - Script 'Plugin_142731176._Char', Line 514 20:56:55.492 - Stack End Cutscene Editor Loaded that's what it says when I click play! :(
But what if you want it to have groups? I'm making a game where 4 players will be put into a random team and another 4 players will be put into a random team.
dude, can you help me i have problem with the CFrame at the first time : Teleport.CFrame | and its not colored only the second one is colored, please help me
Script: NumPlayers = 1 Minigames = game.ServerStorage.Minigames:GetChildren() function Msg(text) print(text) end function PlayerAdded(Player) local Bool = Instance.new("BoolValue", Player) Bool.Name = "AFK" local leaderstats = Instance.new("IntValue", Player) leaderstats.Name = "leaderstats" local Points = Instance.new("IntValue", leaderstats) Points.Name = "Points" end function GetPlayers() local Players = {} for i,v in pairs(game.Players:GetChildren()) do if v:FindFirstChild("AFK") and not v.AFK.Value then table.insert(Players, v) end end return Players end game.Players.PlayerAdded:Connect(PlayerAdded) while true do local Players = GetPlayers() if #Players >= NumPlayers then Msg ("There are enough players to start the games!") wait(3) Msg("Choosing a minigame to play...") local Chosen = Minigames[math.random(1, #Minigames)] local Clone = Chosen:Clone() wait(2) Msg("Minigame chosen! you will be playing the " .. Chosen.Name .. " minigame.") Clone.Parent = workspace.CurrentMinigame Msg("Teleporting players to the minigame.") for i,v in pairs(Players) do if v then local Teleport = Clone.Teleports:GetChildren() [math.random(1, #Clone.Teleports:GetChildren())] v.Character:SetPrimaryPartCFrame(Teleport.CFrame * CFrame.new(0, 5,0)) Teleport:Destroy() end end else Msg ("There are not enough players to start the games!") end wait() end
HELP! HumanoidRootPart is not a valid member of Player < i had to update v.Character:SetPrimaryCFrame(Teleport.CFrame + CFrame.new(0, 5,0)) to v.HumanoidRootPart:SetPrimaryPartCFrame(Teleport.CFrame + CFrame.new(0, 5,0))
11:44:53.934 - Playeradded is not a valid member of Players I've been getting this one a lot, I copied everything from row 28, but I still keep on getting this error, please fix it!
I like the layout he has though. By actually practicing the writing of the script- even if you are just copying his work, he also happens to explain most of, if not everything- What it all does. So it's actually good study material as well if you plan to learn scripting in Roblox.
Hello! I am not sure if you still look at the comments for this video, but, you really helped a lot! Thanks! I have an error though : 13:19:54.459 - ServerScriptService.Script:32: attempt to call local 'Players' (a table value) Please help! EDIT: I missed a key thing! I have it under control now! :)
Hello! I have error: 20:14:20.935 - attempt to call a nil value 20:14:20.965 - FindFirtsChildren is not a valid member of Player Can you help me pls? UPD: I fixed the error.
mine does this when i reach 8:12 in the video... Minimum players has been reached! Choosing a game... 16:49:48.231 - game is not a valid member of Model
Yo can you help me please? It's very simple but I have no clue how to fix it .. Model:SetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this. EDIT : I switched r15 to r6 , now the head is the PrimaryPart, but the error message still happens
PLSSSS HELP ME i did the first script as you said in the vid, but when i start the game it says that there are enough players to start the game even if its local NumPlayers = 2 local NumPlayers = 2 function Msg (text) print (text) end while true do if game.Players.NumPlayers >- NumPlayers then Msg("There are enough players, to start the game!") else Msg("There are not enough players, to start the game!") end wait() end
It's supposed to be an "=" not "-", what's happening is it's checking if there are more than -2 players. This is how your line should look: if game.Players.NumPlayers >= NumPlayers then
Hi there. i tried your script. it worked but after you added the teleportation stuff, it didnt work and i got this error : 10:12:56.202 - ServerScriptService.Script:27: attempt to call local 'Players' (a table value) PLS HELP :(
13:28:00.505 - ServerScriptStorage.Script:16: ')' expected near '.' 13:28:00.728 - Missing ChatLocalization. Used default for GameChat_ChatMain_ChatBarTextTouch this what output said when i clicked play.
11:53:26.352 - Model:SetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this. what this mean
That means whatever model you're trying to teleport is missing a primary part. You can fix that by either wrapping that line in an if statement like: "if Model.PrimaryPart ~= nil then" Or by waiting for the primary part if you know it's name with: "Model:WaitForChild("Head")" I recommend the first option though.
plz help i have two issues one of them are 12:49:55.575 - ContentProvider:PreloadAsync() failed for rbxassetid://99666917 the other one is 12:50:00.711 - Spawns is not a valid member of Model if i dont get my answer soon i will go learn on a other channel /:
help me this is happening to me 12:25:34.090 - Numplayers is not a valid member of Players and this too 12:25:49.586 - HTTP 0 (CURL error (curl_easy_perform): Timeout was reached (28)) pls help
Worked. 1st attempt. Thank you. Took me around 30-60 minutes.
That's great to hear, I am proud of you!
hey uh would you mabye help me out and give me a copy of the game if i cant make it by myself? ill tell you after i tried and went through all videos.
didnt exactly work for me once i got to adding the afk part and points, the whole thing stopped working...
Open up the output and tell me what it says in red.
its not that sadly, it just doesnt work all together, when i test it in studio, it doesn't show anything or work, ill show screen shots if you add me on discord @: iiFxrious#5185
im glad your a tutorial youtuber that actually replies to people who need help unlike other tutorial youtubers :D
Little tip: make the minigames a folder, not a model
Wow, great video! This actually works compared to other tutorials showing me how to make a minigame. Just saying, IM YOUR 300TH SUBSCRIBER XD
Keep up with the videos please!
Great to hear you're that my 300th subscriber! I really appreciate all of you being here, you're pretty lucky you haven't had to wait like the rest. But be patient, I plan to release a video by Christmas!
THIS IS AN OUTRAGE!!!!!!!!!! IT'S SUCH A GOOD TUTORIAL!!!! AND SO ARE THE OTHERS!!!!!! HE NEEDS MORE SUBS!!!! I'm not kidding
, he explains and everything so you can understand everything better!
over enthusiastic much?
i mean its all in caps
i do agree with this its just a little extreme with caps and i dont mean to be rude its just making me chuckle
@@drultaria3875 lol, i forgot i commented this but yeah, its a little extreme lol. they are good tutorials though thats for sure
k i will sub
Hey i need some help what does this mean 15:32:43.296 - ServerScriptService.Script:1: Incomplete statement: expected assignment or a function call when it shows up in output (im fairly new to coding) oh and btw great videos?
It works even in modern roblox! Thank you.
0:00 never ending screen of death
Great Video! my friend loves epic minigames, so im making a similair game.
Thank you @TheIceZombieSlayer Videos! Your script helped me a lot! I made a few errors but I fixed them. Also I'm subscribing and liking your Video!
Thanks, good luck!
Let me make this clear. This guy is so helpful! This worked first time. I've been looking for a video on this all dyay, and finally found this! I also like how he ACTUALLY RESPONDS to people's questions! I'm subscribing!
Hey, sorry about the late reply, I've been too busy to check. I greatly appreciate the positive feedback!
do we have to put the part in minigame1 because it turns invisible when I put it
It keeps teleporting me more then once. For example when I spawn, I keep changing spawns. Any help please?
I did it right but this came up
18:44:12.823 - ServerScriptService.Script:45: bad argument #1 to '?' (CFrame expected, got table)
18:44:12.823 - Stack Begin
18:44:12.824 - Script 'ServerScriptService.Script', Line 45
18:44:12.824 - Stack End
do u know how to fix it?
I did everything but when i tested it, it didnt teleport me to the teleports
for i,v in pairs (Players) do
if v then
local Teleport = Clone.Teleports:GetChildren() [math.random(1, #Clone.Teleports:GetChildren())]
v.Character:SetPrimaryPartCFrame()(Teleport.CFrame * CFrame.new(0, 5,0))
Teleport:Destroy()
Great Video! I subscribed
Thank You so much. You just helped me at first attempt i subscribe :) ITS WORKING!
This is a very good tutorial. This is my first or second game ive ever made.
I was finding you and it work first try!
🔥Thank you so much for EP1 So I will make this EP2 for later 🔥
Good tutorial, pls continue the series. :D
At line 44 v has a red underline because at math you started one bracket but never finished that bracket pls help
Thank you so much! It worked! I definitely learned something.
Hi, Can you help me? The Points Just doesn't appears on the leaderboard, What do i do?
I keep getting this error "21:41:43.555 - ServerScriptService.Script:50: attempt to index global 'Telports' (a nil value)"
how do i change the surface to unjoinable please tell me
20:56:55.485 - Plugin_142731176._Char:365: attempt to index global 'character' (a nil value)
20:56:55.488 - Stack Begin
20:56:55.489 - Script 'Plugin_142731176._Char', Line 365 - field setupPlayer
20:56:55.490 - Script 'Plugin_142731176._Char', Line 514
20:56:55.492 - Stack End
Cutscene Editor Loaded
20:56:55.485 - Plugin_142731176._Char:365: attempt to index global 'character' (a nil value)
20:56:55.488 - Stack Begin
20:56:55.489 - Script 'Plugin_142731176._Char', Line 365 - field setupPlayer
20:56:55.490 - Script 'Plugin_142731176._Char', Line 514
20:56:55.492 - Stack End
Cutscene Editor Loaded
that's what it says when I click play! :(
Hooligan2121 YT looks like a plugin you have installed is causing the error, everything should still work
I came from kysuto he said you have a clear voice and you will teach it really good
I hope I do. If you have any questions, leave a comment. I will either reply or make a whole new video depending on how important your question is.
But what if you want it to have groups? I'm making a game where 4 players will be put into a random team and another 4 players will be put into a random team.
I'll be showing you how to do that in the next video, I just don't have enough time to record and edit videos right now.
omg dude my scripts are like going good then bad is there any way that you can make this game unopcylocked/or a kit
How easy would it be to create new minigames and add them on?
I don't really want to watch the vid before I know this
Don't worry. This guy makes it really easy. Unless you do the wrong thing, it should be all good!
I need some help, Can you please help me how to make minigames?
A problem....The points thing inn the leaderboard does not come for me...it gives me this code...Unable to create an Instance of type "BoolVaue"
Love Ur vids, thanks
This really worked, But the problem is, it spams the There are enough players to start the games and it spams the other, Help please?
Thx so much you helped me alot
😁😁😁😁😁😁😁
Hay can you answer my question What does FakeHead means
dude, can you help me i have problem with the CFrame at the first time : Teleport.CFrame | and its not colored only the second one is colored, please help me
I did everything that you did and it still did not work does anyone know how to fix it?
idk maybe bc its dis tutorial is too old
Plss can you reply to me all the scripts that the game needed
If you did your the best developer youtuber...
hi can i get a help my points doesn't show idk why can you help mr or can you copy the script and send it so i can just copy it please and thank you
Hey does the script mess up if It is only one player?
It shouldn't, no. What's going wrong?
it says GetChilderen is not a valid member of Model. please help
Script:
NumPlayers = 1
Minigames = game.ServerStorage.Minigames:GetChildren()
function Msg(text)
print(text)
end
function PlayerAdded(Player)
local Bool = Instance.new("BoolValue", Player)
Bool.Name = "AFK"
local leaderstats = Instance.new("IntValue", Player)
leaderstats.Name = "leaderstats"
local Points = Instance.new("IntValue", leaderstats)
Points.Name = "Points"
end
function GetPlayers()
local Players = {}
for i,v in pairs(game.Players:GetChildren()) do
if v:FindFirstChild("AFK") and not v.AFK.Value then
table.insert(Players, v)
end
end
return Players
end
game.Players.PlayerAdded:Connect(PlayerAdded)
while true do
local Players = GetPlayers()
if #Players >= NumPlayers then
Msg ("There are enough players to start the games!")
wait(3)
Msg("Choosing a minigame to play...")
local Chosen = Minigames[math.random(1, #Minigames)]
local Clone = Chosen:Clone()
wait(2)
Msg("Minigame chosen! you will be playing the " .. Chosen.Name .. " minigame.")
Clone.Parent = workspace.CurrentMinigame
Msg("Teleporting players to the minigame.")
for i,v in pairs(Players) do
if v then
local Teleport = Clone.Teleports:GetChildren() [math.random(1, #Clone.Teleports:GetChildren())]
v.Character:SetPrimaryPartCFrame(Teleport.CFrame * CFrame.new(0, 5,0))
Teleport:Destroy()
end
end
else
Msg ("There are not enough players to start the games!")
end
wait()
end
TYSM
ACellist script is wrong at line 22 and 31
I did the same thing as u but when I added th teleport part it stoped working
Tank you so much it worked :D
HELP! HumanoidRootPart is not a valid member of Player < i had to update v.Character:SetPrimaryCFrame(Teleport.CFrame + CFrame.new(0, 5,0)) to v.HumanoidRootPart:SetPrimaryPartCFrame(Teleport.CFrame + CFrame.new(0, 5,0))
Why did you need to update it? That's what caused the error.
It says for me that ServerScriptService.Script:37: bad argument #2 to ‘random’ (interval is empty), I have placed Minigame1 in Minigames???
copy and paste your line 37
My doesn't it, it doesn't work for me
Im having this error, ServerScriptService.Script:36: bad argument #2 (interval is empty)
help I have a error and it says ServerScriptService.Script:32: attempt to get length of local 'Players' (a nil value)
Typical Gamer change the P into a lowercase p
11:44:53.934 - Playeradded is not a valid member of Players I've been getting this one a lot, I copied everything from row 28, but I still keep on getting this error, please fix it!
hey! i will give you a shout out for your hard work! stay put while i make the video :D
Teleport.CFrame * CFrame.new(0,5,0) Don't work for me. Please help!
Very good Thanks For helping me :)
Did i do something wrong cause it shows me 15:09:00.472 - ServerScriptService.Script:15: ')' expected (to close '(' at line 12) near 'local'
i'm gonna start learning from you. Hope it's gonna work than my previous project
Can you make a game that is uncopylocked so people can take the game and edit it?
I like the layout he has though. By actually practicing the writing of the script- even if you are just copying his work, he also happens to explain most of, if not everything- What it all does. So it's actually good study material as well if you plan to learn scripting in Roblox.
@@frontierwingsix Thanks for explaining this so well!
help I keep on getting "stack begin, script 'workspace.leaderboard.', line 11, stack end, nothing works. :(
The Points doesn't apears on the leaderbord what do i do?
Hello! I am not sure if you still look at the comments for this video, but, you really helped a lot! Thanks!
I have an error though : 13:19:54.459 - ServerScriptService.Script:32: attempt to call local 'Players' (a table value)
Please help!
EDIT: I missed a key thing! I have it under control now! :)
do u think u could tell me how u fixed it? im having the same problem :(
Hello! I have error:
20:14:20.935 - attempt to call a nil value
20:14:20.965 - FindFirtsChildren is not a valid member of Player
Can you help me pls?
UPD: I fixed the error.
can you help me? at 19:45 while i was scripting, my Points Just Does Not Appear On My Leaderboard! What do i do? 7th time Copying this again :(
Does the output say anything in red?
mine does this when i reach 8:12 in the video...
Minimum players has been reached!
Choosing a game...
16:49:48.231 - game is not a valid member of Model
Yo can you help me please? It's very simple but I have no clue how to fix it ..
Model:SetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this.
EDIT : I switched r15 to r6 , now the head is the PrimaryPart, but the error message still happens
Oh yeah and when I'm ''teleporting to the minigame'', I just fall in nothing because the minigame doenst spawn at all
Mano325 ANCHOR it
My problem is 22:09:22.074 - Teleports is not a valid member of Model on line 46
19:55:01.566 - ServerScriptService.Script:45: Expected 'end' (to close 'function' at line 18), got
i fixed
@@Timofey-hd5um how did you fix?
@@Guestding just add end after function end
Timofey2622 aight
Which function?
in local chosen = minigame [math.Random(1,#minigame)]
it says 1 isnt a valid number
fixed it t was because random wasnt working right
PLSSSS HELP ME i did the first script as you said in the vid, but when i start the game it says that there are enough players to start the game even if its local NumPlayers = 2
local NumPlayers = 2
function Msg (text)
print (text)
end
while true do
if game.Players.NumPlayers >- NumPlayers then
Msg("There are enough players, to start the game!")
else
Msg("There are not enough players, to start the game!")
end
wait()
end
It's supposed to be an "=" not "-", what's happening is it's checking if there are more than -2 players.
This is how your line should look:
if game.Players.NumPlayers >= NumPlayers then
TheIceZombieSlayer Videos Ooohh my bad! I'm so sorry that I bothered you,Thanks!
No problem, I'm here to help!
Watching this in 2020.
Also when I drag a part to mini game 1 2 or so on it becomes invisible and I can't move it...
LukeDaLamb but when I put it under minigame 1 and goes invisible.
LukeDaLamb ok thanks
I have 15 minigames. ;3;
Hi there. i tried your script. it worked but after you added the teleportation stuff, it didnt work and i got this error :
10:12:56.202 - ServerScriptService.Script:27: attempt to call local 'Players' (a table value)
PLS HELP :(
13:28:00.505 - ServerScriptStorage.Script:16: ')' expected near '.'
13:28:00.728 - Missing ChatLocalization. Used default for GameChat_ChatMain_ChatBarTextTouch
this what output said when i clicked play.
Unjoinable is not a thing.. so what do I do..
Could you make the place you published uncopylocked??
LOVE YOU!
Why is 04:23:27.741 - ServerScriptService.Script:5: function arguments expected near 'print' ?
who cares
people who want to make things
old tutorial but omgg the discord notifs lol 😭😭
My points won’t work I did the stuff you did and it won’t load win I click play
this isnt working for me and ive spent like 2 hours on it im about to cry
you da best dude
already done 6 mins and I've taken an Hour!!!!!
11:53:26.352 - Model:SetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this. what this mean
That means whatever model you're trying to teleport is missing a primary part. You can fix that by either wrapping that line in an if statement like:
"if Model.PrimaryPart ~= nil then"
Or by waiting for the primary part if you know it's name with:
"Model:WaitForChild("Head")"
I recommend the first option though.
2:30 thats alot of discord messages
plz help i have two issues one of them are 12:49:55.575 - ContentProvider:PreloadAsync() failed for rbxassetid://99666917 the other one is 12:50:00.711 - Spawns is not a valid member of Model if i dont get my answer soon i will go learn on a other channel /:
Also, does it work with filtering enabled?
OMG YES IT DOES WORK WITH FILERING ENABLED!
Yes, this does work with FilteringEnabled. I forgot to check the property in this video, but I'll be doing that in the next video.
TheIceZombieSlayer Videos yay :D
How do I fix ServerScriptService.Script:24 ‘)’ expected near “a”
Problem solved I was an idiot and didn’t put quotations
@@connordickson265 lol
i get 15:13:54.674 - Infinite yield possible on 'Workspace.Particles All.PARTICLES!.Model.Mage Throwing MadnessLightning Red:WaitForChild("Handle")'
on line 13 what is the symbol before in [math.random (1, ?Minigames)]
Nvm i think its a # tell me if im wrong
Nvm again im stumped i give up
It’s a #
A Hashtag like #
How do i make minigames?
oh and can we do any game
yo i subed on 2 acc's!
can u put it in desc ?the scirpt
it told me that local clon is invalid
where do you get this Map
Irfan Kasi by using parts
I have core 2 du and 1gb ram and i can not install
help me this is happening to me 12:25:34.090 - Numplayers is not a valid member of Players and this too 12:25:49.586 - HTTP 0 (CURL error (curl_easy_perform): Timeout was reached (28)) pls help
also my game doesnt have the points
i give up making games
i keep getting this error 10:17:15.748 - ServerScriptService.Script:40: attempt to index global 'Clone' (a nil value)
Can you send me line 40 of your scipt in ServerScriptService?
there is no 10:17:15.748 around here
Ok
The 'CHOSEN bit don't work.
how to teleport players?
Good tutorial... BUT YOUR VOICE IS DEEP!