Hello everyone!, I have a problem about the UIListLayout
What do you want to achieve? I want to make a UIListLayout that is parented to a frame to list all of the items inside the folder inside the Workspace.
What is the issue? I can’t do it.
What solutions have you tried so far? I looked for some Solution, it didn’t really help me.
-- Local Script
local button = script.Parent
local bots = workspace.Bots
local db = script.Parent.Debounce
local event = button:WaitForChild("Event")
button.MouseButton1Click:Connect(function()
local stopped = bots.Stopped
local running = bots.CanRun
if db.Value == false then db.Value = true
event:FireServer(stopped, running)
button.Text = "✓"
else
button.Text = " "
db.Value = false
end
end)
-- Server Script
local event = script.Parent:WaitForChild("Event")
local db = script.Parent.Debounce
event.OnServerEvent:Connect(function(plr, anchor, run)
if not anchor.Value and run.Value and db.Value == true then db.Value = false
anchor.Value = true
run.Value = false
else
anchor.Value = false
run.Value = true
db.Value = true
end
end)
--Server Script (isAnchored), this is the script that is located inside the bot
local stopped = script.Parent.Parent.Stopped
if stopped.Value == true then
root = script.Parent:WaitForChild("HumanoidRootPart")
root.Anchored = true
else
root.Anchored = false
end