Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local TweenService = game:GetService("TweenService")
- local UserInputService = game:GetService("UserInputService")
- local SoundService = game:GetService("SoundService")
- local LocalPlayer = Players.LocalPlayer
- local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
- local oldGui = PlayerGui:FindFirstChild("TradeFreezeCleanBlackGUI")
- if oldGui then
- oldGui:Destroy()
- end
- local CLICK_SOUND_ID = "rbxassetid://88442833509532"
- local function playClick()
- local sound = Instance.new("Sound")
- sound.SoundId = CLICK_SOUND_ID
- sound.Volume = 1
- sound.Parent = SoundService
- sound:Play()
- sound.Ended:Connect(function()
- sound:Destroy()
- end)
- end
- local function tween(obj, time, props, style, direction)
- return TweenService:Create(
- obj,
- TweenInfo.new(
- time,
- style or Enum.EasingStyle.Quart,
- direction or Enum.EasingDirection.Out
- ),
- props
- )
- end
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Name = "TradeFreezeCleanBlackGUI"
- ScreenGui.ResetOnSpawn = false
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.Parent = PlayerGui
- local MainFrame = Instance.new("Frame")
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ScreenGui
- MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- MainFrame.Size = UDim2.new(0, 420, 0, 230)
- MainFrame.BackgroundColor3 = Color3.fromRGB(12, 12, 12)
- MainFrame.BorderSizePixel = 0
- MainFrame.ClipsDescendants = true
- local MainCorner = Instance.new("UICorner")
- MainCorner.CornerRadius = UDim.new(0, 18)
- MainCorner.Parent = MainFrame
- local MainStroke = Instance.new("UIStroke")
- MainStroke.Parent = MainFrame
- MainStroke.Color = Color3.fromRGB(38, 38, 38)
- MainStroke.Thickness = 1
- local MainGradient = Instance.new("UIGradient")
- MainGradient.Parent = MainFrame
- MainGradient.Rotation = 90
- MainGradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0, Color3.fromRGB(16, 16, 16)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(10, 10, 10))
- }
- local Header = Instance.new("Frame")
- Header.Parent = MainFrame
- Header.Size = UDim2.new(1, 0, 0, 58)
- Header.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- Header.BorderSizePixel = 0
- local HeaderCorner = Instance.new("UICorner")
- HeaderCorner.CornerRadius = UDim.new(0, 18)
- HeaderCorner.Parent = Header
- local HeaderFix = Instance.new("Frame")
- HeaderFix.Parent = Header
- HeaderFix.Size = UDim2.new(1, 0, 0, 20)
- HeaderFix.Position = UDim2.new(0, 0, 1, -20)
- HeaderFix.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- HeaderFix.BorderSizePixel = 0
- local Divider = Instance.new("Frame")
- Divider.Parent = Header
- Divider.AnchorPoint = Vector2.new(0.5, 1)
- Divider.Position = UDim2.new(0.5, 0, 1, 0)
- Divider.Size = UDim2.new(1, -24, 0, 1)
- Divider.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- Divider.BorderSizePixel = 0
- local Title = Instance.new("TextLabel")
- Title.Parent = Header
- Title.BackgroundTransparency = 1
- Title.Position = UDim2.new(0, 18, 0, 0)
- Title.Size = UDim2.new(1, -70, 1, 0)
- Title.Font = Enum.Font.GothamBold
- Title.Text = "Steal A Brainrot Trade Freeze (FREE!!)"
- Title.TextColor3 = Color3.fromRGB(245, 245, 245)
- Title.TextSize = 16
- Title.TextXAlignment = Enum.TextXAlignment.Left
- local Close = Instance.new("TextButton")
- Close.Parent = Header
- Close.Size = UDim2.new(0, 28, 0, 28)
- Close.Position = UDim2.new(1, -40, 0.5, -14)
- Close.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- Close.BorderSizePixel = 0
- Close.Text = "×"
- Close.TextColor3 = Color3.fromRGB(220, 220, 220)
- Close.TextSize = 18
- Close.Font = Enum.Font.GothamBold
- Close.AutoButtonColor = false
- local CloseCorner = Instance.new("UICorner")
- CloseCorner.CornerRadius = UDim.new(0, 9)
- CloseCorner.Parent = Close
- local CloseStroke = Instance.new("UIStroke")
- CloseStroke.Parent = Close
- CloseStroke.Color = Color3.fromRGB(34, 34, 34)
- CloseStroke.Thickness = 1
- local Container = Instance.new("Frame")
- Container.Parent = MainFrame
- Container.BackgroundTransparency = 1
- Container.Position = UDim2.new(0, 18, 0, 84)
- Container.Size = UDim2.new(1, -36, 0, 110)
- local Layout = Instance.new("UIListLayout")
- Layout.Parent = Container
- Layout.Padding = UDim.new(0, 14)
- Layout.FillDirection = Enum.FillDirection.Vertical
- Layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- Layout.VerticalAlignment = Enum.VerticalAlignment.Top
- local function createButton(text)
- local Button = Instance.new("TextButton")
- Button.Parent = Container
- Button.Size = UDim2.new(1, 0, 0, 48)
- Button.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
- Button.BorderSizePixel = 0
- Button.AutoButtonColor = false
- Button.Text = text
- Button.TextColor3 = Color3.fromRGB(245, 245, 245)
- Button.TextSize = 14
- Button.Font = Enum.Font.GothamMedium
- local Corner = Instance.new("UICorner")
- Corner.CornerRadius = UDim.new(0, 12)
- Corner.Parent = Button
- local Stroke = Instance.new("UIStroke")
- Stroke.Parent = Button
- Stroke.Color = Color3.fromRGB(34, 34, 34)
- Stroke.Thickness = 1
- local Highlight = Instance.new("Frame")
- Highlight.Parent = Button
- Highlight.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Highlight.BackgroundTransparency = 0.97
- Highlight.BorderSizePixel = 0
- Highlight.Position = UDim2.new(0, 1, 0, 1)
- Highlight.Size = UDim2.new(1, -2, 0, 1)
- local HighlightCorner = Instance.new("UICorner")
- HighlightCorner.CornerRadius = UDim.new(0, 12)
- HighlightCorner.Parent = Highlight
- local defaultColor = Color3.fromRGB(18, 18, 18)
- local hoverColor = Color3.fromRGB(22, 22, 22)
- local pressColor = Color3.fromRGB(26, 26, 26)
- Button.MouseEnter:Connect(function()
- tween(Button, 0.16, {
- BackgroundColor3 = hoverColor
- }, Enum.EasingStyle.Quad):Play()
- tween(Stroke, 0.16, {
- Color = Color3.fromRGB(44, 44, 44)
- }, Enum.EasingStyle.Quad):Play()
- end)
- Button.MouseLeave:Connect(function()
- tween(Button, 0.16, {
- BackgroundColor3 = defaultColor
- }, Enum.EasingStyle.Quad):Play()
- tween(Stroke, 0.16, {
- Color = Color3.fromRGB(34, 34, 34)
- }, Enum.EasingStyle.Quad):Play()
- end)
- Button.MouseButton1Down:Connect(function()
- playClick()
- tween(Button, 0.08, {
- BackgroundColor3 = pressColor,
- Size = UDim2.new(1, 0, 0, 46)
- }, Enum.EasingStyle.Quad):Play()
- end)
- Button.MouseButton1Up:Connect(function()
- tween(Button, 0.12, {
- BackgroundColor3 = hoverColor,
- Size = UDim2.new(1, 0, 0, 48)
- }, Enum.EasingStyle.Quad):Play()
- end)
- return Button
- end
- local FreezeButton = createButton("Freeze Victims Screen")
- local AcceptButton = createButton("Auto Accept Trade")
- local dragging = false
- local dragStart
- local startPos
- Header.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = MainFrame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
- local delta = input.Position - dragStart
- MainFrame.Position = UDim2.new(
- startPos.X.Scale,
- startPos.X.Offset + delta.X,
- startPos.Y.Scale,
- startPos.Y.Offset + delta.Y
- )
- end
- end)
- Close.MouseEnter:Connect(function()
- tween(Close, 0.15, {
- BackgroundColor3 = Color3.fromRGB(26, 26, 26)
- }, Enum.EasingStyle.Quad):Play()
- end)
- Close.MouseLeave:Connect(function()
- tween(Close, 0.15, {
- BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- }, Enum.EasingStyle.Quad):Play()
- end)
- Close.MouseButton1Click:Connect(function()
- playClick()
- tween(Title, 0.12, {TextTransparency = 1}, Enum.EasingStyle.Quad):Play()
- tween(Close, 0.12, {
- TextTransparency = 1,
- BackgroundTransparency = 1
- }, Enum.EasingStyle.Quad):Play()
- tween(CloseStroke, 0.12, {Transparency = 1}, Enum.EasingStyle.Quad):Play()
- tween(Divider, 0.12, {BackgroundTransparency = 1}, Enum.EasingStyle.Quad):Play()
- for _, obj in ipairs(Container:GetChildren()) do
- if obj:IsA("TextButton") then
- tween(obj, 0.12, {
- BackgroundTransparency = 1,
- TextTransparency = 1
- }, Enum.EasingStyle.Quad):Play()
- for _, child in ipairs(obj:GetChildren()) do
- if child:IsA("UIStroke") then
- tween(child, 0.12, {Transparency = 1}, Enum.EasingStyle.Quad):Play()
- elseif child:IsA("Frame") then
- tween(child, 0.12, {BackgroundTransparency = 1}, Enum.EasingStyle.Quad):Play()
- end
- end
- end
- end
- task.wait(0.06)
- local closeTween = tween(MainFrame, 0.18, {
- Size = UDim2.new(0, 420, 0, 0),
- BackgroundTransparency = 1
- }, Enum.EasingStyle.Quart)
- local strokeTween = tween(MainStroke, 0.18, {
- Transparency = 1
- }, Enum.EasingStyle.Quart)
- closeTween:Play()
- strokeTween:Play()
- closeTween.Completed:Wait()
- ScreenGui:Destroy()
- end)
- MainFrame.Size = UDim2.new(0, 420, 0, 0)
- MainFrame.BackgroundTransparency = 1
- MainStroke.Transparency = 1
- Title.TextTransparency = 1
- Close.TextTransparency = 1
- Close.BackgroundTransparency = 1
- CloseStroke.Transparency = 1
- Divider.BackgroundTransparency = 1
- for _, obj in ipairs(Container:GetChildren()) do
- if obj:IsA("TextButton") then
- obj.BackgroundTransparency = 1
- obj.TextTransparency = 1
- for _, child in ipairs(obj:GetChildren()) do
- if child:IsA("UIStroke") then
- child.Transparency = 1
- elseif child:IsA("Frame") then
- child.BackgroundTransparency = 1
- end
- end
- end
- end
- tween(MainFrame, 0.22, {
- Size = UDim2.new(0, 420, 0, 230),
- BackgroundTransparency = 0
- }, Enum.EasingStyle.Quart):Play()
- tween(MainStroke, 0.18, {
- Transparency = 0
- }, Enum.EasingStyle.Quad):Play()
- task.delay(0.03, function()
- tween(Title, 0.18, {
- TextTransparency = 0
- }, Enum.EasingStyle.Quad):Play()
- tween(Close, 0.18, {
- TextTransparency = 0,
- BackgroundTransparency = 0
- }, Enum.EasingStyle.Quad):Play()
- tween(CloseStroke, 0.18, {
- Transparency = 0
- }, Enum.EasingStyle.Quad):Play()
- tween(Divider, 0.18, {
- BackgroundTransparency = 0
- }, Enum.EasingStyle.Quad):Play()
- end)
- task.delay(0.08, function()
- for _, obj in ipairs(Container:GetChildren()) do
- if obj:IsA("TextButton") then
- tween(obj, 0.18, {
- BackgroundTransparency = 0,
- TextTransparency = 0
- }, Enum.EasingStyle.Quad):Play()
- for _, child in ipairs(obj:GetChildren()) do
- if child:IsA("UIStroke") then
- tween(child, 0.18, {
- Transparency = 0
- }, Enum.EasingStyle.Quad):Play()
- elseif child:IsA("Frame") then
- tween(child, 0.18, {
- BackgroundTransparency = 0.97
- }, Enum.EasingStyle.Quad):Play()
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment