Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local TextLabel = Instance.new("TextLabel")
  6. local TextBox = Instance.new("TextBox")
  7. local TextButton = Instance.new("TextButton")
  8. local TextButton_2 = Instance.new("TextButton")
  9.  
  10. -- Properties
  11.  
  12. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  13.  
  14. Frame.Parent = ScreenGui
  15. Frame.BackgroundColor3 = Color3.new(0.701961, 0.223529, 1)
  16. Frame.Position = UDim2.new(0, 789, 0, 0)
  17. Frame.Size = UDim2.new(0, 307, 0, 253)
  18. Frame.Active = true
  19. Frame.Draggable = true
  20. Frame.Visible = false
  21.  
  22. TextLabel.Parent = Frame
  23. TextLabel.BackgroundColor3 = Color3.new(0.54902, 0, 1)
  24. TextLabel.Size = UDim2.new(0, 307, 0, 50)
  25. TextLabel.Font = Enum.Font.SourceSans
  26. TextLabel.Text = "Retards R2DA GUI"
  27. TextLabel.TextScaled = true
  28. TextLabel.TextSize = 14
  29. TextLabel.TextWrapped = true
  30.  
  31. TextBox.Parent = Frame
  32. TextBox.BackgroundColor3 = Color3.new(0.54902, 0, 1)
  33. TextBox.Position = UDim2.new(0, 54, 0, 79)
  34. TextBox.Size = UDim2.new(0, 200, 0, 29)
  35. TextBox.Font = Enum.Font.SourceSans
  36. TextBox.Text = "Gun"
  37. TextBox.TextScaled = true
  38. TextBox.TextSize = 14
  39. TextBox.TextWrapped = true
  40.  
  41. TextButton.Parent = Frame
  42. TextButton.BackgroundColor3 = Color3.new(0.54902, 0, 1)
  43. TextButton.Position = UDim2.new(0, 54, 0, 151)
  44. TextButton.Size = UDim2.new(0, 200, 0, 43)
  45. TextButton.Font = Enum.Font.SourceSans
  46. TextButton.Text = "Get Skins!"
  47. TextButton.TextScaled = true
  48. TextButton.TextSize = 14
  49. TextButton.TextWrapped = true
  50.  
  51. TextButton_2.Parent = ScreenGui
  52. TextButton_2.BackgroundColor3 = Color3.new(0.705882, 0.72549, 1)
  53. TextButton_2.Position = UDim2.new(0, 0, 0, 31)
  54. TextButton_2.Size = UDim2.new(0, 86, 0, 50)
  55. TextButton_2.Font = Enum.Font.SourceSans
  56. TextButton_2.Text = "Open"
  57. TextButton_2.TextScaled = true
  58. TextButton_2.TextSize = 14
  59. TextButton_2.TextWrapped = true
  60.  
  61. TextButton_2.MouseButton1Click:connect(function()
  62. if TextButton_2.Text == "Open" then
  63. Frame.Visible = true
  64. TextButton_2.Text = "Close"
  65. else
  66. if TextButton_2.Text == "Close" then
  67. Frame.Visible = false
  68. TextButton_2.Text = "Open"
  69. end
  70. end
  71. end)
  72.  
  73. TextButton.MouseButton1Click:connect(function()
  74. local weapon = TextBox.Text
  75. for i,v in pairs(game.RStorage.Shop.Weapons:GetChildren()) do
  76. if v.Name == (weapon) or string.find(string.lower(v.Name), string.lower(weapon)) then
  77. for i,t in pairs(v.Content:GetChildren()) do
  78. for i,e in pairs(game.Players.LocalPlayer.Inventory.Weapons:GetChildren()) do
  79. if e.Name == (weapon) or string.find(string.lower(e.Name), string.lower(weapon)) then
  80. t:Clone().Parent = e
  81. end
  82. end
  83. end
  84. end
  85. end
  86. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement