#How to make a Click Part for face?

20 messages · Page 1 of 1 (latest)

tired vine
#

what i need is

Part

Script

Face decal id

Click detector

I need to create a part and add clickdetector and script in it.

"But i have my part and my face id decal and my ClickDetector. I just need the script."

keen ginkgo
#

What are u trying to do

tired vine
tired vine
keen ginkgo
#

Bro I just asked u what exactly are u trying to do

keen ginkgo
tired vine
#

dam xd

tired vine
#

local part = game.Workspace.Beast -- Replace "Beast" with the actual name of your part
local faceDecalId = 127959433
local clickDetector = part:FindFirstChild("ClickDetector") -- Replace "ClickDetector" with the actual name of your click detector

clickDetector.MouseClick:Connect(function(player)
local character = player.Character
if character then
local head = character:FindFirstChild("Head")
if head then
local existingDecal = head:FindFirstChildOfClass("Decal")
if existingDecal then
existingDecal.Texture = "rbxassetid://" .. faceDecalId
else
local newDecal = Instance.new("Decal")
newDecal.Texture = "rbxassetid://" .. faceDecalId
newDecal.Parent = head
end
end
end
end)

#

the ai made me the script but the face is glitiching like its giving me 3 faces

spice hemlockBOT
#

studio** You are now Level 3! **studio

keen ginkgo
#
local part = game.Workspace.Beast -- Replace "Beast" with the actual name of your part
local faceDecalId = 127959433
local clickDetector = part:FindFirstChild("ClickDetector") -- Replace "ClickDetector" with the actual name of your click detector

clickDetector.MouseClick:Connect(function(player)
    local character = player.Character
    if character then
        local head = character:FindFirstChild("Head")
        if head then
            local existingDecal = head:FindFirstChildOfClass("Decal")
            if existingDecal then
                existingDecal.Texture = "rbxassetid://127959433" .. faceDecalId
            else
                local newDecal = Instance.new("Decal")
                newDecal.Texture = "rbxassetid://127959433" .. faceDecalId
                newDecal.Parent = head
            end
        end
    end
end)
#

all u had to do was insert the face id in two other places

tired vine
#

face is not showing up

keen ginkgo
#
local part = game.Workspace.Beast -- Replace "Beast" with the actual name of your part
local faceDecalId = 127959433
local clickDetector = part:FindFirstChild("ClickDetector") -- Replace "ClickDetector" with the actual name of your click detector

clickDetector.MouseClick:Connect(function(player)
    local character = player.Character
    if character then
        local head = character:FindFirstChild("Head")
        if head then
            local existingDecal = head:FindFirstChildOfClass("Decal")
            if existingDecal then
                existingDecal.Texture = "rbxassetid://127959433"
            else
                local newDecal = Instance.new("Decal")
                newDecal.Texture = "rbxassetid://127959433"
                newDecal.Parent = head
            end
        end
    end
end)```
#

there

tired vine
#

worked tysm