#How to make a Click Part for face?
20 messages · Page 1 of 1 (latest)
What are u trying to do
i need help tho
can u may help me??
Bro I just asked u what exactly are u trying to do
😭 why u think I’m here
dam xd
i need a script to give me this face if i click on it
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
** You are now Level 3! **
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
ohw but its not working
face is not showing up
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
worked tysm