function ChangeStyle(room,Modifed)
Modifed=Modifed or 'Idk'
wait(0)
if Modifed == 'idk' then
for i,v in pairs(room.Assets:GetDescendants()) do
if v.Name == "idk" then
v:Destroy()
end
end
return
end
--Change Light Model
for i,v in pairs(room.Assets.Light_Fixtures:GetDescendants()) do
if v.Name == "LightStand" then
if game.ReplicatedStorage.GameData.LatestRoom.Value < 51 then
local torch = LightReplaceModel:Clone()
torch.Parent = room.Assets.Light_Fixtures
torch.LightFixture.PointLight.Changed:Connect(function()
torch.LightFixture.Neon.atachm["Ok you cannot tell me this isnt good"].Enabled = torch.LightFixture.PointLight.Enabled
torch.LightFixture.Neon["Bright sh idfk"].ParticleEmitter.Enabled = torch.LightFixture.PointLight.Enabled
torch.LightFixture:WaitForChild('Dust').ParticleEmitter.Enabled = torch.LightFixture.PointLight.Enabled
end)
torch:PivotTo(v:GetPivot())
v:Destroy()
else
v:Destroy()
end
end
end
--FUNCTIONEND
end
--Change Currentroom
ChangeStyle(roomlatestworkspace)
spawn(function()
game.ReplicatedStorage.GameData.LatestRoom.Changed:Wait()
print("Something much more darker has begun.")
end)
game.ReplicatedStorage.GameData.LatestRoom.Changed:Connect(function(v)
if v > 52 or Bravo then
ChangeStyle(workspace.CurrentRooms[game.ReplicatedStorage.GameData.LatestRoom.Value],'idk')
end
if v == 49 then
message2('The Library (Spooky)','rbxassetid://1835274270')
elseif v > 64 and workspace.CurrentRooms[v]:FindFirstChild('Assets'):FindFirstChild('Bed_Infirmary') and v < 80 then
Sound = GetGitSoundID("https://github.com/Sosnen/Ping-s-Dumbass-projects-/blob/main/Ambience_Infirmary_Entrence.mp3?raw=true",'infermy')
message2('The Infirmary',Sound)
elseif v > 80 and workspace.CurrentRooms[v]:FindFirstChild('Assets'):FindFirstChild('Garden_LanternUnique') and v < 99 then
message2('The CourtYard','rbxassetid://7132953277')
end
if v == 53 then
Sound = GetGitSoundID("https://github.com/Sosnen/Ping-s-Dumbass-projects-/blob/main/Dark-Depths_Entrencebetter.mp3?raw=true",'dork')
message2('The Darkness',Sound)
Bravo=true
Beans = true
elseif v == 90 then
message2('The Lonely Garden','rbxassetid://1847269119')
elseif v == 100 then
message2('The Abandoned Power Station','rbxassetid://1837449237')
end
local latestroom = game.ReplicatedStorage.GameData.LatestRoom.Value
local roomlatestworkspace = workspace.CurrentRooms[latestroom]
ChangeStyle(roomlatestworkspace)
end)
--lick my ass
workspace.Ambience_Dark.Played:Connect(function()
Bravo = true
wait(.01)
workspace.CurrentRooms[game.ReplicatedStorage.GameData.LatestRoom.Value].Assets.Light_Fixtures:Destroy()
--workspace.CurrentRooms[game.ReplicatedStorage.GameData.LatestRoom.Value].Assets.Chandelier:Destroy()
workspace.Ambience_Dark:Stop()
game.Lighting.FogStart = 10
game.Lighting.FogEnd = 10000000
end)