Advertisement
scriptingtales

Sum tool

Jun 28th, 2022
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local TextButton = Instance.new("TextButton")
  8.  
  9. --Properties:
  10.  
  11. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  12.  
  13. TextButton.Parent = ScreenGui
  14. TextButton.BackgroundColor3 = Color3.fromRGB(253, 141, 29)
  15. TextButton.BorderSizePixel = 0
  16. TextButton.Position = UDim2.new(0.0240343343, 0, 0.456140339, 0)
  17. TextButton.Size = UDim2.new(0, 200, 0, 50)
  18. TextButton.Font = Enum.Font.SourceSans
  19. TextButton.Text = "Click for random tool"
  20. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  21. TextButton.TextScaled = true
  22. TextButton.TextSize = 14.000
  23. TextButton.TextWrapped = true
  24.  
  25. -- Scripts:
  26.  
  27. local function GKUXMM_fake_script() -- TextButton.LocalScript
  28. local script = Instance.new('LocalScript', TextButton)
  29.  
  30. local target = game.Players.LocalPlayer.Backpack
  31.  
  32. script.Parent.MouseButton1Click:Connect(function()
  33. _G.target = target
  34. local target = game.Players.LocalPlayer
  35. script.Gun:Clone().Parent = target.Backpack
  36. end)
  37. end
  38. coroutine.wrap(GKUXMM_fake_script)()
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement