Quantcast

Script doesn't work help 😔

okay so i’ve updated this and it still doesnt work. here’s the current script

local Lib = workspace.Multiplayer.GetMapVals:Invoke() --Has: Map, Script, Button, btnFuncs
Lib.Button:connect(function(p, bNo) if Lib.btnFuncs[bNo] then Lib.btnFuncs[bNo](bNo, p) end end)

Lib.btnFuncs[3] = function()

Lib.Map.Brown1.Union.Color, Color3.fromRGB(95, 77, 66)
Lib.Map.Brown1.Stick.Color, Color3.fromRGB(68, 55, 47)

end

wait(30)
Lib.Script.moveWater(Lib.Map._Water1, Vector3.new(0,60,0), 10, true)

it still doesnt work lol

Well, you put something wrong in it, if you want it get fixed, here is the fixed version:

local Lib = workspace.Multiplayer.GetMapVals:Invoke() --Has: Map, Script, Button, btnFuncs
Lib.Button:connect(function(p, bNo) if Lib.btnFuncs[bNo] then Lib.btnFuncs[bNo](bNo, p) end end)

Lib.btnFuncs[3] = function()

Lib.Map.Brown1.Union.Color = Color3.fromRGB(95, 77, 66)
Lib.Map.Brown1.Stick.Color = Color3.fromRGB(68, 55, 47)

end

wait(30)
Lib.Script.moveWater(Lib.Map._Water1, Vector3.new(0,60,0), 10, true)

Hope it helps! (again)

1 Like

I’m not flexing, Color3 requires a number between 0 and 1. So to get it you divide by 255, that’s why I made the function

1 Like

Color3 does if you don’t use “fromRGB”

Plus, it’s very annoying and just messy imo

1 Like

im gonna try i guess

Color3.new() requires a value between 0 and 1 which is why I made the function, noobie didn’t have rgb

1 Like

local Lib = workspace.Multiplayer.GetMapVals:Invoke() --Has: Map, Script, Button, btnFuncs
Lib.Button:connect(function(p, bNo) if Lib.btnFuncs[bNo] then Lib.btnFuncs[bNo](bNo, p) end end)

local btnFuncs = { }

Lib.btnFuncs[3] = function()
Lib.Map.Brown1.Union.Color, Color3.fromRGB(95, 77, 66)
Lib.Map.Brown1.Stick.Color, Color3.fromRGB(68, 55, 47)
end

wait(30)
Lib.Script.moveWater(Lib.Map._Water1, Vector3.new(0, 60, 0), 10, true)

i think this is how it goes

1 Like

Lib.Map.Brown1.Union.Color = Color3.fromRGB(95, 77, 66)
Lib.Map.Brown1.Stick.Color = Color3.fromRGB(68, 55, 47)

2 Likes

Thanks for it bigboi

2 Likes

local Lib = workspace.Multiplayer.GetMapVals:Invoke() --Has: Map, Script, Button, btnFuncs
Lib.Button:connect(function(p, bNo) if Lib.btnFuncs[bNo] then Lib.btnFuncs[bNo](bNo, p) end end)

Lib.btnFuncs[3] = function()
Lib.Map.Brown1.Union.Color = Color3.fromRGB(95, 77, 66)
Lib.Map.Brown1.Stick.Color = Color3.fromRGB(68, 55, 47)
end

wait(30)
Lib.Script.moveWater(Lib.Map._Water1, Vector3.new(0, 60, 0), 10, true)

try it

2 Likes