ServerScriptService.Game Logic.RoundModule:32: attempt to index nil with 'Name' ?
03 | local status = game.ReplicatedStorage:WaitForChild( "Status" ) |
05 | function module.Intermission(length) |
06 | for i = length, 0 ,- 1 do |
07 | status.Value = "Next round starts in " ..i.. " seconds" |
12 | function module.SelectChapter() |
13 | local rand = Random.new() |
14 | local chapters = game.ReplicatedStorage.Chapters:GetChildren() |
15 | local chosenChapter = chapters [ rand:NextInteger( 1 ,#chapters) ] |
20 | function module.ChoosePiggy(players) |
22 | local RandomObj = Random.new() |
24 | local chosenPiggy = players [ RandomObj:NextInteger( 1 ,#players) ] |
30 | function module.DressPiggy(Piggy) |
31 | local character = game.ServerStorage.Piggy:Clone() |
32 | character.Name = Piggy.Name |
34 | Piggy.Character = character |
36 | character.Parent = workspace |
and it says that character.Name = Piggy.Name is the problem