Quantcast

Script incorrect 9prob gonna be my final topic about incorrect scripts

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 buttonpressed = false

Lib.btnFuncs[1] = function()

buttonpressed = true

end

Lib.Script.moveWater(Lib.Map._Door1, Vector3.new(-189.005, 75.188, 61.61), 0.5, true)

Lib.Script.moveWater(Lib.Map._DoorSymbol, Vector3.new(-189.545, 77.121, 61.088), 0.5, true)

wait(3)

if not buttonpressed then

Lib.Script.moveWater(Lib.Map.Intro._Water1, Vector3.new(-214.93, 47.8, 60.73), 1, true)

wait(5)

Lib.Script.moveWater(Lib.Map.Intro._Water2, Vector3.new(-164.18, 49.9, 60.73), 3, true)

wait(0.1)

Lib.Script.moveWater(Lib.Map.Intro._Door2, Vector3.new(-141.074, 64.438, 61.61), 3, true)

wait(0.1)

Lib.Script.moveWater(Lib.Map.Intro._DoorSymbol2, Vector3.new(-140.4, 84.35, 62.261), 3, true)

wait(6)

Lib.Script.moveWater(Lib.Map.Intro._Water3, Vector3.new(-106.15, 61.473, 31.059), 6, true)

wait(3)

Lib.Script.moveWater(Lib.Map.Intro._Door3, Vector3.new(-128.53, 63.388, 49.316), 3, true)

wait(0.1)

Lib.Script.moveWater(Lib.Map.Intro._DoorSymbol3, Vector3.new(-128.931, 65.55, 49.99), 3, true)

wait(3)

Lib.Script.moveWater(Lib.Map.Intro._Water5, Vector3.new(-92.75, 46.274, 106.21), 15, true)

wait(25)

Lib.Script.moveWater(Lib.Map.Intro._Water6, Vector3.new(-167.79, 62.56, 136.48), 6, true)

wait(3)

Lib.Script.moveWater(Lib.Map.Intro._Door4, Vector3.new(-128.53, 63.688, 72.716), 3, true)

wait(0.1)

Lib.Script.moveWater(Lib.Map.Intro._DoorSymbol4, Vector3.new(-128.931, 66.65, 72.19), 3, true)

wait(3)

Lib.Script.moveWater(Lib.Map.Intro._Water4, Vector3.new(-128.88, 53.9, 95.23), 6, true)

wait(0.1)

Lib.Script.moveWater(Lib.Map.Intro._Door5, Vector3.new(-106.15, 61.473, 31.059), 6, true)

wait(0.1)

Lib.Script.moveWater(Lib.Map.Intro._DoorSymbol5, Vector3.new(-116.661, 66.65, 60.959), 3, true)

wait(2)

Lib.Script.moveWater(Lib.Map.Intro._Water7, Vector3.new(-92.75, 71.374, 61.709), 6, true)

wait(7)

Lib.Script.moveWater(Lib.Map.Intro._Water8, Vector3.new(-36.901, 70.624, 50.959), 6, true)

wait(0.1)

Lib.Script.moveWater(Lib.Map.Intro._Water9, Vector3.new(1.949, 70.866, 44.85), 6, true)

wait(8)

Lib.Script.moveWater(Lib.Map.Intro._Water10, Vector3.new(33.999, 77.166, 45.7), 6, true)

wait(3)

Lib.Script.moveWater(Lib.Map.Intro._Water11, Vector3.new(68.649, 59.166, 46.8), 6, true)

wait(2)

Lib.Script.moveWater(Lib.Map.Intro._Water12, Vector3.new(95.049, 68.466, 46.8), 8, true)

end

what’s wrong with it?

So hard to tell…

1 Like

most likely the positions

1 Like

are you sure?
since none of it even moves
not even the states work

You used postions to move the water. The thing doesn’t move by positions, it moves by how much you want the part to move in that direction, i.e. 1 on Y value equals 1 stud in game and not to position 1.

1 Like

Check if the states have capitals, otherwise the water will break

1 Like

tysm! it’s nearly 12 tho and i go to school tomorrow so i’ll do it tomorrow

Tricky… never could have known lol

@tessellati_n now nothing works
idk about states because the doors never opened
do you have any other reasons?