Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Where is ScreenGui == true in my script? (I'm lost in my own script XDD)

I got lost in my own script. I mean this script is very old and I can't find the wanted code and I wasn't good at things like puzzles. Can anyone find a script fragment where ScreenGui becomes true?.If I don't find it in a few hours, someone will attach to it.

I've got a script underneath. Good luck!

script.Parent.Parent.ScreenGui.ImageButton.Visible = false
script.Parent.Parent.ScreenGui.InviteButton.Visible = false
script.Parent.Parent.ScreenGui.ShopButton.Visible = false



script.Parent.TextButton.Visible = true
local tween = game:GetService("TweenService")
local cam = game.Workspace.Camera
local scenes = game.Workspace.CameraScenes
local currentTween = nil
local looping = true
local RemoveEvent = game.ReplicatedStorage.RemoteEvents.ChangeTeam
local DORColor = "Really Red"
local AntiDORColor = "Really Blue"
local VisitorsColor = "White"
local Blur = game.Lighting.Blur
Blur.Enabled = true

repeat wait() until cam.CameraSubject ~= nil
cam.CameraType = Enum.CameraType.Scriptable

script.Parent.TextButton.MouseButton1Click:Connect(function()
	script.Parent.TextButton.Visible = false
	script.Parent.DORButton.Visible = true
	script.Parent.AntiDOR.Visible = true
	script.Parent.VisitorButton.Visible = true
	script.Parent.TextLabel.Visible = true
	script.Parent.Interpol.Visible = true
end)


script.Parent.DORButton.MouseButton1Click:Connect(function()
	RemoveEvent:FireServer(BrickColor.new("Really red"))
	cam.CameraType = Enum.CameraType.Custom
	looping = false
	currentTween:Pause()
	script.Parent.Parent.StartGui.Enabled = false
	Blur.Enabled = false
	game.Workspace.Music2.Volume = 0.4
	script.Parent.Parent.ScreenGui.ImageButton.Visible = true
	script.Parent.Parent.ScreenGui.InviteButton.Visible = true
	script.Parent.Parent.ScreenGui.ShopButton.Visible = true
	
end)

script.Parent.AntiDOR.MouseButton1Click:Connect(function()
	RemoveEvent:FireServer(BrickColor.new("Really blue"))
	cam.CameraType = Enum.CameraType.Custom
	looping = false
	currentTween:Pause()
	script.Parent.Parent.StartGui.Enabled = false
	Blur.Enabled = false
	game.Workspace.Music2.Volume = 0.4
	script.Parent.Parent.ScreenGui.ImageButton.Visible = true
	script.Parent.Parent.ScreenGui.InviteButton.Visible = true
	script.Parent.Parent.ScreenGui.ShopButton.Visible = true
	
end)

script.Parent.VisitorButton.MouseButton1Click:Connect(function()
	RemoveEvent:FireServer(BrickColor.new("White"))
	cam.CameraType = Enum.CameraType.Custom
	looping = false
	currentTween:Pause()
	script.Parent.Parent.StartGui.Enabled = false
	Blur.Enabled = false
	game.Workspace.Music2.Volume = 0.4
	script.Parent.Parent.ScreenGui.ImageButton.Visible = true
	script.Parent.Parent.ScreenGui.InviteButton.Visible = true
	script.Parent.Parent.ScreenGui.ShopButton.Visible = true
	
end)

script.Parent.Interpol.MouseButton1Click:Connect(function()
	RemoveEvent:FireServer(BrickColor.new("Pastel light blue"))
	cam.CameraType = Enum.CameraType.Custom
	looping = false
	currentTween:Pause()
	script.Parent.Parent.StartGui.Enabled = false
	Blur.Enabled = false
	game.Workspace.Music2.Volume = 0.4
	script.Parent.Parent.ScreenGui.ImageButton.Visible = true
	script.Parent.Parent.ScreenGui.InviteButton.Visible = true
	script.Parent.Parent.ScreenGui.ShopButton.Visible = true
	
end)

while looping do
	for i, v in pairs(scenes:GetChildren()) do
		if looping == false then return end
		cam.CFrame = v["1"].CFrame
		currentTween = tween:Create(cam, TweenInfo.new(10), {CFrame = v["2"].CFrame})
		currentTween:Play()
		wait(10)
	end
end

ATTENTION! This is probably something else, and I added it after discovering the mistake.

script.Parent.Parent.ScreenGui.ImageButton.Visible = true
	script.Parent.Parent.ScreenGui.InviteButton.Visible = true
	script.Parent.Parent.ScreenGui.ShopButton.Visible = true

GOOD LUCK!

1 answer

✓ Accepted answer

You can press Ctrl + F to search through a big block of text (I like to use this a lot when revising essays).

This discussion is preserved as it was. New answers, comments, and votes are closed.