Player controled moving character

  1. What do you want to achieve? So I have been thinking of some stuff to script, and I thought of combo system, and player controled -moving a roblox dummy.

  2. What is the issue? I’m not really sure how to make the dummy move forwards, backwards, and sideways(i am a intermediate scripter, not advanced so i may not know everything)

  3. What solutions have you tried so far? But I thought about doing body velocity, and I attempted making a part ahead of the NPC and when W is pressed it does a Humanoid:MoveTo() function, but that did not work, and no output errors occurred…

RunService = game:FindFirstChild("Run Service")
CameraPart = workspace.Stand.CamPart
local uis = game:GetService("UserInputService")
local plr = game:GetService("Players")
local Stand = workspace.Stand


RunService.RenderStepped:Connect(function()
	workspace.CurrentCamera.CFrame = workspace.Stand.CamPart.CFrame
end)



uis.InputBegan:Connect(function(InputKey, GPE)
	if InputKey.UserInputType == Enum.KeyCode.W then
		Stand.Humanoid:MoveTo(Stand.HumanoidRootPart.Forwards.Position)
	end
end)

NOTE : this is a local script in starterpack

I’m just wondering what I could use to make this, or if I am doing the right thing and just need to fix my code. :grin:

ALSO IF YOU HAVE FOUND ANY POST REGARDING THIS I WOULD LOVE TO SEE IT!

1 Like