I am new to scripting and as of right now am attempting to figure out how to make a hitbox for a forsaken killer concept.
Code:
local remote = script.Parent
remote.OnServerEvent:Connect(function(player, skill)
local char = player.Character or player.CharacterAdded:wait()
local rootPart = char:WaitForChild(‘HumanoidRootPart’)
local hitbox = script.Parent.Parent.Parent.Torso:FindFirstChild(“Hitbox”)
local humanoid = char:FindFirstChild(“Humanoid”)
if skill == “Punch” then
local track = Instance.new(“Animation”)
track.AnimationId = “rbxassetid://132305779707156”
local Anim = char.Humanoid:LoadAnimation(track)
Anim:Play()
end
end)