of     1   

Ulla42
#35100420Friday, October 08, 2010 9:07 PM GMT

brt.Frame.BackgroundTransparency = 1 / Distance * Factor * Transparency When I get closer the transparency decreases, vice versa. I want it to do the opposite, how do I do that?
Fungalmungal
#35100623Friday, October 08, 2010 9:10 PM GMT

brt.Frame.BackgroundTransparency = Distance * Factor * Transparency
Ulla42
#35100723Friday, October 08, 2010 9:11 PM GMT

Nope, That made the transparency go over 1 no matter where you are.
Fungalmungal
#35101150Friday, October 08, 2010 9:16 PM GMT

Do you want it to approach 1 asymptotically? As the distance approaches infinity, the transparency approaches 1? Try this: -1 / ((Distance * Factor * Transparency + 1) + 1)
Fungalmungal
#35101266Friday, October 08, 2010 9:18 PM GMT

Wait... Your original formula should be making it such that your transparency Increases as you get closer.
Ulla42
#35101447Friday, October 08, 2010 9:21 PM GMT

Same as before, except everything is black. Current = Closer to the brick, makes it darker I want = Closer to the brick, makes it lighter
Fungalmungal
#35101760Friday, October 08, 2010 9:24 PM GMT

That makes no sense. Your original formula is doing exactly that.
Ulla42
#35101780Friday, October 08, 2010 9:24 PM GMT

Bump :\
Ulla42
#35101823Friday, October 08, 2010 9:25 PM GMT

It actually isn't.. local POS = script.Parent.Position Transparency = 5 -- The bigger this is, the less effect the lighting has. Distance = 125 -- Change this to the distance you can see it from. while true do Players = game.Players:GetChildren() wait(.1) --don't hog the CPU for P = 1, #Players do Torso = Players[P].Character:FindFirstChild("Torso") local brt = Players[P].PlayerGui:findFirstChild("BRT") Factor = ((Players[P].Character.Torso.Position - POS).magnitude) if (brt ~= nil) and (script.Parent.Enabled.Value == true) then brt.Frame.BackgroundTransparency = 1 / Distance * Factor * Transparency end end end
crazypotato4
#35101987Friday, October 08, 2010 9:27 PM GMT

brt.Frame.BackgroundTransparency = 1 - (1 / Distance * Factor * Transparency) ????
AgentFirefox
Top 100 Poster
#35102113Friday, October 08, 2010 9:28 PM GMT

What if Distance or Factor or Transparency is 0? FLAW
Ulla42
#35102121Friday, October 08, 2010 9:28 PM GMT

For that sir, You gain +1 Cookies.
crazypotato4
#35102175Friday, October 08, 2010 9:29 PM GMT

do you mean I gain a cookie? YAY :D
Fungalmungal
#35102193Friday, October 08, 2010 9:29 PM GMT

You have just set your Distance and Transparency values too high. With what is happening now, you'd need a to be 1/625 of a stud away to get a transparency of 1. At just 1 stud away, your transparency will have become 1/625, which is already almost complete opaque. The transparency will continue to decrease as you move further away.
Ulla42
#35102906Friday, October 08, 2010 9:38 PM GMT

Nevermind. I'll just change the effect from light to dark.

    of     1