Can moving a part with CFrame get it automatically moved somewhere else?
Asked by
6 years ago Edited 6 years ago
I heard it can happen with position, but I'm having the problem with CFrame. The Part I'm moving has cancollide off and I'm trying to move it somewhere, but when I do the part gets moved somewhere completely different. For example I can move a part on the y axis and it might move it on the x and z axis as well. Also I think the problem is to do with he part overlapping with the player and I'm wondering whether collision groups would fix it.
Here's the script if you need it.
01 | local Blast = Instance.new( "Part" ) |
02 | local Weld 3 = Instance.new( "WeldConstraint" ) |
03 | Weld 3. Part 0 = Player.Character.InnerBall |
07 | Blast.Color = Color 3. fromRGB( 0 , 255 , 255 ) |
08 | Blast.Material = "Neon" |
09 | Blast.Transparency = 0.5 |
10 | Blast.CanCollide = false |
11 | Blast.Shape = "Cylinder" |
12 | Blast.Size = Vector 3. new(Player.Character.OuterBall.Size.X * 4 , Player.Character.OuterBall.Size.Z, Player.Character.OuterBall.Size.Y) |
13 | Blast.CFrame = Player.Character.OuterBall.CFrame * CFrame.new( 0 ,-Blast.Size.X/ 2 , 0 ) |
14 | Blast.Orientation = Vector 3. new(- 45 , 0 , 90 ) |
15 | Blast.Parent = Player.Character |
This is the part where I CFrame the part I was talking about earlier.
1 | Blast.CFrame = Player.Character.OuterBall.CFrame * CFrame.new( 0 ,-Blast.Size.X/ 2 , 0 ) |
Also I've been told that a suspect was welding. I'm not too sure about that,but that might help you.