local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse()
Here is the full script though:~~~~~~~~~~~~~~~~~
local Player = game.Players.LocalPlayer`local Mouse = Player:GetMouse() local dmg = true Mouse.KeyDown:connect(function(key) if key == "f" then local an = script.Parent.Humanoid:LoadAnimation(script.Animation) an:Play() script.Parent.RightHand.Touched:connect(function(hit) if hit.Parent.Humanoid and dmg == true then hit.Parent.Humanoid:TakeDamage(20) dmg = false wait(1) dmg = true end end) end end)

3 comments
Please format your code correctly, the code should be within those 2 lines of symbols
okay
I said it will work in studio, it wont work on servers.