So im making a piggy type game. When i used a kit that adds gamemodes, it added 3, player, bot and traitor. When the map is selected i waited for the bot to spawn, but it didnt. I was looking at the code from output, and i understand where it goes, but i dont understand wheres the error. The code the Output said was wrong is this one:
local bot = game.ReplicatedStorage.Skins:FindFirstChild(botValue):Clone()
And here are the lines that go before and after this code:
local botValue = game.Workspace.Map.Bot.Value local bot = game.ReplicatedStorage.Skins:FindFirstChild(botValue):Clone() local Ai = game.ReplicatedStorage.Bot.AI:Clone()
I know this is the second question i posted today, but im having a lot of problems with bugs i cant find. Also in the third line theres supposed to be an local Ai and in the second it isnt supposed to be there. But this site puts it wrong for some reason
The output says this:
ServerScriptService.Game Logic.RoundModule:254: attempt to index nil with 'Clone'

1 comment
where do i put it?