I do not want to just Teleport, more like I want to swiftly noclip through my map and reach coordinates, but cant seem to do it! Here is my current code:
wait(3)
local you = game.Players.LocalPlayer.Character:GetChildren()
local target = game.Workspace["target"].HumanoidRootPart.Position
for i,v in pairs(you) do
v.CanCollide = false
game.Players.LocalPlayer.Character.Humanoid:ChangeState(10)
v.Position = v.Position + Vector3.new(.01,.01,.01)
end
I have also tried just MoveTo, and high walkspeeds, simply wont work, and would just be an autowalk to the location, any help will do, thanks.
EDIT: Also, my old code was a repeat until hit the coordinates, but no matter the code it either flings me, or just walks there.
EDIT #2: New script:
repeat wait() until game.Loaded
local you = game.Players.LocalPlayer.Character
local humanoid = you.Humanoid
local target = Vector3.new(-30.91, 27.05, -89.3)
local model = you:GetChildren()
local apples ={}
for i=1,#model do
if model[i].Name == "LowerTorso" or model[i].Name == "UpperTorso" then
table.insert(apples, model[i])
end
end
for i=1,#model do
if model[i].Name == "Head" or model[i].Name == "HumanoidRootPart" then
table.insert(apples, model[i])
end
end
repeat
wait()
humanoid.WalkSpeed = 150
humanoid:ChangeState(18)
humanoid:MoveTo(target)
for i,v in pairs(apples) do
v.CanCollide = false
print(i)
print(v)
end
until you.UpperTorso.Position == target
