-
What do you want to achieve? I want to understand what this error means and how I can fix it
-
What is the issue? here’s the error:
Workspace.hopeshusbvnd.Hydrokinesis:48: invalid argument #2 to 'new' (Vector3 expected, got Instance)
-
What solutions have you tried so far? I’ve tried checking devHub but it didn’t have a solution to what I needed
here’s the part where it errors:
UIS.InputEnded:Connect(function(input, gameprocessed)
if input.KeyCode == Enum.KeyCode.Q then
qPressed = false
bv:Destroy()
local moveVelocity = Instance.new("BodyVelocity", waterBall)
bv.Velocity = CFrame.new(waterBall.Position, mouse).LookVector * 100
waterBall.Touched:Connect(function(Touched)
if Touched:isDescendantOf(character) then return end
splash.Position = waterBall.Position
waterBall:Destroy()
splash.Parent = workspace
end)
end
end)
all help is appreciated