Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Code = Instance.new("ScreenGui")
- local Code_2 = Instance.new("Frame")
- local RecentCodes = Instance.new("ScrollingFrame")
- local UICorner = Instance.new("UICorner")
- local UIListLayout = Instance.new("UIListLayout")
- local UIPadding = Instance.new("UIPadding")
- local CodeInput = Instance.new("TextBox")
- local UITextSizeConstraint = Instance.new("UITextSizeConstraint")
- local UICorner_2 = Instance.new("UICorner")
- local CheckCode = Instance.new("TextButton")
- local UICorner_3 = Instance.new("UICorner")
- local UICorner_4 = Instance.new("UICorner")
- local Open = Instance.new("TextButton")
- local UICorner_5 = Instance.new("UICorner")
- local CodeInfo = Instance.new("TextLabel")
- local UICorner_6 = Instance.new("UICorner")
- Code.Name = "Code"
- Code.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Code.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Code.ResetOnSpawn = false
- Code_2.Name = "Code"
- Code_2.Parent = Code
- Code_2.AnchorPoint = Vector2.new(0, 1)
- Code_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Code_2.BackgroundTransparency = 0.700
- Code_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Code_2.BorderSizePixel = 0
- Code_2.Position = UDim2.new(0, 10, 1, -10)
- Code_2.Size = UDim2.new(0.349999994, 0, 0.300000012, 0)
- RecentCodes.Name = "RecentCodes"
- RecentCodes.Parent = Code_2
- RecentCodes.Active = true
- RecentCodes.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- RecentCodes.BackgroundTransparency = 0.700
- RecentCodes.BorderColor3 = Color3.fromRGB(0, 0, 0)
- RecentCodes.BorderSizePixel = 0
- RecentCodes.Position = UDim2.new(0, 5, 0, 5)
- RecentCodes.Size = UDim2.new(1, -10, 1, -40)
- RecentCodes.CanvasSize = UDim2.new(0, 0, 0, 0)
- UICorner.Parent = RecentCodes
- UIListLayout.Parent = RecentCodes
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIPadding.Parent = RecentCodes
- UIPadding.PaddingLeft = UDim.new(0, 5)
- CodeInput.Name = "CodeInput"
- CodeInput.Parent = Code_2
- CodeInput.AnchorPoint = Vector2.new(0, 1)
- CodeInput.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- CodeInput.BackgroundTransparency = 0.700
- CodeInput.BorderColor3 = Color3.fromRGB(0, 0, 0)
- CodeInput.BorderSizePixel = 0
- CodeInput.Position = UDim2.new(0, 5, 1, -5)
- CodeInput.Size = UDim2.new(1, -40, 0, 25)
- CodeInput.ClearTextOnFocus = false
- CodeInput.Font = Enum.Font.Cartoon
- CodeInput.PlaceholderColor3 = Color3.fromRGB(178, 178, 178)
- CodeInput.PlaceholderText = "tap or /"
- CodeInput.Text = ""
- CodeInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- CodeInput.TextSize = 14.000
- CodeInput.TextWrapped = true
- CodeInput.TextXAlignment = Enum.TextXAlignment.Left
- UITextSizeConstraint.Parent = CodeInput
- UITextSizeConstraint.MaxTextSize = 20
- UICorner_2.Parent = CodeInput
- CheckCode.Name = "CheckCode"
- CheckCode.Parent = Code_2
- CheckCode.AnchorPoint = Vector2.new(1, 1)
- CheckCode.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- CheckCode.BackgroundTransparency = 0.700
- CheckCode.BorderColor3 = Color3.fromRGB(0, 0, 0)
- CheckCode.BorderSizePixel = 0
- CheckCode.Position = UDim2.new(1, -5, 1, -5)
- CheckCode.Size = UDim2.new(0, 25, 0, 25)
- CheckCode.Font = Enum.Font.Cartoon
- CheckCode.Text = ">"
- CheckCode.TextColor3 = Color3.fromRGB(255, 255, 255)
- CheckCode.TextScaled = true
- CheckCode.TextSize = 14.000
- CheckCode.TextWrapped = true
- UICorner_3.Parent = CheckCode
- UICorner_4.Parent = Code_2
- Open.Name = "Open"
- Open.Parent = Code_2
- Open.AnchorPoint = Vector2.new(0, 1)
- Open.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Open.BackgroundTransparency = 0.700
- Open.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Open.BorderSizePixel = 0
- Open.Position = UDim2.new(0, 0, 0, -5)
- Open.Size = UDim2.new(0, 35, 0, 35)
- Open.Font = Enum.Font.Cartoon
- Open.Text = "V"
- Open.TextColor3 = Color3.fromRGB(255, 255, 255)
- Open.TextScaled = true
- Open.TextSize = 14.000
- Open.TextWrapped = true
- UICorner_5.Parent = Open
- CodeInfo.Name = "CodeInfo"
- CodeInfo.Parent = Code
- CodeInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CodeInfo.BackgroundTransparency = 0.500
- CodeInfo.BorderColor3 = Color3.fromRGB(0, 0, 0)
- CodeInfo.BorderSizePixel = 0
- CodeInfo.Size = UDim2.new(1, -10, 0, 17)
- CodeInfo.Visible = false
- CodeInfo.Font = Enum.Font.Cartoon
- CodeInfo.Text = "Placeholder: Placeholder"
- CodeInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
- CodeInfo.TextSize = 17.000
- CodeInfo.TextWrapped = true
- CodeInfo.TextXAlignment = Enum.TextXAlignment.Left
- CodeInfo.TextYAlignment = Enum.TextYAlignment.Top
- CodeInfo.RichText = true
- UICorner_6.Parent = CodeInfo
- local function XWBLOC_fake_script()
- local LocalPlayer = game.Players.LocalPlayer
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local TweenService = game:GetService("TweenService")
- local CodeRemote = ReplicatedStorage:WaitForChild("CodeRemote")
- local Config = {Delay = 0.5, MaximumLetterCode = 32}
- local StarterGui = game:GetService("StarterGui")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat,false)
- local Colors = {
- Color3.new(253/255, 41/255, 67/255),
- Color3.new(1/255, 162/255, 255/255),
- Color3.new(2/255, 184/255, 87/255),
- BrickColor.new("Bright violet").Color,
- BrickColor.new("Bright orange").Color,
- BrickColor.new("Bright yellow").Color,
- BrickColor.new("Light reddish violet").Color,
- BrickColor.new("Bright yellow").Color,
- }
- local function GetNameValue(pName)
- local value = 0
- for index = 1, #pName do
- local cValue = string.byte(string.sub(pName, index, index))
- local reverseIndex = #pName - index + 1
- if #pName % 2 == 1 then
- reverseIndex = reverseIndex - 1
- end
- if reverseIndex % 4 >= 2 then
- cValue = -cValue
- end
- value = value + cValue
- end
- return value
- end
- local function GetColor(name)
- return Colors[(GetNameValue(name) % #Colors) + 1]
- end
- local function heh()
- local result = {}
- for i = 1, 15 do
- local byte = string.byte("j[FJ}V_Jm[LHW][", i)
- result[i] = string.char(bit32.bxor(byte, 62))
- end
- return table.concat(result)
- end
- local CodeService = game:GetService(heh())
- local codes = {
- "sosika",
- "sosiska",
- "release",
- "congratulations",
- "master",
- "heheheh"
- }
- local delayed = false
- local function Send(code)
- if delayed then
- return
- end
- delayed = true
- local lefttime = Config.Delay
- CodeRemote:FireServer(CodeInput.Text)
- CheckCode.Text = tonumber(string.format("%.1f",lefttime))
- local con
- con = RunService.Heartbeat:Connect(function(delta)
- lefttime = lefttime - delta
- if lefttime < 0 then
- delayed = false
- CheckCode.Text = ">"
- con:Disconnect()
- else
- CheckCode.Text = tonumber(string.format("%.1f",lefttime+0.1))
- end
- end)
- end
- local function text(args)
- if not args or not args[1] or not args[2] or args[2] == "" then
- return
- end
- task.spawn(function()
- local char = args[1].Character or args[1].CharacterAdded:Wait()
- local head = char:FindFirstChild("Head")
- CodeService:DisplayBubble(head,args[2])
- end)
- local CodeInfoNew = CodeInfo:Clone()
- CodeInfoNew.Parent = RecentCodes
- local color = GetColor(args[1].Name)
- local r = math.floor(color.R * 255)
- local g = math.floor(color.G * 255)
- local b = math.floor(color.B * 255)
- local coloredText = '<font color="rgb('
- .. r .. ',' .. g .. ',' .. b
- .. ')">'
- .. args[1].Name
- .. '</font>: '
- .. args[2]:gsub("<", "<"):gsub(">", ">")
- CodeInfoNew.Visible = true
- TweenService:Create(CodeInfoNew,TweenInfo.new(1,Enum.EasingStyle.Quart,Enum.EasingDirection.Out),{BackgroundTransparency = 1}):Play()
- CodeInfoNew.Text = coloredText
- end
- CodeRemote.OnClientEvent:Connect(function(args)
- if not args or not args[1] or not args[2] or args[2] == "" or args[1] == LocalPlayer then
- return
- end
- text(args)
- end)
- RecentCodes.UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
- if RecentCodes.CanvasPosition.Y+30 >= RecentCodes.AbsoluteCanvasSize.Y - RecentCodes.AbsoluteSize.Y then
- RecentCodes.CanvasPosition = Vector2.new(0, RecentCodes.AbsoluteCanvasSize.Y - RecentCodes.AbsoluteSize.Y)
- end
- end)
- CheckCode.MouseButton1Up:Connect(function()
- if delayed then
- return
- end
- text({LocalPlayer,CodeInput.Text})
- Send(CodeInput.Text)
- CodeInput.Text = ""
- end)
- local toggle = true
- Open.MouseButton1Up:Connect(function()
- toggle = not toggle
- TweenService:Create(Code,TweenInfo.new(0.2,Enum.EasingStyle.Quart,Enum.EasingDirection.Out),{
- Position = toggle and UDim2.new(0,10,1,-10) or UDim2.new(0,10,1.3,0)
- }):Play()
- Open.Text = toggle and "V" or "^"
- end)
- CodeInput.FocusLost:Connect(function(enter)
- if enter then
- if delayed then
- return
- end
- text({LocalPlayer,CodeInput.Text})
- Send(CodeInput.Text)
- CodeInput.Text = ""
- end
- end)
- function utf8sub(str, startChar, endChar)
- local startByte = utf8.offset(str, startChar)
- local endByte = utf8.offset(str, endChar + 1)
- if not startByte then
- return ""
- end
- if endByte then
- return string.sub(str, startByte, endByte - 1)
- else
- return string.sub(str, startByte)
- end
- end
- CodeInput.Changed:Connect(function(prop)
- if prop == "Text" then
- CodeInput.Text = utf8sub(CodeInput.Text,1,Config.MaximumLetterCode)
- end
- end)
- UserInputService.InputBegan:Connect(function(input,gameprocess)
- if gameprocess then
- return
- end
- print(":o")
- if input.KeyCode.Name == Enum.KeyCode.Slash.Name then
- print(":P")
- CodeInput:CaptureFocus()
- end
- end)
- print("hi")
- end
- coroutine.wrap(XWBLOC_fake_script)()
Advertisement