Im making a kamehameha script but when i put a touch interest in the beam of the kamehameha it moves around and glitches and it wont stand still, goes up even tho i anchored it please help without touch interest https://cdn.discordapp.com/attachments/343099799928832000/356955649030094849/without.PNG with touch interest https://cdn.discordapp.com/attachments/343099799928832000/356955595338940419/with_touchinterest.PNG
001 | forward = 0 |
002 | Kamehameha = Instance.new( "Model" ,Character) |
003 | beamstart = New( "Part" ,Kamehameha) |
004 | beamstart.Size = Vector 3. new( 3 , 3 , 3 ) |
005 | beamstart.Anchored = true |
006 | beamstart.CanCollide = false |
007 | beamstart.Color = Color 3. fromRGB( 255 , 255 , 255 ) |
008 | beamstart.CFrame = CFrame.new(RootPart.Position + Vector 3. new( 0 , 1 , 0 ))*CFrame.Angles( 0 ,math.rad( 0 ), 0 )+RootPart.CFrame.lookVector * 3 |
009 | beamstart.Material = "Neon" |
010 | mesh 1 = Instance.new( "SpecialMesh" ,beamstart) |
011 | mesh 1. MeshType = "Sphere" |
012 | beamstart 1 = New( "Part" ,Kamehameha) |
013 | beamstart 1. Size = Vector 3. new( 4 , 4 , 4 ) |
014 | beamstart 1. Anchored = true |
015 | beamstart 1. CanCollide = false |
I don't know if i am exactly right but if you're trying to make a object still and you've anchored, then go to View tab then click on output. It will show you what is going on and what you need to fix, such as, "On line 68, "Print ("Hello). Expected "". it would show you why its constant moving and glitching. Try to look into the physical side of the script. And why is the position moving. If you tried that then check you're lines that include moving you're object or some how physically touching it, like Vector 3 or X,Y,Z. Make sure it doesn't affect any other lines except for that one or others that need variables, and make sure it doesn't affect the Touch Interest. I don't know if this works for you or not, but hope it does!