Advertisement
das_brayan

Das script

Jun 22nd, 2021
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.08 KB | None | 0 0
  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 ObGuns = Instance.new("TextButton")
  10. local NexusTP = Instance.new("TextButton")
  11. local BackTP = Instance.new("TextButton")
  12. local BeGuard = Instance.new("TextButton")
  13. local BeInmate = Instance.new("TextButton")
  14. local BeCriminal = Instance.new("TextButton")
  15. local BeNeutral = Instance.new("TextButton")
  16. local YardTP = Instance.new("TextButton")
  17. local CafeTP = Instance.new("TextButton")
  18. local Refresh = Instance.new("TextButton")
  19. local Respawn = Instance.new("TextButton")
  20.  
  21. --Properties:
  22.  
  23. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  24.  
  25. Frame.Parent = ScreenGui
  26. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  27. Frame.BorderColor3 = Color3.new(255, 0, 0)
  28. Frame.BorderSizePixel = 5
  29. Frame.Position = UDim2.new(0.575310469, 0, 0.1202989, 0)
  30. Frame.Size = UDim2.new(0, 200, 0, 200)
  31.  
  32. TextLabel.Parent = Frame
  33. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  34. TextLabel.BackgroundTransparency = 1
  35. TextLabel.Position = UDim2.new(0.0214755256, 0, -0.0327305198, 0)
  36. TextLabel.Size = UDim2.new(0, 180, 0, 50)
  37. TextLabel.Font = Enum.Font.SourceSans
  38. TextLabel.Text = "Das"
  39. TextLabel.TextColor3 = Color3.new(255,0, 0)
  40. TextLabel.TextScaled = true
  41. TextLabel.TextSize = 30
  42. TextLabel.TextWrapped = true
  43.  
  44. ObGuns.Name = "ObGuns"
  45. ObGuns.Parent = Frame
  46. ObGuns.BackgroundColor3 = Color3.new(0, 0, 0)
  47. ObGuns.BorderColor3 = Color3.new(255, 0, 0)
  48. ObGuns.BorderSizePixel = 3
  49. ObGuns.Position = UDim2.new(0.0673193336, 0, 0.231513202, 0)
  50. ObGuns.Size = UDim2.new(0, 73, 0, 32)
  51. ObGuns.Font = Enum.Font.SourceSans
  52. ObGuns.Text = "Guns"
  53. ObGuns.TextColor3 = Color3.new(255, 0, 0)
  54. ObGuns.TextScaled = true
  55. ObGuns.TextSize = 30
  56. ObGuns.TextWrapped = true
  57.  
  58. NexusTP.Name = "NexusTP"
  59. NexusTP.Parent = Frame
  60. NexusTP.BackgroundColor3 = Color3.new(0, 0, 0)
  61. NexusTP.BorderColor3 = Color3.new(255, 0, 0)
  62. NexusTP.BorderSizePixel = 3
  63. NexusTP.Position = UDim2.new(0.0659695342, 0, 0.491513222, 0)
  64. NexusTP.Size = UDim2.new(0, 73, 0, 32)
  65. NexusTP.Font = Enum.Font.SourceSans
  66. NexusTP.Text = "Nexus"
  67. NexusTP.TextColor3 = Color3.new(255, 0, 0)
  68. NexusTP.TextScaled = true
  69. NexusTP.TextSize = 30
  70. NexusTP.TextWrapped = true
  71.  
  72. BackTP.Name = "BackTP"
  73. BackTP.Parent = Frame
  74. BackTP.BackgroundColor3 = Color3.new(0, 0, 0)
  75. BackTP.BorderColor3 = Color3.new(255, 0, 0)
  76. BackTP.BorderSizePixel = 3
  77. BackTP.Position = UDim2.new(0.0673193187, 0, 0.751513183, 0)
  78. BackTP.Size = UDim2.new(0, 73, 0, 32)
  79. BackTP.Font = Enum.Font.SourceSans
  80. BackTP.Text = "Back"
  81. BackTP.TextColor3 = Color3.new(255, 0, 0)
  82. BackTP.TextScaled = true
  83. BackTP.TextSize = 30
  84. BackTP.TextWrapped = true
  85.  
  86. BeGuard.Name = "BeGuard"
  87. BeGuard.Parent = Frame
  88. BeGuard.BackgroundColor3 = Color3.new(0.0352941, 0, 0.301961)
  89. BeGuard.BorderColor3 = Color3.new(255, 0, 0)
  90. BeGuard.BorderSizePixel = 3
  91. BeGuard.Position = UDim2.new(0.620703399, 0, 0.23018752, 0)
  92. BeGuard.Size = UDim2.new(0, 17, 0, 32)
  93. BeGuard.Font = Enum.Font.SourceSans
  94. BeGuard.Text = ""
  95. BeGuard.TextColor3 = Color3.new(255, 0, 0)
  96. BeGuard.TextScaled = true
  97. BeGuard.TextSize = 30
  98. BeGuard.TextWrapped = true
  99.  
  100. BeInmate.Name = "BeInmate"
  101. BeInmate.Parent = Frame
  102. BeInmate.BackgroundColor3 = Color3.new(0.360784, 0.156863, 0.00392157)
  103. BeInmate.BorderColor3 = Color3.new(255, 0,0 )
  104. BeInmate.BorderSizePixel = 3
  105. BeInmate.Position = UDim2.new(0.535703421, 0, 0.23018752, 0)
  106. BeInmate.Size = UDim2.new(0, 17, 0, 32)
  107. BeInmate.Font = Enum.Font.SourceSans
  108. BeInmate.Text = ""
  109. BeInmate.TextColor3 = Color3.new(255, 0, 0)
  110. BeInmate.TextScaled = true
  111. BeInmate.TextSize = 30
  112. BeInmate.TextWrapped = true
  113.  
  114. BeCriminal.Name = "BeCriminal"
  115. BeCriminal.Parent = Frame
  116. BeCriminal.BackgroundColor3 = Color3.new(0.376471, 0, 0.00392157)
  117. BeCriminal.BorderColor3 = Color3.new(255, 0, 0)
  118. BeCriminal.BorderSizePixel = 3
  119. BeCriminal.Position = UDim2.new(0.705703378, 0, 0.23018752, 0)
  120. BeCriminal.Size = UDim2.new(0, 17, 0, 32)
  121. BeCriminal.Font = Enum.Font.SourceSans
  122. BeCriminal.Text = ""
  123. BeCriminal.TextColor3 = Color3.new(255, 0, 0)
  124. BeCriminal.TextScaled = true
  125. BeCriminal.TextSize = 30
  126. BeCriminal.TextWrapped = true
  127.  
  128. BeNeutral.Name = "BeNeutral"
  129. BeNeutral.Parent = Frame
  130. BeNeutral.BackgroundColor3 = Color3.new(0.54902, 0.54902, 0.54902)
  131. BeNeutral.BorderColor3 = Color3.new(255, 0, 0)
  132. BeNeutral.BorderSizePixel = 3
  133. BeNeutral.Position = UDim2.new(0.790703356, 0, 0.23018752, 0)
  134. BeNeutral.Size = UDim2.new(0, 17, 0, 32)
  135. BeNeutral.Font = Enum.Font.SourceSans
  136. BeNeutral.Text = ""
  137. BeNeutral.TextColor3 = Color3.new(255, 0, 0)
  138. BeNeutral.TextScaled = true
  139. BeNeutral.TextSize = 30
  140. BeNeutral.TextWrapped = true
  141.  
  142. YardTP.Name = "YardTP"
  143. YardTP.Parent = Frame
  144. YardTP.BackgroundColor3 = Color3.new(0, 0, 0)
  145. YardTP.BorderColor3 = Color3.new(255, 0, 0)
  146. YardTP.BorderSizePixel = 3
  147. YardTP.Position = UDim2.new(0.51096952, 0, 0.491513222, 0)
  148. YardTP.Size = UDim2.new(0, 73, 0, 32)
  149. YardTP.Font = Enum.Font.SourceSans
  150. YardTP.Text = "Yard"
  151. YardTP.TextColor3 = Color3.new(255, 0, 0)
  152. YardTP.TextScaled = true
  153. YardTP.TextSize = 30
  154. YardTP.TextWrapped = true
  155.  
  156. CafeTP.Name = "CafeTP"
  157. CafeTP.Parent = Frame
  158. CafeTP.BackgroundColor3 = Color3.new(0, 0, 0)
  159. CafeTP.BorderColor3 = Color3.new(255, 0,0 )
  160. CafeTP.BorderSizePixel = 3
  161. CafeTP.Position = UDim2.new(0.51096952, 0, 0.746513247, 0)
  162. CafeTP.Size = UDim2.new(0, 73, 0, 32)
  163. CafeTP.Font = Enum.Font.SourceSans
  164. CafeTP.Text = "Cafe"
  165. CafeTP.TextColor3 = Color3.new(255, 0,0 )
  166. CafeTP.TextScaled = true
  167. CafeTP.TextSize = 30
  168. CafeTP.TextWrapped = true
  169.  
  170. Refresh.Name = "Refresh"
  171. Refresh.Parent = Frame
  172. Refresh.BackgroundColor3 = Color3.new(0, 0, 0)
  173. Refresh.BorderColor3 = Color3.new(255, 0, 0)
  174. Refresh.BorderSizePixel = 3
  175. Refresh.Position = UDim2.new(0.0659695342, 0, 0.996513247, 0)
  176. Refresh.Size = UDim2.new(0, 73, 0, 32)
  177. Refresh.Font = Enum.Font.SourceSans
  178. Refresh.Text = "Refresh"
  179. Refresh.TextColor3 = Color3.new(255,0 ,0 )
  180. Refresh.TextScaled = true
  181. Refresh.TextSize = 30
  182. Refresh.TextWrapped = true
  183.  
  184. Respawn.Name = "Respawn"
  185. Respawn.Parent = Frame
  186. Respawn.BackgroundColor3 = Color3.new(0, 0, 0)
  187. Respawn.BorderColor3 = Color3.new(255, 0,0 )
  188. Respawn.BorderSizePixel = 3
  189. Respawn.Position = UDim2.new(0.505969524, 0, 0.996513247, 0)
  190. Respawn.Size = UDim2.new(0, 73, 0, 32)
  191. Respawn.Font = Enum.Font.SourceSans
  192. Respawn.Text = "Respawn"
  193. Respawn.TextColor3 = Color3.new(255, 0, 0)
  194. Respawn.TextScaled = true
  195. Respawn.TextSize = 30
  196. Respawn.TextWrapped = true
  197.  
  198.  
  199. -- Scripts:
  200.  
  201. ObGuns.MouseButton1Down:connect(function()
  202.     game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  203.     game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["M4A1"].ITEMPICKUP)
  204.     game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["AK-47"].ITEMPICKUP)
  205.     game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["M9"].ITEMPICKUP)
  206.     --[[
  207.     for i,v in pairs(Workspace.Prison_ITEMS.giver:GetChildren()) do
  208.  
  209.     OwO = Workspace.Remote.ItemHandler:InvokeServer(v.ITEMPICKUP)
  210.     end]]--
  211. end)
  212.  
  213. YardTP.MouseButton1Down:connect(function()
  214.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(779,99,2477)
  215. end)
  216.  
  217. CafeTP.MouseButton1Down:connect(function()
  218.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(879,99,2247)
  219. end)
  220.  
  221. Refresh.MouseButton1Down:connect(function()
  222.     local lastPos = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
  223.     local plr = game.Players.LocalPlayer.Name
  224.     local gayevent = game:GetService("Workspace").Remote.loadchar
  225.     gayevent:InvokeServer(plr)
  226.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(lastPos)
  227. end)
  228.  
  229. NexusTP.MouseButton1Down:connect(function()
  230.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(879,99,2377)
  231. end)
  232.  
  233. BackTP.MouseButton1Down:connect(function()
  234.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(980, 101, 2327)
  235. end)
  236.  
  237. BeNeutral.MouseButton1Down:connect(function()
  238.     Workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  239. end)
  240.  
  241. BeInmate.MouseButton1Down:connect(function()
  242.     Workspace.Remote.TeamEvent:FireServer("Bright orange")
  243. end)
  244.  
  245. BeGuard.MouseButton1Down:connect(function()
  246.     Workspace.Remote.TeamEvent:FireServer("Bright blue")
  247. end)
  248.  
  249. BeCriminal.MouseButton1Down:connect(function()
  250.     LCS = game.Workspace["Criminals Spawn"].SpawnLocation
  251.     LCS.CanCollide = false
  252.     LCS.Size = Vector3.new(51.05, 24.12, 54.76)
  253.     LCS.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  254.     LCS.Transparency = 1
  255.     wait(0.5)
  256.     LCS.CFrame = CFrame.new(-920.510803, 92.2271957, 2138.27002, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  257.     LCS.Size = Vector3.new(6, 0.2, 6)
  258.     LCS.Transparency = 0
  259. end)
  260.  
  261. Respawn.MouseButton1Down:connect(function()
  262.     local lastPos = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
  263.     local plr = game.Players.LocalPlayer.Name
  264.     local gayevent = game:GetService("Workspace").Remote.loadchar
  265.     gayevent:InvokeServer(plr)
  266. end)
  267.  
  268.  
  269. function dragify(Frame)
  270. dragToggle = nil
  271. dragSpeed = 100000 -- You can edit this.
  272. dragInput = nil
  273. dragStart = nil
  274. dragPos = nil
  275.  
  276. function updateInput(input)
  277. Delta = input.Position - dragStart
  278. Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  279. game:GetService("TweenService"):Create(Frame, TweenInfo.new(0), {Position = Position}):Play()
  280. end
  281.  
  282. Frame.InputBegan:Connect(function(input)
  283. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  284. dragToggle = true
  285. dragStart = input.Position
  286. startPos = Frame.Position
  287. input.Changed:Connect(function()
  288. if (input.UserInputState == Enum.UserInputState.End) then
  289. dragToggle = false
  290. end
  291. end)
  292. end
  293. end)
  294.  
  295. Frame.InputChanged:Connect(function(input)
  296. if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  297. dragInput = input
  298. end
  299. end)
  300.  
  301. game:GetService("UserInputService").InputChanged:Connect(function(input)
  302. if (input == dragInput and dragToggle) then
  303. updateInput(input)
  304. end
  305. end)
  306. end
  307.  
  308. dragify(Frame)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement