Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

error when using look vector. how do I fix this?

Asked by 3 years ago
local player = game.Players.LocalPlayer
local event = game.ReplicatedStorage.RemoteEvent
local mouse = player:GetMouse()
local part = game.Workspace.FollowPart
local followPart = game.ReplicatedStorage.Part
local e = mouse.Hit.p
local f = true
if f == false then part.Transparency = 1
    end
script.Parent.Activated:Connect(function()

        f = true
        if f == true then
    part.Transparency = 0.6
        mouse.Move:Connect(function()
part.CFrame = CFrame.new(mouse.Hit.p).lookVector()


            part.Size = followPart.Size
            part.BrickColor = followPart.BrickColor
        end)
        end
end)

~~~~~~~~~~~~~~~~~ Players.bittyboy1234.Backpack.Tool.FollowPart:17: attempt to call a Vector3 value

 its giving me this error from this line of code:~~~~~~~~~~~~~~~~~
 part.CFrame = CFrame.new(mouse.Hit.p).lookVector()

how do I fix this?

0
Players.bittyboy1234.Backpack.Tool.FollowPart:17: attempt to call a Vector3 value this is the error bittyboy1234 91 — 3y
0
What exactly are you trying to do here..? xXLegendGamerz16Xx 231 — 3y

Answer this question