Hello everyone,
I have been working on a New Project and Open Project system for my Visual Scripting plugin. I have managed to get it partially working by searching for specific IDs in a folder for specific scripts. However, I am currently stuck on making it open the specific project with all the blocks placed in the Viewport using the unique GUIDs found under the script for editing within the plugin. Same thing goes for New Projects.
Any suggestions or insights would be greatly appreciated!
local OpenButton = script.Parent
local OpenScriptFrame = script.Parent.Parent
local TextBox = script.Parent.Parent.TextBox
local ValidIDReminder = script.Parent.Parent.Parent.ValidIDReminder
local RS = game.ReplicatedStorage
local NoFolderFoundReminder = script.Parent.Parent.Parent.NoFolderReminder
OpenButton.MouseButton1Click:Connect(function()
TextBox.Text = TextBox.Text
if TextBox.Text == "" then
ValidIDReminder.Visible = true
elseif TextBox.Text ~= nil then
if RS:FindFirstChild("BloxCodeScripts") == nil then
NoFolderFoundReminder.Visible = true
else
for _, id in pairs(RS:FindFirstChild("BloxCodeScripts"):GetDescendants()) do
if id.ClassName == "StringValue" then
if id.Value == TextBox.Text then
print("id found")
elseif id.Value ~= TextBox.Text then
ValidIDReminder.Visible = true
end
end
end
end
end
end)