HI! I want to change a players face using a GUI Button, but I want other players to see the face to but the face is not appearing. I'm Using a local script in a gui button in startergui.
Heres my script
` local btn = script.Parent local Pop2 = game.StarterGui.DressUp.Button1SS.POPSoundEffect1 local player = game.Players.LocalPlayer.character or game.Players.LocalPlayer.CharacterAdded:Wait() local isHovering = false
btn.MouseEnter:Connect(function()
isHovering = true
btn:TweenSize(UDim2.new(0.153, 0,0.089, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end)
btn.MouseLeave:Connect(function()
isHovering = false
btn:TweenSize(UDim2.new(0.126, 0,0.063, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end)
btn.MouseButton1Down:Connect(function()
btn:TweenSize(UDim2.new(0.122, 0,0.059, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
Pop2:play()
player.humanoid.head.face:Destroy() -- Deletes Players Previous Face
player.humanoid.head.face.texture = "rbxassetid//4880835484" -- Adds New Face
end)
btn.MouseButton1Up:Connect(function()
if not isHovering then
btn:TweenSize(UDim2.new(0.122, 0,0.059, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
else
btn:TweenSize(UDim2.new(0.126, 0,0.063, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end
end) `

1 comment
Use RemoteEvents