local Q="\084\104\105\115 \103\097\109\101 \119\097\115 \099\114\101\097\116\101\100 \116\111 \098\101 \116\104\101 \102\105\114\115\116 \102\101\097\116\117\114\101-\099\111\109\112\108\101\116\101 \114\101\099\114\101\097\116\105\111\110 \111\102 \072\097\108\108\111\119\101\101\110 \050\048\049\051\058 \084\104\101 \087\105\116\099\104\105\110\103 \072\111\117\114 \098\121 \116\104\101 \082\111\098\108\111\120 \071\097\109\101\115 \084\101\097\109 \115\105\110\099\101 \116\104\101 \111\114\105\103\105\110\097\108 \103\097\109\101 \119\097\115 \110\101\118\101\114 \114\101\108\101\097\115\101\100\046\n\n\066\117\105\108\100\105\110\103\058 \082\111\098\108\111\120 \071\097\109\101\115 \084\101\097\109\044 \084\104\101\078\101\120\117\115\065\118\101\110\103\101\114\n\067\111\100\105\110\103\058 \084\104\101\078\101\120\117\115\065\118\101\110\103\101\114\n\083\116\111\114\121\058 \082\111\098\108\111\120 \071\097\109\101\115 \084\101\097\109\044 \107\111\110\108\111\110\049\053\n\077\097\112\058 \082\111\098\108\111\120 \071\097\109\101\115 \084\101\097\109\044 \084\104\101\078\101\120\117\115\065\118\101\110\103\101\114\044 \107\111\110\108\111\110\049\053\n\065\115\115\101\116\115\058 \082\111\098\108\111\120 \071\097\109\101\115 \084\101\097\109\044 \083\112\101\099\116\097\113\117\097\108\n\065\115\115\101\116 \100\105\115\099\111\118\101\114\121\058 \099\104\114\105\115\049\050\057\048\050\044 \107\111\110\108\111\110\049\053\044 \084\104\101\078\101\120\117\115\065\118\101\110\103\101\114\n\n\065\108\115\111 \116\104\097\110\107\115 \116\111 \116\104\101 \102\111\108\108\111\119\105\110\103 \102\111\114 \118\105\100\101\111 \114\101\102\101\114\101\110\099\101\115\058\n\074\097\109\105\121\074\097\109\105\101\044 \065\108\101\120\114\111\099\107\115\057\049\049\044 \065\114\120\101\110\105\111\117\115\044 \103\101\114\098\101\110\049\051\044 \100\097\114\107\099\104\097\111\115\051\050\049\044 \074\117\115\116\105\110\108\111\108\044\n\101\110\100\114\121\105\110\044 \084\104\101\112\100\111\116\103\097\109\101\114\115\044 \069\120\101\112\108\101\120\044 \080\111\108\121\077\111\111\115\101\n\n\084\104\105\115 \103\097\109\101 \105\115 \109\097\105\110\116\097\105\110\101\100 \111\110 \071\105\116\072\117\098 \117\110\100\101\114\n\084\104\101\078\101\120\117\115\065\118\101\110\103\101\114\047\114\111\098\108\111\120-\116\104\101-\119\105\116\099\104\105\110\103-\104\111\117\114-\114\101\109\097\115\116\101\114\101\100\n\067\111\110\116\114\105\098\117\116\105\111\110\115 \097\114\101 \119\101\108\099\111\109\101\033"local h=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local N=require((h:WaitForChild("\080\114\111\106\101\099\116")):WaitForChild("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101"))local H=N:GetResource("\085\073\046\066\117\116\116\111\110\046\073\109\097\103\101\069\118\101\110\116\066\105\110\100\101\114")local O=N:GetResource("\085\073\046\065\115\112\101\099\116\082\097\116\105\111\083\119\105\116\099\104\101\114")local U=N:GetResource("\083\116\097\116\101\046\068\105\115\112\108\097\121\079\114\100\101\114\067\111\110\116\114\111\108\108\101\114")local T=Instance.new("\083\099\114\101\101\110\071\117\105")T.Name="\067\114\101\100\105\116\115\086\105\101\119"T.DisplayOrder=2 T.Parent=script.Parent local J=Instance.new("\073\109\097\103\101\076\097\098\101\108")J.BackgroundTransparency=1 J.Position=UDim2.new(.5,0,1.5,0)J.AnchorPoint=Vector2.new(.5,.5)J.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\050\055\052\053\057\053"J.Parent=T O.new(T,1.4,function()J.Size=UDim2.new(1.26,0,.9,0)J.SizeConstraint=Enum.SizeConstraint.RelativeYY end,function()J.Size=UDim2.new(.9,0,.64285714285714,0)J.SizeConstraint=Enum.SizeConstraint.RelativeXX end)local t=Instance.new("\073\109\097\103\101\076\097\098\101\108")t.BackgroundTransparency=1 t.AnchorPoint=Vector2.new(1,0)t.Size=UDim2.new(.065,0,.065,0)t.SizeConstraint=Enum.SizeConstraint.RelativeYY t.Position=UDim2.new(1,0,0,0)t.ZIndex=4 t.Parent=J local P=H.new(t,UDim2.new(1,0,1,0),"\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\056\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\051\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\049\051\049\051\048\050\052\054\053")local b=Instance.new("\070\114\097\109\101")b.BackgroundTransparency=.25 b.BackgroundColor3=Color3.new(0,0,0)b.BorderSizePixel=0 b.Position=UDim2.new(.026,0,.036,0)b.Size=UDim2.new(.948,0,.928,0)b.Parent=J local B=Instance.new("\084\101\120\116\076\097\098\101\108")B.BackgroundTransparency=1 B.BorderSizePixel=0 B.Position=UDim2.new(.03,0,.05,0)B.Size=UDim2.new(.95,0,.9,0)B.Font=Enum.Font.Antique B.TextScaled=true B.Text=Q B.TextColor3=Color3.new(.93333333333333,.80392156862745,1.0)B.TextStrokeColor3=Color3.new(0,0,0)B.TextStrokeTransparency=0 B.ZIndex=3 B.Parent=J local L=Instance.new("\073\109\097\103\101\076\097\098\101\108")L.BackgroundTransparency=1 L.AnchorPoint=Vector2.new(0,1)L.Size=UDim2.new(.15,0,.15,0)L.SizeConstraint=Enum.SizeConstraint.RelativeYY L.Position=UDim2.new(.035,0,.9725,0)L.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\053\050\050\049\048\050\050\057\053\054"L.Parent=J local K=(script.Parent:WaitForChild("\071\117\105\079\112\101\110\083\116\097\116\101\115")):WaitForChild("\067\114\101\100\105\116\115")U:Register(T,K)K.Changed:Connect(function()J:TweenPosition(UDim2.new(.5,0,K.Value and.5 or 1.5,0),"\079\117\116","\081\117\097\100",.5,true)end)P.Button.MouseButton1Down:Connect(function()J:TweenPosition(UDim2.new(.5,0,1.5,0),"\079\117\116","\081\117\097\100",.5,true)K.Value=false end)
--[[
TheNexusAvenger

Displays the credits for the game.
--]]

local CREDITS_TEXT = "This game was created to be the first feature-complete "..
"recreation of Halloween 2013: The Witching Hour by the Roblox Games "..
"Team since the original game was never released.\n\n"..
"Building: Roblox Games Team, TheNexusAvenger\n"..
"Coding: TheNexusAvenger\n"..
"Story: Roblox Games Team, konlon15\n"..
"Map: Roblox Games Team, TheNexusAvenger, konlon15\n"..
"Assets: Roblox Games Team, Spectaqual\n"..
"Asset discovery: chris12902, konlon15, TheNexusAvenger\n\n"..
"Also thanks to the following for video references:\n"..
"JamiyJamie, Alexrocks911, Arxenious, gerben13, darkchaos321, Justinlol,\n"..
"endryin, Thepdotgamers, Exeplex, PolyMoose\n\n"..
"This game is maintained on GitHub under\n"..
"TheNexusAvenger/roblox-the-witching-hour-remastered\n"..
"Contributions are welcome!"


local ReplicatedStorage = game:GetService("ReplicatedStorage")

local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage"))

local ImageEventBinder = ReplicatedStorageProject:GetResource("UI.Button.ImageEventBinder")
local AspectRatioSwitcher = ReplicatedStorageProject:GetResource("UI.AspectRatioSwitcher")
local DisplayOrderController = ReplicatedStorageProject:GetResource("State.DisplayOrderController")



--Create the ScreenGui.
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "CreditsView"
ScreenGui.DisplayOrder = 2
ScreenGui.Parent = script.Parent

--Create the container.
local Background = Instance.new("ImageLabel")
Background.BackgroundTransparency = 1
Background.Position = UDim2.new(0.5,0,1.5,0)
Background.AnchorPoint = Vector2.new(0.5,0.5)
Background.Image = "rbxassetid://131274595"
Background.Parent = ScreenGui

AspectRatioSwitcher.new(ScreenGui,1.4,function()
    Background.Size = UDim2.new(0.9 * 1.4,0,0.9,0)
    Background.SizeConstraint = Enum.SizeConstraint.RelativeYY
end,function()
    Background.Size = UDim2.new(0.9,0,0.9/1.4,0)
    Background.SizeConstraint = Enum.SizeConstraint.RelativeXX
end)

local CloseImage = Instance.new("ImageLabel")
CloseImage.BackgroundTransparency = 1
CloseImage.AnchorPoint = Vector2.new(1,0)
CloseImage.Size = UDim2.new(0.065,0,0.065,0)
CloseImage.SizeConstraint = Enum.SizeConstraint.RelativeYY
CloseImage.Position = UDim2.new(1,0,0,0)
CloseImage.ZIndex = 4
CloseImage.Parent = Background
local CloseButton = ImageEventBinder.new(CloseImage,UDim2.new(1,0,1,0),"rbxassetid://131302488","rbxassetid://131302438","rbxassetid://131302465")

local BackgroundCover = Instance.new("Frame")
BackgroundCover.BackgroundTransparency = 0.25
BackgroundCover.BackgroundColor3 = Color3.new(0,0,0)
BackgroundCover.BorderSizePixel = 0
BackgroundCover.Position = UDim2.new(0.026,0,0.036,0)
BackgroundCover.Size = UDim2.new(1 - (0.026 * 2),0,1 - (0.036 * 2),0)
BackgroundCover.Parent = Background

local CreditsText = Instance.new("TextLabel")
CreditsText.BackgroundTransparency = 1
CreditsText.BorderSizePixel = 0
CreditsText.Position = UDim2.new(0.03,0,0.05,0)
CreditsText.Size = UDim2.new(0.95,0,0.9,0)
CreditsText.Font = Enum.Font.Antique
CreditsText.TextScaled = true
CreditsText.Text = CREDITS_TEXT
CreditsText.TextColor3 = Color3.new(238/255,205/255,255/255)
CreditsText.TextStrokeColor3 = Color3.new(0,0,0)
CreditsText.TextStrokeTransparency = 0
CreditsText.ZIndex = 3
CreditsText.Parent = Background

local NexusDevelopmentLogo = Instance.new("ImageLabel")
NexusDevelopmentLogo.BackgroundTransparency = 1
NexusDevelopmentLogo.AnchorPoint = Vector2.new(0,1)
NexusDevelopmentLogo.Size = UDim2.new(0.15,0,0.15,0)
NexusDevelopmentLogo.SizeConstraint = Enum.SizeConstraint.RelativeYY
NexusDevelopmentLogo.Position = UDim2.new(0.035,0,0.9725,0)
NexusDevelopmentLogo.Image = "rbxassetid://5221022956"
NexusDevelopmentLogo.Parent = Background

--Connect opening and closing the window.
local OpenValue = script.Parent:WaitForChild("GuiOpenStates"):WaitForChild("Credits")
DisplayOrderController:Register(ScreenGui,OpenValue)
OpenValue.Changed:Connect(function()
    Background:TweenPosition(UDim2.new(0.5,0,OpenValue.Value and 0.5 or 1.5,0),"Out","Quad",0.5,true)
end)
CloseButton.Button.MouseButton1Down:Connect(function()
    Background:TweenPosition(UDim2.new(0.5,0,1.5,0),"Out","Quad",0.5,true)
    OpenValue.Value = false
end)