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

how to make click to wear face?

Asked by 3 years ago

how to make a click to wear face brick? can some one give me a script?

0
You can't ask here for scripts, read rules. You asking us to work for you MrSuperKrut 167 — 3y

1 answer

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago
local ClickDetector = script.Parent -- in this case, your script parent must be the click detector

ClickDetector.MouseClick:Connect(function(PlayerWhoClicked) -- an event to fire when click detector got clicked, player who clicked is a parameter that it gets the additional information from this event
    local character = PlayerWhoClicked.Character -- get the character

    local characterHead = character.Head -- get head
    local characterFace = characterHead.face -- get face
    local faceId = "4593635654" -- the face id you want to replace, also this is the roblox classic epic face

    characterFace.Texture = "http://www.roblox.com/asset/?id=".. faceId -- set face texture to face id
    -- don't be super scared seeing the whole http:///www.roblox.com thing, thats a content data type for getting the face from roblox
end) -- end it
0
try to not ask for scripts, unless you are really helpless, i send this script that i made myself is because i can let other people see this too searching google Xapelize 2658 — 3y
Ad

Answer this question