Expected ":" not "." calling member FindFirstChild

Hi.
I’m having an issue with my script that keeps bringing up this output error:
Capture
Here is the script:

local currentMap = self:chooseMap()
				local mapWeapons = findFirstChild(currentMap, "Weapons")
				local playersAlive = self:getAlivePlayers()
				self.playersAlive = playersAlive

				for index = 1, #playersAlive do
					local currentPlayer = playersAlive[index]
					local backpack = findFirstChild(currentPlayer.player, "Backpack")

					if backpack and mapWeapons then
						for index, weapon in next, mapWeapons:GetChildren() do
							weapon:Clone().Parent = backpack
						end
					end
1 Like

I believe the script confius with roblox lua function :FindFirstChild() or :findFirstChild()
try change the function to other name

1 Like

what line is the error at?
click the error to find out

doing function findFirstChild() end wont error
besides the error says “.” is used instead of “:”

1 Like

sorry, maybe i am wrong

1 Like

i fixed the solution, i just got an old script from the older version of the game, thanks for the help :smiley:

i fixed the solution, i just got an old script from the older version of the game, thanks for the help :smile:

1 Like

so, what’s the error, i am curious ?

1 Like

glad you got it fixed, anyways you sent this reply twice

1 Like

so basically, i made this script that chooses a map, with a timer, once the timer ends, repeat the same process. the script broke once one round ended

1 Like

well, okay :sweat_smile:

1 Like