Homestyle_chicken

Untitled

Apr 25th, 2020
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local ui = Instance.new("Frame")
  8. local guards = Instance.new("TextButton")
  9. local inmate = Instance.new("TextButton")
  10. local criminal = Instance.new("TextButton")
  11. local neutral = Instance.new("TextButton")
  12. local btools = Instance.new("TextButton")
  13. local tpspot = Instance.new("TextButton")
  14.  
  15. --Properties:
  16.  
  17. ScreenGui.Parent = game.CoreGui
  18.  
  19. ui.Name = "ui"
  20. ui.Parent = ScreenGui
  21. ui.BackgroundColor3 = Color3.fromRGB(182, 0, 0)
  22. ui.BorderColor3 = Color3.fromRGB(182, 0, 0)
  23. ui.Position = UDim2.new(0.643489122, 0, 0.71767813, 0)
  24. ui.Size = UDim2.new(0, 186, 0, 115)
  25. ui.Active = true
  26. ui.Visible = true
  27. ui.Draggable = true
  28.  
  29. guards.Name = "guards"
  30. guards.Parent = ui
  31. guards.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  32. guards.BorderColor3 = Color3.fromRGB(0, 0, 0)
  33. guards.Position = UDim2.new(0.0414507464, 0, 0.0740738586, 0)
  34. guards.Size = UDim2.new(0, 85, 0, 30)
  35. guards.Font = Enum.Font.SourceSans
  36. guards.Text = "guards"
  37. guards.TextColor3 = Color3.fromRGB(182, 0, 0)
  38. guards.TextSize = 14.000
  39. guards.MouseButton1Down:connect(function()
  40. workspace.Remote.TeamEvent:FireServer("Bright blue")
  41. end)
  42.  
  43. inmate.Name = "inmate"
  44. inmate.Parent = ui
  45. inmate.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  46. inmate.BorderColor3 = Color3.fromRGB(0, 0, 0)
  47. inmate.Position = UDim2.new(0.518134654, 0, 0.0796609595, 0)
  48. inmate.Size = UDim2.new(0, 85, 0, 29)
  49. inmate.Font = Enum.Font.SourceSans
  50. inmate.Text = "inmate"
  51. inmate.TextColor3 = Color3.fromRGB(182, 0, 0)
  52. inmate.TextSize = 14.000
  53. inmate.MouseButton1Down:connect(function()
  54. workspace.Remote.TeamEvent:FireServer("Bright orange")
  55. end)
  56.  
  57. criminal.Name = "criminal"
  58. criminal.Parent = ui
  59. criminal.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  60. criminal.BorderColor3 = Color3.fromRGB(0, 0, 0)
  61. criminal.Position = UDim2.new(0.0414507762, 0, 0.342592597, 0)
  62. criminal.Size = UDim2.new(0, 85, 0, 31)
  63. criminal.Font = Enum.Font.SourceSans
  64. criminal.Text = "criminal"
  65. criminal.TextColor3 = Color3.fromRGB(182, 0, 0)
  66. criminal.TextSize = 14.000
  67. criminal.MouseButton1Down:connect(function()
  68. local Apart = Instance.new("Part")
  69.  
  70. Apart.Name = "PlrsPos"
  71. Apart.Parent = workspace
  72. Apart.Anchored = true
  73. Apart.Archivable = true
  74. Apart.CFrame = CFrame.new(9e99, 9e99, 9e99)
  75.  
  76. LCS = game.Workspace["Criminals Spawn"].SpawnLocation
  77.  
  78. _G.killAura = true
  79. wait(0.2)
  80.  
  81. Apart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  82. Apart.Transparency = 1
  83. Apart.Anchored = true
  84. Apart.CanCollide = false
  85.  
  86. istptoplr = true
  87. wait(0.004)
  88.  
  89.  
  90. LCS = game.Workspace["Criminals Spawn"].SpawnLocation
  91.  
  92. LCS.CanCollide = false
  93. LCS.Size = Vector3.new(51.05, 24.12, 54.76)
  94. LCS.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  95. LCS.Transparency = 1
  96.  
  97. wait(2)
  98.  
  99. istptoplr = false
  100. _G.killAura = false
  101.  
  102. wait(0.04)
  103.  
  104. if istptoplr == false then
  105. LCS.CFrame = CFrame.new(-920.510803, 92.2271957, 2138.27002, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  106. LCS.Size = Vector3.new(6, 0.2, 6)
  107. LCS.Transparency = 0
  108. istptoplr = false
  109. end
  110. end)
  111.  
  112. neutral.Name = "neutral"
  113. neutral.Parent = ui
  114. neutral.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  115. neutral.BorderColor3 = Color3.fromRGB(0, 0, 0)
  116. neutral.Position = UDim2.new(0.518134654, 0, 0.334943414, 0)
  117. neutral.Size = UDim2.new(0, 85, 0, 31)
  118. neutral.Font = Enum.Font.SourceSans
  119. neutral.Text = "neutral"
  120. neutral.TextColor3 = Color3.fromRGB(182, 0, 0)
  121. neutral.TextSize = 14.000
  122. neutral.MouseButton1Down:connect(function()
  123. workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  124. end)
  125.  
  126. btools.Name = "btools"
  127. btools.Parent = ui
  128. btools.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  129. btools.BorderColor3 = Color3.fromRGB(0, 0, 0)
  130. btools.Position = UDim2.new(0.0414507464, 0, 0.612157643, 0)
  131. btools.Size = UDim2.new(0, 85, 0, 29)
  132. btools.Font = Enum.Font.SourceSans
  133. btools.Text = "btools"
  134. btools.TextColor3 = Color3.fromRGB(182, 0, 0)
  135. btools.TextSize = 14.000
  136. btools.MouseButton1Down:connect(function()
  137. local lp = game:GetService("Players").LocalPlayer
  138. local Clone_T = Instance.new("HopperBin",lp.Backpak)
  139. Clone_T.BinType = "Clone"
  140. local Destruct = Instance.new("HopperBin",lp.Backpack)
  141. Destruct.BinType = "Hammer"
  142. local Hold_T = Instance.new("HopperBin",lp.Backpack)
  143. Hold_T.BinType = "Grab"
  144. end)
  145.  
  146. tpspot.Name = "tpspot"
  147. tpspot.Parent = ui
  148. tpspot.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  149. tpspot.BorderColor3 = Color3.fromRGB(0, 0, 0)
  150. tpspot.Position = UDim2.new(0.518134654, 0, 0.612157643, 0)
  151. tpspot.Size = UDim2.new(0, 85, 0, 29)
  152. tpspot.Font = Enum.Font.SourceSans
  153. tpspot.Text = "cutie spot ^-^"
  154. tpspot.TextColor3 = Color3.fromRGB(182, 0, 0)
  155. tpspot.TextSize = 14.000
  156. tpspot.MouseButton1Down:connect(function()
  157. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(955.16217, 101.498436, 2360.60303, -0.0048833508, -0.0168602243, 0.999845982, -7.27595761e-12, 0.999857962, 0.0168604236, -0.999988139, 8.23353548e-05, -0.0048826565)
  158. end)
  159.  
  160.  
  161. function onKeyPress(actionName, userInputState, inputObject)
  162. if userInputState == Enum.UserInputState.Begin then
  163. if toggle == false then
  164. toggle = true
  165. ui.Visible = true
  166. else
  167. toggle = false
  168. ui.Visible = false
  169. end
  170. end
  171. end
  172.  
  173. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.X)
Add Comment
Please, Sign In to add comment