Advertisement
Instantexe

Flood Escape 2 script

Sep 9th, 2018
13,730
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. --Z get all buttons
  2. --X win Immidiately
  3. --c Destroy the Block Blocking you from exiting from the winners room, to have some fun exploring the map while other players are winning
  4.  
  5. local Player = game.Players.LocalPlayer
  6. local Mouse = Player:GetMouse()
  7. local Multiplayer = game.Workspace.Multiplayer
  8.  
  9. Mouse.KeyDown:Connect(function(Key)
  10. if Key == "z" then
  11. local Map = Multiplayer.Map
  12. local Btns = {}
  13. local Desc = {}
  14. for i, v in pairs(Map:GetDescendants())do
  15. Desc[v.Name.."Obj"] = v
  16. end
  17. for i=0,30 do
  18. if Desc["_Button".. tostring(i).. "Obj"] ~= nil then
  19. table.insert(Btns,Desc["_Button".. tostring(i).. "Obj"])
  20. end
  21. end
  22. for i, v in pairs(Btns)do
  23. local Hitbox = v.Hitbox
  24. Player.Character.HumanoidRootPart.CFrame = Hitbox.CFrame
  25. wait(0.3)
  26. end
  27. elseif Key == "x" then
  28. local Map = Multiplayer.Map
  29. local ExitBlock = Map:FindFirstChild("ExitBlock")
  30. local Char = Player.Character
  31. local Ts = game:GetService("TweenService")
  32. local Ti = TweenInfo.new(
  33. 2,
  34. Enum.EasingStyle.Sine,
  35. Enum.EasingDirection.Out,
  36. 0,
  37. false,
  38. 0
  39. )
  40. local Tp = {
  41. CFrame = ExitBlock.CFrame
  42. }
  43. if ExitBlock ~= nil and ExitBlock:IsA("Part") then
  44. local Tw = Ts:Create(Player.Character.HumanoidRootPart,Ti,Tp)
  45. wait(0.1)
  46. Tw:Play()
  47. end
  48. elseif Key == "c" then
  49. local Map = Multiplayer.Map
  50. Map.ExitBlock:Destroy()
  51. end
  52. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement