How do I make these seen by other players?

Hey, I am trying to make a game where every time you click your head would grow, here is the code, its placed in the starter character scripts:

mouse.Button1Down:Connect(function()
script.Parent.Humanoid.HeadScale.Value = script.Parent.Humanoid.HeadScale.Value + 0.1
end)

This works but other players cannot see your head size change.
How do I fix this?
I also have another problem where when your head is too big you will go through the ground, how do I fix that too?

2 Likes

Inside of the Button1Down function, I would recommend using RemoteEvents which tell the server to + 0.1 to a player’s HeadScale.

3 Likes

Read this and this and it should give you a basic understanding on how client and server communication works.

3 Likes

Thanks a lot, I will try to do that

1 Like