code for skill:
M1AlreadyPro.OnServerEvent:Connect(function(plr)
local char = plr.Character
local overlapParams = OverlapParams.new()
plr:SetAttribute("Attacking",true)
overlapParams.FilterType = Enum.RaycastFilterType.Exclude
overlapParams.FilterDescendantsInstances = {char}
local hrp = char:FindFirstChild("HumanoidRootPart")
local hum = char:FindFirstChild("Humanoid")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://89111951807992"
local track = hum:LoadAnimation(anim)
track:Play()
local hitbox = HitboxModule.CreateHitbox()
hitbox.Size = Vector3.new(4, 5, 5)
hitbox.CFrame = hrp
hitbox.Offset = CFrame.new(0,0,-3)
hitbox.OverlapParams = overlapParams
hitbox.VelocityPrediction = true
hitbox.VelocityPredictionTime = 0.2
hitbox.VisualizerColor = Color3.new(1, 0, 0.0156863)
hitbox.Touched:Connect(function(hit, humanoid)
humanoid:TakeDamage(10)
end)
debris:AddItem(anim,1)
wait(0.3)
hitbox:Start()
wait(0.5)
hitbox:Stop()
end)
** You are now Level 3! **