Hi, I want to move the player by clicking a button I already made a script of it by moving
it’s HumanoidRootPart but It doesn’t move smoothly
Here is my script
local player = game.Players.LocalPlayer
local char = player.Character
local hum = char:WaitForChild("Humanoid")
local humRP = char:WaitForChild("HumanoidRootPart")
local button = script.Parent
button.MouseButton1Click:Connect(function()
humRP.CFrame = CFrame.new(20,3,0)
end)
like when the player click the button it will run on a specific area smoothly (like running)
the problem I’m having right now is that player will teleport when they click button
sorry for my bad english