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)
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