Mouse.Hit.lookVector shooting objects in different locations ?
For some reason, the blast doesn't follow the position of the mouse. It goes in diffrent locations based on the player's rotation.
01 | RC.OnServerInvoke = function (player,empty,hum,car,pli,play,mouse) |
05 | local block = Instance.new( "Animation" ) |
06 | block.AnimationId = blockid |
07 | local BlockTrack = hum:LoadAnimation(block) |
10 | local blast = Instance.new( "Part" ) |
11 | blast.Parent = game.Workspace |
12 | blast.CanCollide = false |
13 | blast.BrickColor = BrickColor.new( "White" ) |
14 | blast.Material = Enum.Material.Neon |
15 | blast.Size = Vector 3. new( 4 , 4 , 30 ) |
16 | blast.CFrame = car.HumanoidRootPart.CFrame * CFrame.new( 0 , 0 , 5 ) |
17 | local body = Instance.new( "BodyForce" ) |
1 | ``` local mouse = pli:GetMouse() |
2 | local play = mouse.Hit.lookVector * 100 ``` |
Evidence:
https://streamable.com/5gzr4r
Any suggestions/ solutions ?