FurkingBoi

Survive the killer

Feb 3rd, 2020
30,777
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local TextButton = Instance.new("TextButton")
  10. local TextButton_2 = Instance.new("TextButton")
  11. local TextButton_3 = Instance.new("TextButton")
  12. local TextButton_4 = Instance.new("TextButton")
  13. local TextButton_5 = Instance.new("TextButton")
  14. local TextButton_6 = Instance.new("TextButton")
  15. local Frame_2 = Instance.new("Frame")
  16. local TextButton_7 = Instance.new("TextButton")
  17.  
  18. --Properties:
  19.  
  20. ScreenGui.Parent = game.CoreGui
  21.  
  22. Frame.Parent = ScreenGui
  23. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  24. Frame.Position = UDim2.new(0.0788844526, 0, 0.54004848, 0)
  25. Frame.Size = UDim2.new(0, 297, 0, 274)
  26. Frame.Visible = false
  27. Frame.Active = true
  28. Frame.Draggable = true
  29.  
  30. TextLabel.Parent = Frame
  31. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  32. TextLabel.Size = UDim2.new(0, 297, 0, 23)
  33. TextLabel.Font = Enum.Font.GothamBlack
  34. TextLabel.Text = "Survive the Killer! GUI"
  35. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  36. TextLabel.TextSize = 20
  37.  
  38. TextButton.Parent = Frame
  39. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  40. TextButton.Position = UDim2.new(0.0370370448, 0, 0.145985395, 0)
  41. TextButton.Size = UDim2.new(0, 124, 0, 150)
  42. TextButton.Font = Enum.Font.SourceSans
  43. TextButton.Text = "Teleport to an exit: (Use at the end of the game to exit quickly) Keybind = C"
  44. TextButton.TextScaled = true
  45. TextButton.TextColor3 = Color3.new(0, 0, 0)
  46. TextButton.TextSize = 14
  47. TextButton.MouseButton1Down:connect(function()
  48. -- Teleport to an exit
  49. local LocalPlayer = game.Players.LocalPlayer
  50. local Mouse = LocalPlayer:GetMouse()
  51. Mouse.KeyDown:connect(function(KeyPressed)
  52. if KeyPressed == "c" then -- Change keybind here to whatever key works best for you.
  53. local Doors = game:GetService("Workspace").CurrentMap:GetChildren()
  54. for i, door in ipairs(Doors) do
  55. if door.Name == "ExitDoor" then
  56. local PlayerCFrame = LocalPlayer.Character.HumanoidRootPart.CFrame
  57. LocalPlayer.Character.HumanoidRootPart.CFrame = door.Open.Door.CFrame + Vector3.new(0, -2, 0)
  58. end
  59. end
  60. end
  61. end)
  62. end)
  63.  
  64. TextButton_2.Parent = Frame
  65. TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
  66. TextButton_2.Position = UDim2.new(0.508417487, 0, 0.145985395, 0)
  67. TextButton_2.Size = UDim2.new(0, 124, 0, 150)
  68. TextButton_2.Font = Enum.Font.SourceSans
  69. TextButton_2.Text = "Coin Farm (Keybind = X)"
  70. TextButton_2.TextScaled = true
  71. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  72. TextButton_2.TextSize = 14
  73. TextButton_2.MouseButton1Down:connect(function()
  74. -- Grab all coins in the map.
  75. local LocalPlayer = game.Players.LocalPlayer
  76. local Mouse = LocalPlayer:GetMouse()
  77. Mouse.KeyDown:connect(function(KeyPressed)
  78. if KeyPressed == "x" then -- Change keybind here to whatever key works best for you.
  79. local coins = game:GetService("Workspace").CurrentMap.Coins:GetChildren()
  80. for i, coin in pairs(coins) do
  81. wait()
  82. LocalPlayer.Character.HumanoidRootPart.CFrame = coin.CFrame
  83. end
  84. end
  85. end)
  86. end)
  87.  
  88.  
  89.  
  90. TextButton_6.Parent = Frame
  91. TextButton_6.BackgroundColor3 = Color3.new(1, 0, 0)
  92. TextButton_6.Position = UDim2.new(0.92592591, 0, 0, 0)
  93. TextButton_6.Size = UDim2.new(0, 22, 0, 23)
  94. TextButton_6.Font = Enum.Font.GothamBold
  95. TextButton_6.Text = "X"
  96. TextButton_6.TextColor3 = Color3.new(0, 0, 0)
  97. TextButton_6.TextSize = 28
  98. TextButton_6.MouseButton1Down:connect(function()
  99. Frame.Visible = false
  100. Frame_2.Visible = true
  101. end)
  102.  
  103. Frame_2.Parent = ScreenGui
  104. Frame_2.BackgroundColor3 = Color3.new(1, 1, 1)
  105. Frame_2.Position = UDim2.new(0.00717131514, 0, 0.444174707, 0)
  106. Frame_2.Size = UDim2.new(0, 91, 0, 28)
  107. Frame.Active = true
  108. Frame.Draggable = true
  109.  
  110.  
  111. TextButton_7.Parent = Frame_2
  112. TextButton_7.BackgroundColor3 = Color3.new(1, 1, 1)
  113. TextButton_7.Position = UDim2.new(0, 0, 0.0357142873, 0)
  114. TextButton_7.Size = UDim2.new(0,190, 0, 260)
  115. TextButton_7.Font = Enum.Font.SourceSans
  116. TextButton_7.Text = "Open"
  117. TextButton_7.TextColor3 = Color3.new(0, 0, 0)
  118. TextButton_7.TextSize = 100
  119. TextButton_7.MouseButton1Down:connect(function()
  120. Frame_2.Visible = false
  121. Frame.Visible = true
  122. end)
RAW Paste Data