Quantcast

How do i use eventstring or eventscript properly

can i please get some tips on how to script stuff such as water moving, making the water into a different liquid, doors opening etc. my scripter for my upcoming halloween map is away in london and doesnt have a pc there, so just make the maps development happen a bit faster i wanna learn how to use eventstring or eventscript correctly lol.

You could use this: [REDONE] - Flood Escape 2 Scripting Tutorial!

i will try it out later, thanks for the suggestion!

1 Like

even though i’m late, here’s what i got.
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 = { }

local tween = game:GetService(“TweenService”)
local info = TweenInfo.new(
4,
Enum.EasingStyle.Bounce,
Enum.EasingDirection.Out,
0,
false,
1)
local tween2 = {CFrame = Lib.Map._Door1.CFrame + Vector3.new(5,0,0)}
local tweenFinal = tween:Create(Lib.Map._Door1, info, tween2)

tweenFinal:Play()
end

Lib.btnFuncs [2] = function ( )
Lib.Script.moveWater(Lib.Map._Lift2, Vector3.new(0, -50, 0), 8, true)
Lib.btnFuncs [3] = function ()
wait(0.4)
Lib.Map._Vault3.Anchored = false
wait(0.5)
Lib.Map._Box23.Anchored = false
Lib.Map._Box24.Anchored = false
Lib.Map._Box25.Anchored = false
Lib.Script.moveWater(Lib.Map._Truss4, Vector3.new(0, -40, 0), 12, true)
end
end)

wait(21)
Lib.Map._Water1.Material = Enum.Material.Neon
Lib.Script.moveWater(Lib.Map._Water1, Vector3.new(0, 28, 0), 19, true)