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

How do you weld an object to the character without causing movement issues?

Asked by 4 years ago

I'm trying to create a melee weapon with a "damage radius" around the player. The welding however, causes the player to glitch out every time I use the weapon. Any help?

01local DamageObject = Instance.new("Part")
02DamageObject.Parent = workspace
03DamageObject.Name = Player.Name.."'s DamageObject"
04DamageObject.Shape = Enum.PartType.Ball
05DamageObject.Anchored = false
06DamageObject.CanCollide = false
07DamageObject.Size = Vector3.new(10, 10, 10)
08DamageObject.Position = workspace[Player.Name].UpperTorso.Position
09 
10local weld = Instance.new("Weld")
11weld.Parent = DamageObject
12weld.Name = "Weld"
13weld.Part0 = workspace[Player.Name].LowerTorso
14weld.Part1 = DamageObject
15weld.C0 = workspace[Player.Name].UpperTorso.CFrame:Inverse()
View all 36 lines...

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

you could make the part massless, i have done that before it works.

1part.Massless = true
0
Thank you! R0B0T_K1LLER 0 — 4y
Ad

Answer this question