Fix luau analyze failures

This commit is contained in:
Kenneth Loeffler 2023-10-04 14:25:45 -04:00
parent beb297d6c9
commit 486ded3974
2 changed files with 4 additions and 4 deletions

View file

@ -43,12 +43,12 @@ do
local folder = Instance.new("Folder")
local objectValue = Instance.new("ObjectValue")
local objectValue = Instance.new("ObjectValue") :: any
objectValue.Value = particleEmitter
objectValue.Parent = folder
local serialized = roblox.serializeModel({ part, folder })
local deserialized = roblox.deserializeModel(serialized)
local deserialized = roblox.deserializeModel(serialized) :: any
assert(deserialized[2].ObjectValue.Value == deserialized[1].ParticleEmitter)
end

View file

@ -45,12 +45,12 @@ do
local part = Instance.new("Part")
part.Parent = ReplicatedStorage
local objectValue = Instance.new("ObjectValue")
local objectValue = Instance.new("ObjectValue") :: any
objectValue.Value = part
objectValue.Parent = Workspace
local serialized = roblox.serializePlace(game)
local deserialized = roblox.deserializePlace(serialized)
local deserialized = roblox.deserializePlace(serialized) :: any
assert(deserialized.Workspace.ObjectValue.Value == deserialized.ReplicatedStorage.Part)
end