Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Frame Not Cloning. I constantly get the same frame?

I have this code:

local player = game.Players.LocalPlayer
local ItemGui = script.Parent.Item
local ObjectName = script.Parent.Item.ItemName

player.Inventory.ChildAdded:Connect(function(child)
	ItemGui:Clone()
	ItemGui.Parent = script.Parent
	ObjectName.Text = child.Name
end)

but it won't clone the frame. Can someone help me?

1 answer

✓ Accepted answer

Try this:

local player = game.Players.LocalPlayer
local ItemGui = script.Parent.Item
local ObjectName = script.Parent.Item.ItemName

player.Inventory.ChildAdded:Connect(function(child)
    local clonegui = ItemGui:Clone()
    clonegui.Parent = script.Parent
    ObjectName.Text = child.Name
end)

also it doesn't work because you're supposed to make it a var.

2 comments

0

Hope i helped

0

yes it did. Thanks!!

This discussion is preserved as it was. New answers, comments, and votes are closed.