local replicatedstorage = game:GetService("ReplicatedStorage")
local runservice = game:GetService("RunService")
replicatedstorage.Events.pinkPower2.OnServerEvent:Connect(function(player, mousePos)
local character = player.Character
local pinkpower21 = game.ReplicatedStorage.Effects.PinkPower21:Clone()
pinkpower21.Parent = workspace.ignored
pinkpower21.Position = character.LeftHand.position
local connection
connection = runservice.Heartbeat:Connect(function(dt)
pinkpower21.CFrame = CFrame.new(pinkpower21.Position) + mousePos.LookVector <- where the error is
end)
end)
✓ ANSWER ACCEPTED
LookVector is not a valid member of Vector3?
1 answer
✓ Accepted answer
Lookvector is only in CFrames For your case you have to turn mousepos into a CFrame or in the remote event send mouse.Hit instead mouse.hit returns a cframe
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
how do i turn mousePos into a CFrame??
As I said instead of returning Mouse.Hit.Position return the Cframe it self which is Mouse.Hit