Nothing in the following script works. Literally nothing. This is my game file (btw I dunno how to make clickable links) : Cameras :https://gyazo.com/f1800cf4a28fbe3ebba721a72b40d5b1 Gui: https://gyazo.com/9e75f6d39f5d21625661dfd2d5c64a9f Entire script (very long):
local player = game:GetService("Players").LocalPlayer
local camera = workspace.CurrentCamera
-- Car folders
local bmwfolder = script.Parent:WaitForChild("bmw")
local gtrfolder = script.Parent:WaitForChild("gtr")
local hoonfolder = script.Parent:WaitForChild("hoon")
local mcfolder = script.Parent:WaitForChild("mc")
local porfolder = script.Parent:WaitForChild("por")
local s13folder = script.Parent:WaitForChild("s13")
--bmw folder events
bmwfolder.GoRightShowPOR.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild("Cameras"):WaitForChild("PORPart").CFrame
bmwfolder.GoRightShowPOR.Visible = false
bmwfolder.GoLeftShowHOON.Visible = false
porfolder.GoLeftShowBMW.Visible = true
porfolder.GoRightShowMC.Visible = true
end)
bmwfolder.GoLeftShowHOON.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild('Cameras'):WaitForChild("HOONPart").CFrame
bmwfolder.GoRightShowPOR.Visible = false
bmwfolder.GoLeftShowHOON.Visible = false
porfolder.GoLeftShowBMW.Visible = true
porfolder.GoRightShowMC.Visible = true
end)
--gtr folder events
gtrfolder.GoLeftShowMC.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild('Cameras'):WaitForChild("MCPart").CFrame
gtrfolder.GoRightShowS13.Visible = false
gtrfolder.GoLeftShowMC.Visible = false
mcfolder.GoLeftShowPOR.Visible = true
mcfolder.GoRightShowGTR.Visible = true
end)
gtrfolder.GoRightShowS13.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild('Cameras'):WaitForChild("S13Part").CFrame
gtrfolder.GoRightShowS13.Visible = false
gtrfolder.GoLeftShowMC.Visible = false
s13folder.GoLeftShowGTR.Visible = true
s13folder.GoRightShowHOON.Visible = true
end)
--mc folder events
mcfolder.GoLeftShowPOR.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild('Cameras'):WaitForChild("PORPart").CFrame
mcfolder.GoRightShowGTR.Visible = false
mcfolder.GoLeftShowPOR.Visible = false
porfolder.GoLeftShowBMW.Visible = true
porfolder.GoRightShowMC.Visible = true
end)
mcfolder.GoRightShowGTR.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild('Cameras'):WaitForChild("PORPart").CFrame
mcfolder.GoRightShowGTR.Visible = false
mcfolder.GoLeftShowPOR.Visible = false
gtrfolder.GoLeftShowMC.Visible = true
gtrfolder.GoRightShowS13.Visible = true
end)
--s13 folder events
s13folder.GoRightShowHOON.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild('Cameras'):WaitForChild("HOONPart").CFrame
s13folder.GoRightShowHOON.Visible = false
s13folder.GoLeftShowGTR.Visible = false
hoonfolder.GoLeftShowS13.Visible = true
hoonfolder.GoRightShowBMW.Visible = true
end)
s13folder.GoLeftShowGTR.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild('Cameras'):WaitForChild("GTRPart").CFrame
s13folder.GoRightShowHOON.Visible = false
s13folder.GoLeftShowGTR.Visible = false
hoonfolder.GoLeftShowS13.Visible = true
hoonfolder.GoRightShowBMW.Visible = true
end)
--por folder events
porfolder.GoLeftShowBMW.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild('Cameras'):WaitForChild("BMWPart").CFrame
porfolder.GoRightShowMC.Visible = false
porfolder.GoLeftShowBMW.Visible = false
bmwfolder.GoRightShowPOR.Visible = true
bmwfolder.GoLeftShowHOON.Visible = true
end)
porfolder.GoRightShowMC.MouseButton1Down:Connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace:WaitForChild('Cameras'):WaitForChild("MCPart").CFrame
porfolder.GoRightShowMC.Visible = false
porfolder.GoLeftShowBMW.Visible = false
mcfolder.GoRightShowGTR.Visible = true
mcfolder.GoLeftShowPOR.Visible = true
end)
