I am doing a simulator and sometimes, when I open a egg, it gives me that error and you can't do anything even if you rejoin. Any ideas? Script:
function CreateItem(Object, Position, Equipped, Container) local NewItem = ItemTemplate:Clone()
NewItem.Name = Object NewItem.i.Value = Position NewItem.ImageButton.Image = Information[Container.Name][Object].ID if Object == Equipped then NewItem.Equipped.Visible = true end NewItem.ImageButton.MouseButton1Click:Connect(function() Inspecting = NewItem ItemInfo.Title.Text = string.upper(Object) print(NewItem.Name) if NewItem.Equipped.Visible then ItemInfo["Equip"].Text = "EQUIPPED" else ItemInfo["Equip"].Text = "EQUIP" end