Hello, so I’m making a game and I want it so when you hit someone with a sword it spawns a hit collision effect at the position that you hit.
Handle.Touched:Connect(function(Hit)
local Humanoid = Hit.Parent:FindFirstChildOfClass("Humanoid")
local HumanoidRootPart = Hit.Parent:FindFirstChild("HumanoidRootPart")
if Humanoid and not Deb[Humanoid] and HumanoidRootPart and CanDamage and not Hit.Parent:IsDescendantOf(Tool.Parent) then
Deb[Humanoid] = true
Humanoid:TakeDamage(10)
local HitCollisionClone = HitCollision:Clone()
HitCollisionClone.Parent = workspace
HitCollisionClone.CFrame = -- Hit position here
Humanoid.WalkSpeed = 0
Stunned = true
wait(StunDuration)
Humanoid.WalkSpeed = 16
if MyRoot then
--Push(HumanoidRootPart)
end
end
end)
Oh you’re right, but there is one problem. As you can see in this image, it’s not really on the dummy. I want it so it will be like the impact point in which the sword hits the dummy.
Thing is both doesn’t make much of a difference.
To be hitting, they are really close (visually), and with larger parts, it might just seem unrealistic either way.