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

Model goes towards players camera for some reason using the mouse.hit.p?

Asked by 6 years ago
Edited 6 years ago

http://www.youtube.com/watch?v=HAkGApwLNBw&feature=youtu.be

link to video showing the problem

For some reason my model will go towards the players camera, I don't know why?

--Variables
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local Part = game.Workspace.Farm
local Debounce = false
--Move Part to Mouse Position Always

while true do
        mouse.TargetFilter = game.Workspace.Water
        Part.Position = mouse.Hit.p
        wait()
        print(mouse.Hit.p)

            mouse.Button1Down:connect(function()
                Debounce = true
                if mouse.Target == nil then
                    return
                end
                Part:Clone().Parent = game.Workspace
                Part.Anchored = true
                return
            end)

            if Debounce == true then
                --break
            end

        end





Answer this question