Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextBox = Instance.new("TextBox")
- local TextButton = Instance.new("TextButton")
- local TextButton_2 = Instance.new("TextButton")
- -- Properties
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.701961, 0.223529, 1)
- Frame.Position = UDim2.new(0, 789, 0, 0)
- Frame.Size = UDim2.new(0, 307, 0, 253)
- Frame.Active = true
- Frame.Draggable = true
- Frame.Visible = false
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0.54902, 0, 1)
- TextLabel.Size = UDim2.new(0, 307, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Retards R2DA GUI"
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(0.54902, 0, 1)
- TextBox.Position = UDim2.new(0, 54, 0, 79)
- TextBox.Size = UDim2.new(0, 200, 0, 29)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.Text = "Gun"
- TextBox.TextScaled = true
- TextBox.TextSize = 14
- TextBox.TextWrapped = true
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(0.54902, 0, 1)
- TextButton.Position = UDim2.new(0, 54, 0, 151)
- TextButton.Size = UDim2.new(0, 200, 0, 43)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Get Skins!"
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- TextButton_2.Parent = ScreenGui
- TextButton_2.BackgroundColor3 = Color3.new(0.705882, 0.72549, 1)
- TextButton_2.Position = UDim2.new(0, 0, 0, 31)
- TextButton_2.Size = UDim2.new(0, 86, 0, 50)
- TextButton_2.Font = Enum.Font.SourceSans
- TextButton_2.Text = "Open"
- TextButton_2.TextScaled = true
- TextButton_2.TextSize = 14
- TextButton_2.TextWrapped = true
- TextButton_2.MouseButton1Click:connect(function()
- if TextButton_2.Text == "Open" then
- Frame.Visible = true
- TextButton_2.Text = "Close"
- else
- if TextButton_2.Text == "Close" then
- Frame.Visible = false
- TextButton_2.Text = "Open"
- end
- end
- end)
- TextButton.MouseButton1Click:connect(function()
- local weapon = TextBox.Text
- for i,v in pairs(game.RStorage.Shop.Weapons:GetChildren()) do
- if v.Name == (weapon) or string.find(string.lower(v.Name), string.lower(weapon)) then
- for i,t in pairs(v.Content:GetChildren()) do
- for i,e in pairs(game.Players.LocalPlayer.Inventory.Weapons:GetChildren()) do
- if e.Name == (weapon) or string.find(string.lower(e.Name), string.lower(weapon)) then
- t:Clone().Parent = e
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement