local UIS = game:GetService("UserInputService") local plr = game.Players.LocalPlayer local Char = plr.Character or plr.CharacterAdded:Wait()

local Key = "E"

local Animation = Instance.new("Animation") Animation.AnimationId = "rbxassetid://4213048413"

UIS.InputBegan:Connect (function(Input, IsTyping) if IsTyping then return end local KeyPressed = Input.KeyCode if KeyPressed == Enum.KeyCode[Key] then local LoadAnimation = Char.Humanoid:LoadAnimation(Animation) LoadAnimation:Play() end end)

and is it possible ?

4 comments

0

I haven't looked into dealing damage to players much, But I'm sure it has something to do with a players hitbox being hit, and subtracting health from the Humanoid.

0

Uh next time use a format when you post scripts.

0

is your character R15 or R6?

0

its R6