Hello,
I am working on a game similar to the old isometric fallouts and was wondering about something. In those games, it utilized a click to move system. And I realize roblox has that same function, but I was wondering if there is any way to make it the default move system? Thanks in advance. Can’t really find any code snippets or api on this.
I don’t know if humanoid:MoveTo works on a player but if a humanoid exist it should.
Disable the player controls. Get the mouse position then do a raycast. then do move the player using humanoid:MoveTo and pathfinding maybe. If its not a humanoid then just use tween.
local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local mouse = player:GetMouse()
local function onLeftMouseButtonDown()
if mouse.Target then
humanoid:MoveTo(mouse.Hit.Position)
end
end
mouse.Button1Down:Connect(onLeftMouseButtonDown)