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)
-- LocalScript script.Parent.Touched:connect(function(part) if part.Parent:FindFirstChild("Humanoid") then part.Parent.Humanoid:TakeDamage(30) end) -- 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) -- 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!