I thought I was getting somewhere, but for some reason, the model will move to the player once spawned, and that's it.. when you walk into the model it will move up and you can walk under it, how can I altar this to get the desired affects?
playerMouse = game:GetService("Players").LocalPlayer:GetMouse()
player = game:GetService("Players")
local lastHit = nil
local lastTarget = nil
model = workspace.Buildings.Walls.StoneWall
model:MoveTo(Vector3.new(playerMouse.Hit.p))
lastTarget = playerMouse.Target
playerMouse.TargetFilter = model
playerMouse.Move:connect(function()
if (playerMouse.Hit ~= lastHit) then
lastHit = playerMouse.Hit
model:MoveTo(Vector3.new(playerMouse.Hit.p))
end
end)
