Hello everyone! So I made a unique game. Where you make an obby and a bot plays it not the player.So I have to ask something about this.The bot is not jumping even if the jump function for the bot is included.
local torse = script.Parent.LowerTorso
local pathservice = game:GetService("PathfindingService")
game.Workspace.RoundStats.Changed:Connect(function()
if workspace.RoundStats.Value == true then
local path = pathservice:CreatePath()
path:ComputeAsync(script.Parent.HumanoidRootPart.Position,game.Workspace.endpoint.Position)
local waypoints = path:GetWaypoints()
for i,v in pairs(waypoints) do
if v.Action == Enum.PathWaypointAction.Jump then
human:ChangeState(Enum.HumanoidStateType.Jumping)
end
local part = Instance.new("Part",workspace)
part.Size = Vector3.new(0.5,0.5,0.5)
part.Anchored = true
part.CanCollide = false
part.Material = Enum.Material.Neon
part.BrickColor = BrickColor.new("White")
part.Position = v.Position + Vector3.new(0,1.5,0)
human:MoveTo(v.Position)
human.MoveToFinished:Wait(2)
end
if path.Status == Enum.PathStatus.Success then
game:GetService("Chat"):Chat(script.Parent.Head,"so easy")
else
game:GetService("Chat"):Chat(script.Parent.Head,"aww its so hard")
end
end
end)
Yeah so anyone knows how to fix it? or is it a roblox bug which occurs sometimes