You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
Pathfinding GUI
- What is the issue? Include screenshots / videos if possible!
I’m trying to make a gui with 2 buttons: Create waypoint and Navigate through them.
The issue is, my knowledge of scripting doesn’t help me write some things.
I make a table, and i don’t know how to put the oldest table object in a variable, and the most recent one.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Yes, i did try searching, but it didnt help.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local waypoints={}
local function AddWaypoint()
local point=Instance.new("Part", game.Workspace)
point.Position=root.Position
point.Anchored=true
point.Shape=Enum.PartType.Ball
point.Transparency=0.7
table.insert(waypoints, point)
--when answered, please put the older and recent table objects in 2 variables: local old, local new
end