Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Roblox Water Color RBG Scale Help?

Asked by 8 years ago
--//LOCAL VARIABLES
    --//TEXTURES
    wait(1)
local Asset = "http://www.roblox.com/asset/?id="
local Player = game.Players.LocalPlayer
if Player.Name == "VirtualEquinox" or Player.Name == "piano007" or Player.Name == "mrfergie" or Player.Name == "Sporwn" or Player.Name == "ag800" or Player.Name == "DragonsRage1" then
    script.Parent.Weather.Visible = true
else
    script.Parent.Weather.Visible = false
end
local Character = Player.Character
local Head = Character.Head
local Part = script.Parent.Sky:Clone() 
for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
    v:Destroy()
end
Part.Position = Player.Character.Head.Position
Part.Parent = workspace.CurrentCamera
Part.CanCollide = false
local Weld = Instance.new("Weld", Head)
Weld.Part0 = Head
Weld.Part1 = Part
local Weld2 = Instance.new("Weld", Part)
Weld2.Part0 = Part
Weld2.Part1 = Head
if workspace.Hurricane.Value == true then
    script.Parent.Hurricane:Play()
end

script.Parent.Weather.MouseButton1Click:connect(function()
script.Parent.Storm.Visible = true
end)

script.Parent.Storm.DATA.Normal.MouseButton1Click:connect(function()
    game.Lighting.Brightness = 1
game.Lighting.Ambient = game.Lighting.colors.NAmbient.Value
game.Lighting.ColorShift_Bottom = game.Lighting.colors.NBot.Value
game.Lighting.ColorShift_Top = game.Lighting.colors.NTop.Value
game.Lighting.OutdoorAmbient = game.Lighting.colors.NOutdoor.Value
game.Lighting.ShadowColor = game.Lighting.colors.NShadow.Value
game.Lighting.FogColor = game.Lighting.colors.NFog.Value
game.Lighting.FogEnd = 300
game.Lighting.FogStart = 200
game.Workspace.Terrain.WaterWaveSpeed = 20
game.Workspace.Terrain.WaterColor = Color3.new(128, 64, 0)
workspace.Hurricane.Value = false
end)
script.Parent.Storm.DATA.ACCEPT.MouseButton1Click:connect(function()
    script.Parent.Storm.Visible = false
end)

script.Parent.Storm.DATA.Hurricane.MouseButton1Click:connect(function()
    workspace.Hurricane.Value = true
game.Lighting.Brightness = 0.1
game.Lighting.Ambient = game.Lighting.colors.HAmbient.Value
game.Lighting.ColorShift_Bottom = game.Lighting.colors.HBot.Value
game.Lighting.ColorShift_Top = game.Lighting.colors.HTop.Value
game.Lighting.OutdoorAmbient = game.Lighting.colors.HOutdoor.Value
game.Lighting.ShadowColor = game.Lighting.colors.HShadow.Value
game.Lighting.FogColor = game.Lighting.colors.HFog.Value
game.Lighting.FogEnd = 50
game.Lighting.FogStart = 0
game.Workspace.Terrain.WaterWaveSpeed = 100
game.Workspace.Terrain.WaterColor = Color3.new(0, 133, 165)
end)

workspace.Hurricane.Changed:connect(function()
    if workspace.Hurricane.Value == true then
        script.Parent.Hurricane:Play()
    else
        script.Parent.Hurricane:Stop()
        end
end)

Player.Character.Humanoid.Changed:connect(function()
    if Player.Character.Humanoid.Health == 0 then
        Part:Destroy()
    end
end)
while true do
    wait()
    if workspace.Hurricane.Value == true then
    workspace.CurrentCamera.Sky.Transparency = 0
    else
    workspace.CurrentCamera.Sky.Transparency = 1
    end
end

The Water Changes To Yellow When It should go to brown and then back to blue.

1 answer

Log in to vote
1
Answered by
iNicklas 215 Moderation Voter
8 years ago

I might be wrong, but shouldn't Line 45 and Line 64 look like this:

game.Workspace.Terrain.WaterColor = Color3.new(128/255, 64/255, 0/255)
game.Workspace.Terrain.WaterColor = Color3.new(0/255, 133/255, 165/255)
Ad

Answer this question