Advertisement
Guest User

Mining Simulator teleports

a guest
Jun 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. gui = Instance.new("ScreenGui",game.CoreGui)
  2. gui.Name = "CustomizableGui"
  3. gui.ResetOnSpawn = false
  4.  
  5. box = Instance.new("ScrollingFrame",gui)
  6. box.Name = "Box"
  7. box.Size = UDim2.new(0,320,0,225)
  8. box.Position = UDim2.new(0,0,0,300)
  9. box.BackgroundColor3 = Color3.new(0,0,0) -- What you want the color to be in R,G,B (you can keep it as it already is)
  10. box.BackgroundTransparency = 0.60 -- What you want the transparency to be
  11. box.BorderSizePixel = 0
  12. box.ScrollBarThickness = 0
  13. box.Active = true
  14. box.Draggable = true -- If you want the box to be draggable or not (recommended to keep true)
  15.  
  16. top = Instance.new("TextLabel",box)
  17. top.Name = "TopBar"
  18. top.Size = UDim2.new(0,320,0,25)
  19. top.BackgroundColor3 = Color3.new(0,255,255) -- Color of the top bar
  20. top.BackgroundTransparency = .4 -- Transparency of the bar
  21. top.BorderSizePixel = 0
  22. top.Font = "SourceSans"
  23. top.FontSize = "Size14"
  24. top.Text = "SBO2 Teleport GUi" -- Change it to what you want the top bar to say (or keep it blank)
  25. top.TextColor3 = Color3.new(0,0,0)
  26.  
  27. pos1 = 25
  28. function c1(txt) -- This is a function that creates buttons!
  29. local a = Instance.new("TextButton",box)
  30. a.Name = (txt)
  31. a.Size = UDim2.new(0,150,0,40)
  32. a.Position = UDim2.new(0,15,0,pos1)
  33. a.BackgroundColor3 = Color3.new(255,255,255)
  34. a.BackgroundTransparency = 40
  35. a.BorderSizePixel = 0
  36. a.Font = "SourceSansLight"
  37. a.FontSize = "Size24"
  38. a.Text = (txt)
  39. a.TextColor3 = Color3.new(52,72,255)
  40. pos1 = pos1+40
  41. return a
  42. end
  43.  
  44. pos2 = 25
  45. function c2(txt)
  46. local a = Instance.new("TextButton",box)
  47. a.Name = (txt)
  48. a.Size = UDim2.new(0,150,0,40)
  49. a.Position = UDim2.new(0,170,0,pos2)
  50. a.BackgroundColor3 = Color3.new(255,255,255)
  51. a.BackgroundTransparency = 40
  52. a.BorderSizePixel = 0
  53. a.Font = "SourceSansLight"
  54. a.FontSize = "Size24"
  55. a.Text = (txt)
  56. a.TextColor3 = Color3.new(52,72,255)
  57. pos2 = pos2+40
  58. return a
  59. end
  60.  
  61. --[READ: To add buttons just type c1("button text") to put the button on the left or c2("button text") to put the button on the right!]--
  62.  
  63. -- example:
  64. prnt = c1("Normal sell teleport")
  65.  
  66. prnt.MouseButton1Down:connect(function() --copy and paste this each time and replace the stuff
  67.  
  68. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-115,13,39) + Vector3.new(1,0,0)
  69. wait(1)
  70. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-115,13,39) + Vector3.new(1,0,0)
  71.  
  72. end)
  73.  
  74. prnt = c2("Vip sell teleport")
  75.  
  76. prnt.MouseButton1Down:connect(function()
  77.  
  78. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(41.407,13.342,-1240.8241) + Vector3.new(1,0,0)
  79. wait(0.3)
  80. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(41.407,13.342,-1240.8241) + Vector3.new(1,0,0)
  81. wait(0.3)
  82. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(41.407,13.342,-1240.8241) + Vector3.new(1,0,0)
  83.  
  84. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement