local attack = true
script.Parent.Activated:Connect(function()
local char = script.Parent.Parent
local torso = char:WaitForChild('HumanoidRootPart')
if attack == true then
attack = false
print("activated")
local part = Instance.new("Part",game.workspace.hitboxes)
part.CFrame = torso.CFrame + (torso.CFrame.lookVector*5)
part.Name = "hitboxpart"
part.Size = Vector3.new(7,7,7)
part.Anchored = true
part.CanCollide = false
part.Transparency = 0.5
wait(0.4)
end
end
This script creates a part front of the player but its not following the player. How can i make it follow, with weld or something else?
