Hello fellow devforum users! My script refuses to change the image of an image label. All help is appreciated!
local PetTable = require(script.ModuleScript)
local plrs = game:GetService("Players")
local plr = plrs:GetPlayers()[1] or plrs.PlayerAdded:Wait()
local Event = game.ReplicatedStorage.PetRemotes.GetPet
Event.OnServerEvent:Connect(function()
local newpet = PetTable.ChoosePet():Clone()
newpet.Parent = plr.Pets
plr.PlayerGui.EggOpen.PetRays.Pet.Image = newpet.Image
end)
here is an error in the output:
Unable to assign property Image. ContentId expected, got Instance