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

Why does my Custom Character gui do this when I try and wear the item?

So I use the items I own in Roblox studio and they work perfectly same ingame. But when i use items i dont own, it makes that part of my body blank. Any help?

wait(2)

local Descendants = script.Parent:GetDescendants()
for i = 1, #Descendants do
	local desc = Descendants[i]
	if desc:IsA('ImageButton') then
		desc.MouseButton1Click:Connect(function()
			repeat
			wait(0.01)
			game.Players.LocalPlayer.Character.Head.Face.Texture = "rbxassetid://"..desc.ID.Value
			until game.Players.LocalPlayer.Character.Head.Face.Texture == "rbxassetid://"..desc.ID.Value
		end)
		end
		end

1 answer

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