Advertisement
Adel987654321

Survival the killer GUI

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