✓ Accepted answer
Use animations
You can move the arm using animations. Because the player's character is replicated to the server, you can play the animation in a Local Script if you wish. However, if FE is enabled, you will have to do the damage in a regular script so it affects other players.
To make sure the arm doesn't hurt the Local Character, use the IsDescendantOf() function. Example,
local char = "DefineCharacter"
arm.Touched:connect(function(p)
local hum = p.Parent:FindFirstChild("Humanoid")
if (not p:IsDescendantOf(char)) and (hum) then
hum.Health = hum.Health-5
end
end)
Just an example
Good Luck!
If I helped, please don't forget to accept my answer.
2 comments
What's the point of the parentheses surrounding the if and not statements? Some people do it but others don't. Is there a reason for it
Not really. It's mainly used for organization.