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

Im trying to make a hold e to get a face but it doesn't seem to wrok?

Asked by 3 years ago

function onTouched(part) local h = part.Parent.Parent:findFirstChild("Humanoid") if h~=nil then if part.Parent.Parent:findFirstChild("Head"):findFirstChild("face").Texture == nil then return end part.Parent.Parent:findFirstChild("Head"):findFirstChild("face").Texture=script.Parent.Parent.Decal.Texture end end

script.Parent.Parent.PromptObject.Enabled:connect(onTouched)

0
try FindFirstChild instead of findFirstChild jerryisgod29 176 — 3y

Answer this question