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

The gui wont work, and i double checked it?

Asked by
pr3cure -26
5 years ago

This is my script :

function onButtonClicked()
game.Players.LocalPlayer.leaderstat.Hat.Value = 10
if game.Players.LocalPlayer.leaderstat.Hat.Value == 10 then
hair = game.ReplicatedStorage.CBeauty:Clone()
hair.Name = "Hair"
hair.Parent = game.Players.LocalPlayer.Character
local w = Instance.new("Weld")
w.Part0 = game.Players.LocalPlayer.Character.Head
w.Part1 = hair
w.Parent = game.Players.LocalPlayer.Character.Head
w.C0 = w.C0 * CFrame.new(-0,-0.5,0.2)*CFrame.fromEulerAnglesXYZ(0, math.pi, 0)
wait(0.3)
elseif game.Players.LocalPlayer.leaderstat.Hat.Value ~= 10 then
hair:Remove()
end
end

I need help with a hair Gui, so when you click the image button then the hair in the pictures ID appears on your head and takes of the one on your head its fine if it doesnt take off the hair on your head at first i just need help with the script

0
Its a hair gui sorry <:) pr3cure -26 — 5y

Answer this question