Ok So I Made A Script With The Help Of A Tutorial On Youtube And Im Trying To Make It Where It Does Damage. Does Any Body Know How To Do It? Here Is My Script.
local Player = game.Players.LocalPlayer local Character = Player.Character or script.Parent local Humanoid = Character.Humanoid local UserInputService = game:GetService("UserInputService") local AnimationId = 'rbxassetid://03213109669' local Debounce = true local Key = 'Q' UserInputService.InputBegan:Connect(function(Input, IsTyping) if IsTyping then return end if Input.KeyCode == Enum.KeyCode[Key] and Debounce == true then Debounce = false local Animation = Instance.new("Animation") Animation.AnimationId = AnimationId local LoadAnimation = Humanoid:LoadAnimation(Animation) LoadAnimation:Play() wait(1) Animation:Destroy() Debounce = true end end)

2 comments
please can you format this code better?
cant red