Hello, Developers
Recently I have been trying to create a click part for face block, but I’m not sure how this script would work apart from using a ClickDetector. Any help would be appreciated, this is what I’m trying to script.
Thank you!
Hello, Developers
Recently I have been trying to create a click part for face block, but I’m not sure how this script would work apart from using a ClickDetector. Any help would be appreciated, this is what I’m trying to script.
Thank you!
Well, its kinda easy you only need 3 things.
now create a part and add clickdetector and script in it.
and type the following
script.Parent.ClickDetector.Activated:Connect(function(plr)
local char = plr.Character or plr.CharacterAdded:Wait()
local faceDecal = char.Head:GetChildren()
for _,v in pairs(faceDecal) do
if v:IsA("Decal") then
v.Texture = "put your face id here."
end
end
end
Thank you so much! This has really helped me, I appreciate it!
No problem always here to help!