Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
iuclds 720 Moderation Voter
4 years ago

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

Log in to vote
0
Answered by
iuclds 720 Moderation Voter
2 years ago

this didnt make sense IUClDS

Ad

Answer this question