Im getting the error: Attempted to call require with invalid argument(s). It points to the line - require(chosenGameModule).RunGame(). But its the same thing in the tutorial and it worked so i dont know whats wrong.
So the script is not working becase 'require()' needs a module script, which is what chosenGameModule should be. Make sure that chosenGameModule is the module script by doing some print statements or something
just finished adding the lava rising minigame, but when testing the text doesn't show up or do anything, I looked in the output and it said "Infinite yield possible on 'ServerStorage:WaitForChild("MiniGames")'" Anybody know how to help?
I have some ideas for the game. first add a shop where u get items like one that u speed and another gives u moon gravity ad the last gives u both, secondly music for the lobby and minigames and lasty a mini game where a person has a bomb with 20 secs and u have to past it to another person, once it explodes another player gets a bomb
can anyone help me out? when i try and test the game, it says that AFK is not a valid property name. i tried changing it to Afk and it said the same thing, did i miss a line of code on accidient? and is anyone having this issue?
(I find problem and fix) me not work in: _G.TeleportPlayers(newGame.SpawnPoint.CFrame) me show error: ServerStorage.MiniGames.Lava RIsing:35: attempt to call a nil value
You might have not added the teleport players function into _G so when your script tries to use the function it can't find it (attempt to call a nil value)
This means that your ModuleScript returned 2 or more values, in other words your ModuleScript attempted to return a tuple, ModuleScripts can only return a single value, typically a table value containing all of the features of the ModuleScript itself.
@@fuzedits5767 One of the reasons can be a typo. Make sure all words are spelt correctly and the exact same. Example: local Hi = print("Hi") hi In the example you made a variable and called it "Hi" but when you executed the variable you spelt it "hi" and not "Hi" which makes more than one value which causes the error. also make sure at the top line of your module script it says "local (whatever you want your variable to be called) =" and then a value. If you want to make the value to be worth nil simply put in "{}" after the equals. Then make sure at the bottom of your script you put "return (the name you made the variable called)" and make sure it is spelt EXACTLY the same as the one on the top.
it doesnt work for me its not teleporting me to the game and its calling values that dont work attempt to index nil with 'Create' Script 'ServerStorage.MiniGames.Lava Rising', Line 20 - function RunGame - Studio - Lava Rising:20 10:25:14.230 Script 'ServerScriptService.GameHandler', Line 28
When your script error says "index nil with 'Create'" it means if your try to do something like 'TweenService:Create' and you didn't properly define the TweenService variable, so the :Create method wont exist giving the error.
@CozyCoin hello had a problem in lava Rising Tab line 33 when i run it and it says ServerStorage.MiniGames.Lava Rising : 33 : attempt to call nil value - Server - lava Rising: 33
for some reason my afk code does nothing local localPlayer = game.Players.LocalPlayer local afkEvent = game.ReplicatedStorage:WaitForChild("Events"):WaitForChild("AfkMode") local afkButton = script.Parent:WaitForChild("AfkButton") local afkStatusLabel = afkButton:WaitForChild("AfkStatus") afkButton.Activated:Connect(function() afkEvent:FireServer() end) localPlayer:GetAttributeChangedSignal("AFK"):Connect(function() local isAfk = localPlayer:GetAttribute("AFK") if isAfk then afkStatusLabel.Text = "ON" afkStatusLabel.TextColor3 = Color3.fromRGB(0, 255, 60) else afkStatusLabel.Text = "OFF" afkStatusLabel.TextColor3 = Color3.fromRGB(202, 5, 5) end end)
Part 3 is out!! ruclips.net/video/loJ7tIEP81s/видео.html
9:00 what kind line did you use😅 i try every love line that has on my keyboard but it still didn't work pls explain
I got this error: ServerStorage.MiniGames.LavaRising:32: attempt to call a nil value
Can you help me fix that error if anyone knows how?
Im getting the error: Attempted to call require with invalid argument(s).
It points to the line - require(chosenGameModule).RunGame(). But its the same thing in the tutorial and it worked so i dont know whats wrong.
So the script is not working becase 'require()' needs a module script, which is what chosenGameModule should be. Make sure that chosenGameModule is the module script by doing some print statements or something
just finished adding the lava rising minigame, but when testing the text doesn't show up or do anything, I looked in the output and it said "Infinite yield possible on 'ServerStorage:WaitForChild("MiniGames")'" Anybody know how to help?
Man your going to become famous
fr
W vid bro. I can finally make my dream game!
Lets gooo!
I have some ideas for the game. first add a shop where u get items like one that u speed and another gives u moon gravity ad the last gives u both, secondly music for the lobby and minigames and lasty a mini game where a person has a bomb with 20 secs and u have to past it to another person, once it explodes another player gets a bomb
Yeah, next episode will have a shop
When it says choosing game, why does iti not choose game? I am not teleported to the game, can someone please help me
can anyone help me out? when i try and test the game, it says that AFK is not a valid property name. i tried changing it to Afk and it said the same thing, did i miss a line of code on accidient?
and is anyone having this issue?
(I find problem and fix)
me not work in: _G.TeleportPlayers(newGame.SpawnPoint.CFrame)
me show error: ServerStorage.MiniGames.Lava RIsing:35: attempt to call a nil value
oops, I hope you answer but my lava is bugged, it's not going up, it's going vertically as if it were turning into a ramp instead of going up
maybe try rotating the part so It goes up.
Bro! That's insane! Thanks! (+1 sub)
8:10 Just Saving My Spot
Bro Ur the best ❤
Bro I dont think you are going to see this but if you do I want to make a red versus blue game you can do a tutorial for that(+1 sub)
I keep getting an error that says ServerScriptService.GameHandeler:24: attempt to get length of an instance value
Can anyone help me?
can you copy and paste line 24 on your script called GameHandeler for me?
I can't know the problem without seeing the text first.
everything works its just not teleporting the players which stops the game.
heres the error: ServerStorage.Minigames.Flood Escape!:32: attempt to call a nil value
You might have not added the teleport players function into _G so when your script tries to use the function it can't find it (attempt to call a nil value)
@@CozyCointhank you it worked mb I didn’t see that there 😂
Add more minigames and a lobby
I will definitely make more minigames, but I'll probably leave the lobby as it is because I am trying to focus on scripting for this series
Can anyone give my the lava rising script please? my dont work
Hey Cozy, I am not sure what I did wrong. It picks the game then loads it but it doesn’t teleport the player
I’ll check it over later but there is no errors
Oh it works I forgot a comma 😂 great game btw
@@grappleronyt4662 where did you forget the missing comma?
@@Krabs_GamingYT sorry I am not sure I stopped working on the project.
@@grappleronyt4662 its ok i got past the bug
I getting error: Unable to cast to Dictionary - Server - LavaObby 25
can you send my line 25 on your script called LavaObby?
I can't know the problem without seeing the text first.
i get this error when a match starts: Module code did not return exactly one value - Server-GameHandler:32
can someone help me
This means that your ModuleScript returned 2 or more values, in other words your ModuleScript attempted to return a tuple, ModuleScripts can only return a single value, typically a table value containing all of the features of the ModuleScript itself.
@@Gorillix2024do you know how to fix it?
@@fuzedits5767 One of the reasons can be a typo. Make sure all words are spelt correctly and the exact same.
Example:
local Hi = print("Hi")
hi
In the example you made a variable and called it "Hi" but when you executed the variable you spelt it "hi" and not "Hi" which makes more than one value which causes the error.
also make sure at the top line of your module script it says "local (whatever you want your variable to be called) =" and then a value. If you want to make the value to be worth nil simply put in "{}" after the equals. Then make sure at the bottom of your script you put "return (the name you made the variable called)" and make sure it is spelt EXACTLY the same as the one on the top.
once there is no players that won game frozes
it doesnt work for me its not teleporting me to the game and its calling values that dont work attempt to index nil with 'Create' Script 'ServerStorage.MiniGames.Lava Rising', Line 20 - function RunGame - Studio - Lava Rising:20
10:25:14.230 Script 'ServerScriptService.GameHandler', Line 28
When your script error says "index nil with 'Create'" it means if your try to do something like 'TweenService:Create' and you didn't properly define the TweenService variable, so the :Create method wont exist giving the error.
@@CozyCoinmy player winners it's not work, can you fix it?
7:44
can I have the game file so I can spot what's wrong with mine
it is on his patreon
@@Gorillix2024 wym
Mine when i round starts it just gives me a win and there are no error codes
Make sure the script for your mini game is setup correctly so it does not instantly end once it has started
2:52
@CozyCoin hello had a problem in lava Rising Tab line 33
when i run it and it says ServerStorage.MiniGames.Lava Rising : 33 : attempt to call nil value - Server - lava Rising: 33
me too,
Me three
@@BloxemmaxGTA me four i keep getting this one: ServerStorage.MiniGames.Lava Rising:30: attempt to call a nil value - Server - Lava Rising:30
SUBSCRIBE GUYS
☝️
for some reason my afk code does nothing
local localPlayer = game.Players.LocalPlayer
local afkEvent = game.ReplicatedStorage:WaitForChild("Events"):WaitForChild("AfkMode")
local afkButton = script.Parent:WaitForChild("AfkButton")
local afkStatusLabel = afkButton:WaitForChild("AfkStatus")
afkButton.Activated:Connect(function()
afkEvent:FireServer()
end)
localPlayer:GetAttributeChangedSignal("AFK"):Connect(function()
local isAfk = localPlayer:GetAttribute("AFK")
if isAfk then
afkStatusLabel.Text = "ON"
afkStatusLabel.TextColor3 = Color3.fromRGB(0, 255, 60)
else
afkStatusLabel.Text = "OFF"
afkStatusLabel.TextColor3 = Color3.fromRGB(202, 5, 5)
end
end)
nvm i realised i forgot a colon