i had a script that would insert a script into my screen gui but it doesnt work heres my script: and in the output it was saying "LevelGui is not a valid member of StarterGui"
script.Parent.Touched:connect(function(hit) if hit ~= nil then local char = hit.Parent if char ~= nil then local humanoid = char:FindFirstChild("Humanoid") if humanoid ~= nil then game.StarterGui.LevelGUI = Instance.new ("Script") end end end end)
and "LevelGui" is a ScreenGui that i added in the StarterGuy