Use Module Script To Hold Skins

I’m Trying To Clone A Dummy To A ViewportFrame And This Script Won’t Work

This Script Is On ReplicatedStorage

local ServerScriptService = game:GetService("ServerScriptService")

return{
	
	["Dummy"] = {game.ServerScriptService.Items.Skins.Dummy};
	
	
	
}

Script Is In Starter GUI

local SkinModule = require(game.ReplicatedStorage.ModuleScripts.Inventory.Skins)


function CloneSkin()
	SkinModule.Dummy.Clone().Parent = script.Parent.ViewportFrame
end

Please Move To This Post: Clone A Skin To ViewFrame

It should be :Clone(), not .Clone().

Nope I Got More Error Doing That

Can you show us the errors? Would be much helpful.

1 Like

image

This means your object doesn’t exist in ServerScriptService.

image
It Does

Then try to do :WaitForChild() on it.

The items must be inside ReplicatedStorage so both the server and client can access it.

Clients can’t access anything from the ServerStorage/ScriptService

1 Like