I am working on a basically a Star Wars game, and I have been scripting Darth Vader and I have encountered a problem.

So when Vader does his choke move it welds a part to the player and then destroys the part.

But I havent scripting much of it yet because I am having a problem already.

After welding the part to the character I encounter 2 problems. The first being the player starts to bounce in and out of the map and the second problem being I want to weld the part kinda offset.

Let me elaborate on the second one, whenever I weld the part it always welds to the center of the part, what If I want it to weld sorta to the right side or left side.

Anyways heres the script ive got so far

local HitBox = game.Workspace.ChokeHitBox
HitBox.Parent = Player.Character	
HitBox.Anchored = false
HitBox.CanCollide = false

local Weld = Instance.new("Weld")
Weld.Parent = HitBox
Weld.Part0 = HitBox
Weld.Part1 = Player.Character.LowerTorso

Any ideas anyone?

Thank you for your time :)

2 comments

0

Alright to change the parts offset you will need to change the weld by using Weld.C0, or Weld.C1, it's located in the welds wiki you can check it there.

0

Okay Ill look