hello!! (again... sorry im asking so many questions lol im a bit new to scripting)
I have a custom StarterCharacter in my game who've I've nicknamed Hero. Hero's face has different decals on it for different facial expressions (sad, happy, etc.)
I want to use a remote event so that, when you click a Text Button on your gui, your face changes, and everyone else can see that it changed too, rather than it just being local.
I watched a few tutorials but I'm... still having a lot of trouble.
here's my server script:
game.ReplicatedStorage.RE.OnServerEvent:Connect(function(player)
script.Parent.Parent.Character.Mouth.Hero_Mouth.Transparency = 1
print ("your face changed!")
end)
and my local script:
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.RE:FireServer()
end)
I know its a problem with how I'm trying to access the player's mouth/face, but I'm not sure how to fix it. I'm trying to make it so that, when someone clicks, for example, a button labelled "happy face," their character's face will switch to the happy decal, and everyone else can see that their character's face has changed to happy as well. im not very experienced with remote events yet, so i probably sound kind of stupid, but can someone help? thank you!!

4 comments
Ok, it's just gonna be invisible like that?
Well, its gonna change to a different decal later on. Im just making it invisible for now and then Ill actually have it change when I actually manage to get the script to work.
Ok.
if I can ask, where exactly is the server script?