-
What do you want to achieve? Keep it simple and clear!
so im creating a bullet tracer, with normal parts it works perfectly fine but with beams its rotated weird -
What is the issue? Include screenshots / videos if possible!
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i have tried alot of things but when i try it messes up with the cframe so i cant even see it shoot
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
in the photo you can see a yellow dot its the part, the bullet tracer is aiming at the right it should be pointing forwards i have no idea how to fix it
-- local bullet = game.ReplicatedStorage.VFX:WaitForChild("BulletTracers").BulletTracer:Clone()
bullet.Name = "Bullet"
bullet.Parent = game.Workspace
bullet.CanCollide = false
bullet.Anchored = false
bullet.Size = Vector3.new(0.3,0.3,4)
bullet.Position = MuzzlePos
bullet.CFrame = CFrame.new(MousePos ,MuzzlePos)
bullet.BrickColor = BrickColor.new("Really red")
bullet.Material = Enum.Material.Neon
bullet.BrickColor = BrickColor.new("Light orange")
bullet:SetNetworkOwner(player)
bullet.Transparency = 0
local tracer = bullet.Bullet:Clone()
tracer.Parent = bullet
tracer.Name = "Tracer"
tracer.CanCollide = false
tracer.Anchored = false
tracer.Position = MuzzlePos
tracer.CFrame = CFrame.new(MousePos , MuzzlePos)
tracer:SetNetworkOwner(player)
tracer.Transparency = 0
local bodyVelo = Instance.new("BodyVelocity")
bodyVelo.Parent = bullet
bodyVelo.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyVelo.Velocity = (bullet.CFrame.LookVector * 10)
local bodyVelo = Instance.new("BodyVelocity")
bodyVelo.Parent = tracer
bodyVelo.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyVelo.Velocity = (bullet.CFrame.LookVector * 10)