AugusTH

Tp sheriff / muderer gui

Oct 15th, 2023 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. -- Made By Augus X
  2.  
  3. -- Instances:
  4.  
  5. local ScreenGui = Instance.new("ScreenGui")
  6. local Frame = Instance.new("Frame")
  7. local ToMurderer = Instance.new("TextButton")
  8. local HIDE = Instance.new("TextButton")
  9. local OPEN = Instance.new("TextButton")
  10. local ToSherrif = Instance.new("TextButton")
  11.  
  12. --Properties:
  13.  
  14. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. ScreenGui.ResetOnSpawn = false
  16.  
  17. Frame.Parent = ScreenGui
  18. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  19. Frame.Position = UDim2.new(0.166156977, 0, 0, 0)
  20. Frame.Size = UDim2.new(0, 163, 0, 170)
  21.  
  22. ToMurderer.Name = "ToMurderer"
  23. ToMurderer.Parent = ScreenGui
  24. ToMurderer.BackgroundColor3 = Color3.new(1, 0, 0)
  25. ToMurderer.Position = UDim2.new(0.166156977, 0, 0.01, 0)
  26. ToMurderer.Size = UDim2.new(0, 163, 0, 50)
  27. ToMurderer.Font = Enum.Font.SourceSans
  28. ToMurderer.Text = "To Murderer"
  29. ToMurderer.TextColor3 = Color3.new(0, 0, 0)
  30. ToMurderer.TextScaled = true
  31. ToMurderer.TextSize = 14
  32. ToMurderer.TextWrapped = true
  33.  
  34. HIDE.Name = "HIDE"
  35. HIDE.Parent = ScreenGui
  36. HIDE.BackgroundColor3 = Color3.new(1, 1, 1)
  37. HIDE.Position = UDim2.new(0.166156977, 0, 0.21, 0)
  38. HIDE.Size = UDim2.new(0, 163, 0, 56)
  39. HIDE.Font = Enum.Font.SourceSans
  40. HIDE.Text = "HIDE"
  41. HIDE.TextColor3 = Color3.new(0, 0, 0)
  42. HIDE.TextScaled = true
  43. HIDE.TextSize = 14
  44. HIDE.TextWrapped = true
  45.  
  46. OPEN.Name = "OPEN"
  47. OPEN.Parent = ScreenGui
  48. OPEN.Active = false
  49. OPEN.BackgroundColor3 = Color3.new(1, 1, 1)
  50. OPEN.Position = UDim2.new(0, 0, 0.0418502204, 0)
  51. OPEN.Size = UDim2.new(0, 116, 0, 19)
  52. OPEN.Visible = false
  53. OPEN.Font = Enum.Font.SourceSans
  54. OPEN.Text = "OPEN"
  55. OPEN.TextColor3 = Color3.new(0, 0, 0)
  56. OPEN.TextScaled = true
  57. OPEN.TextSize = 14
  58. OPEN.TextWrapped = true
  59.  
  60. ToSherrif.Name = "ToSherrif"
  61. ToSherrif.Parent = ScreenGui
  62. ToSherrif.BackgroundColor3 = Color3.new(0, 0, 1)
  63. ToSherrif.Position = UDim2.new(0.166156977, 0, 0.11, 0)
  64. ToSherrif.Size = UDim2.new(0, 163, 0, 50)
  65. ToSherrif.Font = Enum.Font.SourceSans
  66. ToSherrif.Text = "To Sherrif"
  67. ToSherrif.TextColor3 = Color3.new(0, 0, 0)
  68. ToSherrif.TextScaled = true
  69. ToSherrif.TextSize = 14
  70. ToSherrif.TextWrapped = true
  71.  
  72. -- Scripts:
  73.  
  74. local function XVGFY_fake_script() -- ScreenGui.LocalScript
  75. local script = Instance.new('LocalScript', ScreenGui)
  76.  
  77. -- FUNCTIONS
  78. function murderer()
  79. for i, v in pairs(game.Players:children()) do
  80. if v.Backpack:findFirstChild("Knife") or v.Character:findFirstChild("Knife") then
  81. return v
  82. end
  83. end
  84. end
  85.  
  86. function sherrif()
  87. for i, v in pairs(game.Players:children()) do
  88. if v.Backpack:findFirstChild("Gun") or v.Character:findFirstChild("Gun") then
  89. return v
  90. end
  91. end
  92. end
  93.  
  94. -- TO Murderer Button
  95.  
  96. script.parent.ToMurderer.MouseButton1Down:connect(function()
  97. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = murderer().Character.HumanoidRootPart.CFrame
  98. end)
  99.  
  100.  
  101. -- TO Sherriff button
  102.  
  103. script.Parent.ToSherrif.MouseButton1Down:connect(function()
  104. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = sherrif().Character.HumanoidRootPart.CFrame
  105. end)
  106.  
  107. -- Hide Button
  108.  
  109. script.Parent.HIDE.MouseButton1Down:connect(function()
  110. for i, v in pairs(script.Parent:children()) do
  111. if v.Name ~= "OPEN" then
  112. v.Visible = false
  113. v.Active = false
  114.  
  115. else
  116. v.Active = true
  117. v.Visible = true
  118. end
  119. end
  120. end)
  121.  
  122. -- Open Button
  123.  
  124. script.Parent.OPEN.MouseButton1Down:connect(function()
  125. for i, v in pairs(script.Parent:children()) do
  126. if v.Name ~= "OPEN" then
  127. v.Visible = true
  128. v.Active = true
  129.  
  130. else
  131. v.Active = false
  132. v.Visible = false
  133. end
  134. end
  135. end)
  136.  
  137.  
  138.  
  139.  
  140.  
  141. end
  142. coroutine.wrap(XVGFY_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment