humanoid.WalkToPoint = game.Workspace.Small.GOTO.Position
wait(0.4)
local lookpart = game.Workspace.Small
local RS = game:GetService("RunService")
local plr = game.Players.LocalPlayer
if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.Position, lookpart.Position)
end
the problem is that when the lookat part of the script happens the player just snaps thus making it not that good, i want it to be smooth , the script works right now BUT the only prblem is the snapping
You will need to tween the CFrame to make it look smooth. Here we go, there’s your example code.
local TS = game:GetService("TweenService")
humanoid.WalkToPoint = game.Workspace.Small.GOTO.Position
wait(0.4)
local lookpart = game.Workspace.Small
local RS = game:GetService("RunService")
local plr = game.Players.LocalPlayer
if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
TS:Create(Character.HumanoidRootPart, TweenInfo.new(.5), {["CFrame"] = CFrame.new(plr.Character.HumanoidRootPart.CFrame.Position, lookpart.Position)}):Play()
end
sorry for the late response, but now its not working as intended , or in other words its not how it used to be, i just wanted it to be exactly as it was but not snapping , now its completly different, ill try some other methods and go back to you