Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make "HitBox" stay with character?

Asked by
Storche 13
4 years ago

So I have this simple script where it pulls an item out of storage and spawns infront of the player as a form of hitbox, I have been using the CFrame * CFrame.new as a way to position the hitbox. However it makes for impractical hitboxes that are glitchy and don't really correspond to the player well, especially when making the character lunge forward.

Is there anyway to make the block stick with the play as he moves?

local HB = game.ServerStorage.HB1:WaitForChild("H2")
            local Character = player.Character
            local Hitb = HB:Clone()
            Hitb.CFrame = Character.HumanoidRootPart.CFrame * CFrame.new(1,0,-7)
            Hitb.Parent = player.Character.HumanoidRootPart
0
Have you tried welding it to the character? fluffyoreos32 63 — 4y
0
I'll see if it works. Storche 13 — 4y

Answer this question