Altitude effect

Really simple thing but I really like how it looks and I’d like to share it on the DevForum and get some feedback on what I can improve :slight_smile:

This basically makes it so the higher you go the more distorted/creepy it is, it is also very exaggerated how the music slows down so quickly and I’ll have to work on it.

You can have the source code:

local Player = game.Players.LocalPlayer
repeat wait() until Player.Character
local Lighting = game:GetService("Lighting")
local Character = Player.Character
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local RunService = game:GetService("RunService")
local ColorCorrection = game.Lighting.ColorCorrection

function GetAltitude()
	return HumanoidRootPart.Position.Y

function EditVision(Altitude)
	ColorCorrection.TintColor = Color3.fromRGB(255 - Altitude/5, 255 - Altitude/1.5 ,255 - Altitude/2)
	Lighting.FogEnd = 1000 - Altitude * 1.5
	game.ReplicatedStorage.Sounds.BackgroundMusic.PlaybackSpeed = 0.8 - Altitude/1000
	game.Lighting.Brightness = 2 - Altitude/1000


Currently it:

  • Makes your vision foggier
  • Turns your screen red
  • Slows down music

Planning on adding a black frame that covers the whole screen and boost it’s transparency the higher you go.


This is so cool!
I love the idea :woot: The music is definitely creepier the higher you climb
What would you use this for?

1 Like

Currently making a halloween game, the higher you go up the terrain the creepier it will get :wink:.

1 Like