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! I want to transfar all my server scripts into local scripts and have them work
What is the issue? Include screenshots / videos if possible! Only server scripts are working in my surface gui local scripts do not work
What solutions have you tried so far? Did you look for solutions on the Developer Hub? changed all my scripts to local script and then reverted them because they where not working
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 Frame = script.Parent.SurfaceGui local CurrentFrame = nil for _, button in pairs(Frame:GetChildren()) do print(button.Name) if button:IsA("TextButton") then button.MouseButton1Click:Connect(function() local relatedFrame = nil for _, frame in ipairs(Frame:GetChildren()) do if frame:IsA("Frame") then if frame.Name == button.Name then relatedFrame = frame end end end if relatedFrame then if relatedFrame == CurrentFrame then CurrentFrame.Visible = false CurrentFrame = nil elseif CurrentFrame then CurrentFrame.Visible = false CurrentFrame = relatedFrame CurrentFrame.Visible = true else CurrentFrame = relatedFrame CurrentFrame.Visible = true end end end) end end all the scripts in my gui are not working if they are local
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.