Advertisement
BaconProDupers

Module Script Pastebin!

May 19th, 2023
1,107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | Source Code | 0 0
  1. -- Variables This Is Inside Of Module Script --
  2. local NameOfYourEventDisaster = {} -- Ex RisingLava Name
  3.  
  4. local currentEvent = game.Workspace.CurrentEvent -- Make sure you have a folder & rename it to CurrentEvent To Called The Game Files Inside Of It
  5.  
  6.  
  7. NameOfYourDisaster.NameOfYourDisasterEvent = function() -- Ex RisingLava.risingLavaEvent make sure you delete the () to not break the script
  8.    
  9.    
  10.     local wall = workspace.Map.Walls.Wall2 -- make sure you have a folder name map & inside of it have Name Folder Walls Then Inside Of Walls There's a part name wall2
  11.    
  12.     wall.Anchored = true -- to make the wall2 can collide off so the player can cross the barrier of the game or in obby whatever you make
  13.    
  14.     local risingLavaFolder = game.ServerStorage.RisingLava:Clone() -- This Will Clone The Folder Name File Inside of the serverstorage
  15.     risingLavaFolder.Parent = currentEvent -- this will go to the Name file Folder Of Your Disaster & Go To workspace inside of currentEvent Folder
  16.    
  17. end -- end of the script
  18.  
  19. return RisingLava -- End Of Script that will return to server game file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement