Fish Eye Lens Effect

Hello, I made a ltitle script that gives you a fisheye lens effect in your roblox game.

Pro’s:
Looks cool
Gives more emmersion

Cons:
Clips trhu walls
Stop decal’s & surface ui’s from rendering’
Only works for people that have 8 or higher graphic settings!

How to use it:
Make a local script,
Put it inside StarterGUI or StarterPlayerScripts
Put this in the script:

local fisheyeball = Instance.new("Part")
fisheyeball.Shape = Enum.PartType.Ball
fisheyeball.Material = Enum.Material.Glass
fisheyeball.Parent = workspace
fisheyeball.Size = Vector3.new(20,20,20)
fisheyeball.Transparency = 0.3
fisheyeball.CanCollide = false
fisheyeball.CanQuery = false
fisheyeball.CanTouch = false
fisheyeball.CastShadow = false

game:GetService('RunService').RenderStepped:Connect(function()	local camera = workspace.Camera
	fisheyeball.CFrame = camera.CFrame * CFrame.new(0, 0, -11)
end)

Enjoy!

19 Likes

Thing is. This would only work for people with max graphics. Not for people with low like 5 or less.

7 Likes

Very true, Im adding it to the post so people know!

3 Likes

You need to put in three backticks like this

```lua
-- put some code here
```
2 Likes

Thank you alot, Ive changed it :slight_smile:

1 Like

I saw a post some time ago that did an effect like this using the same or similar method, can find it here.

It’s a cool effect, something I wish Roblox would add as a child instance or property of Camera that we could toggle and edit. However with this method, using glass, we can’t see terrain water, particles, smoke, etc. when looking through said glass.

Makes me wonder if there’s some way to produce this effect using ViewportFrames. :thinking:

2 Likes

Yeah, That’d be cool to see post processing effect’s build into roblox.
Some cool effects for that would be stuff like FishEye, Warping, VHS & Chromatic Abboration.
I hope this actually becomes a thing (Just like build in optimization).

And, I dont think there’s a way to do this with ViewportFrame’s, If so. I dont know how, Ive never used ViewportFrame’s

3 Likes