local access = (“friend, or person”) game.ReplicatedStorage = Player.PlayerAdded() Local doge =game.Player(function(player) end)
It depends on what you NEED. If you want a attack on touch script, you can follow this: (Expecting that the doge follows any player)
1 | -- LocalScript |
2 | script.Parent.Touched:connect( function (part) |
3 | if part.Parent:FindFirstChild( "Humanoid" ) then |
4 | part.Parent.Humanoid:TakeDamage( 30 ) |
5 | end ) |
6 | -- this script makes the parent of it (assuming your localscript for damage is inside a part) deal "30" damage (which can be changed to whatever you like) |
7 | -- you have to put this localscript in a part, so whenever that part touches the player, the player gets -30 (or any value) damage. |
Let me know if there is something wrong!