Hello everybody I am working on an Inventory system and I need the pets to show up as an image, but one pet image is not showing up the mouse.
Local Script
local template = script.Parent
local Rep = game.ReplicatedStorage
local dmg = template.DamageLabel
local function templatecontrol()
wait()
if template:FindFirstChild("Cat") then
local PetIms = require(Rep.PetImages)
template.Image = PetIms.catim
dmg.Text = template:WaitForChild("DamageValue").Value
local Pets = require(game.ReplicatedStorage.PetsModuleScript)
elseif template:FindFirstChild("Dog") then
local PetIms = require(Rep.PetImages)
template.Image = PetIms.dogim
dmg.Text = template:WaitForChild("DamageValue").Value
local Pets = require(game.ReplicatedStorage.PetsModuleScript)
elseif template:FindFirstChild("Mouse") then
local PetIms = require(Rep.PetImages)
template.Image = PetIms.mouseim
dmg.Text = template:WaitForChild("DamageValue").Value
local Pets = require(game.ReplicatedStorage.PetsModuleScript)
end
end
--end
templatecontrol()
Module Script
local PetImages = {
dogim = "rbxassetid://8828963504";
catim = "rbxassetid://8828986535";
mouseim = "rbxassetid://8829018886";
dragonim = "rbxassetid:/8829021256";
grasscatim = "rbxassetid:/8829263895";
teamonsterim = "rbxassetid:/8829323173";
cactuscatim = "rbxassetid://8836591232";
cactusdogim = "rbxassetid://8836621204";
camelim = "rbxassetid://8836637380";
elephantim = "rbxassetid://8836652867";
crabim = "rbxassetid://8836795069";
virusim = "rbxassetid://8836812779";
junglecatim = "rbxassetid://8917754447";
jungledogim = "rbxassetid://8917215017";
monkeyim = "rbxassetid://8917522171";
alligatorim = "rbxassetid://8917695255";
tinygumdropim = "rbxassetid://8917526330";
demonim = "rbxassetid://8917527791";
forestdwellerim = "rbxassetid://8917733747";
fallcatim = "rbxassetid://9007705788";
falldogim = "rbxassetid://9007709309";
pumpkinim = "rbxassetid://9007712121";
sinisterpumkinim = "rbxassetid://9007714407";
turkeyim = "rbxassetid://9007716942";
frozendogim = "rbxassetid://9032646960";
snowycatim = "rbxassetid://9032652374";
snowmanim = "rbxassetid://9032654659";
icegolemim = "rbxassetid://9032656304";
icedragonim = "rbxassetid://9032658329";
icydeerieim = "rbxassetid://9032660195";
snowymutateddragonim = "rbxassetid://9032661934";
wintercoldim = "rbxassetid://9032665376";
hellcatim = "rbxassetid://9084904876";
burntdogim = "rbxassetid://9084908056";
skeletonflyim = "rbxassetid://9084911619";
spikeyballonim = "rbxassetid://9084913881";
lavamonsterim = "rbxassetid://9084917471";
}
-- add a folder with all the pets that will be stored in it.
--Rarity,Power,Equipped or Not, ownership
return PetImages
look you can see right here the image is there but on the inv it does not show
here is the link to the image
(2) Images/mouseee - Roblox