Why isn't the Vector3 working to set the Size of a part?
I was making a gun to my game, and i made a code, but then i started getting an error. Then a guy named "Denny9876" told me to use a Vector3 to my code. And then the error was gone! But then, the code wasn't working, only the error was gone.
This is my code:
01 | local pistola = script.Parent |
02 | local hole = game.StarterPack.Pistola.Hole |
08 | local headshotDamage = 50 |
16 | pistola.Activated:Connect( function () |
19 | pistola.Handle.Disparo:Play() |
20 | local bullet = Instance.new( "Part" ) |
21 | bullet.Size = Vector 3. new(range, 0.25 , 0.25 ) |
22 | bullet.CFrame = CFrame.new(hole.CFrame.Position) |
23 | bullet.Transparency = 0.5 |
24 | bullet.CanCollide = false |
Pls tell me what is wrong with my code, why isn't the bullet showing up, and how can i fix it?