Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local TeamModeChanged = Instance.new("BindableFunction")
- local IsTeamMode = false
- UserInputService.InputBegan:Connect(function(Key,GP)
- if not GP and Key.KeyCode == Enum.KeyCode.C then
- IsTeamMode = not IsTeamMode
- TeamModeChanged:Invoke()
- end
- end)
- local IsBigHeadMode = false
- UserInputService.InputBegan:Connect(function(Key,GP)
- if not GP and Key.KeyCode == Enum.KeyCode.Y then
- IsBigHeadMode = not IsBigHeadMode
- end
- end)
- ALLYCOLOR = {0,255,255}
- ENEMYCOLOR = {255,0,0}
- TRANSPARENCY = 0.25
- function createFlex()
- players = game:GetService("Players")
- faces = {"Front","Back","Bottom","Left","Right","Top"}
- players.PlayerAdded:Connect(function(p)
- p.CharacterAdded:Connect(function(character)
- createESP(character,p)
- end)
- end)
- function checkPart(obj) if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj.Name~="HumanoidRootPart" then return true end end
- function actualESP(obj,plr)
- for i=0,5 do
- local surface
- if RunService:IsStudio() == false then
- surface = Instance.new("SurfaceGui",game:GetService("CoreGui"))
- else
- surface = Instance.new("SurfaceGui",obj)
- end
- surface.Face = Enum.NormalId[faces[i+1]]
- surface.AlwaysOnTop = true
- surface.Adornee = obj
- local frame = Instance.new("Frame",surface)
- frame.Size = UDim2.new(1,0,1,0)
- frame.BorderSizePixel = 0
- frame.BackgroundTransparency = TRANSPARENCY
- if IsTeamMode then
- if plr.Team == players.LocalPlayer.Team then
- frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1],ALLYCOLOR[2],ALLYCOLOR[3])
- else
- frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1],ENEMYCOLOR[2],ENEMYCOLOR[3])
- end
- else
- frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1],ENEMYCOLOR[2],ENEMYCOLOR[3])
- end
- end
- end
- function createESP(c,p)
- local bugfix = c:WaitForChild("Head")
- for i,v in pairs(c:GetChildren()) do
- if checkPart(v) then
- actualESP(v,p)
- end
- end
- end
- for i,people in pairs(players:GetChildren())do
- if people ~= players.LocalPlayer then
- createESP(people.Character,people)
- people.CharacterAdded:Connect(function(character)
- createESP(character,people)
- end)
- end
- end
- end
- function StopFlex()
- if RunService:IsStudio() == false then
- for _,Child in ipairs(game:GetService("CoreGui"):GetChildren()) do
- if Child:IsA("SurfaceGui") or Child:IsA("BillboardGui") then
- Child:Destroy()
- end
- end
- else
- for _,Child in ipairs(game:GetService("Workspace"):GetDescendants()) do
- if Child:IsA("SurfaceGui") or Child:IsA("BillboardGui") then
- Child:Destroy()
- end
- end
- end
- end
- function CreateButton(Parent,Text)
- local Button = Instance.new("TextButton")
- Button.Text = Text
- Button.TextScaled = true
- Button.Font = Enum.Font.Garamond
- Button.Parent = Parent
- Button.BackgroundTransparency = 0.99
- Button.TextColor3 = Color3.new(255,255,255)
- Button.ZIndex = 6
- return Button
- end
- local Gui
- if not RunService:IsStudio() then
- Gui = Instance.new("ScreenGui",game:GetService("CoreGui"))
- else
- Gui = Instance.new("ScreenGui",Player.PlayerGui)
- end
- Gui.Name = "MainGameController"
- Gui.ResetOnSpawn = false
- local MainFrameMove = Instance.new("Frame",Gui)
- MainFrameMove.Visible = true
- MainFrameMove.Active = true
- MainFrameMove.Draggable = true
- MainFrameMove.Size = UDim2.new(0,350,0,500)
- MainFrameMove.BackgroundTransparency = 1
- MainFrameMove.ZIndex = 5
- MainFrameMove.Position = UDim2.new(0.05,0,0.45,0)
- local MainFrame = Instance.new("ScrollingFrame",MainFrameMove)
- MainFrame.BackgroundColor3 = Color3.fromRGB(80, 74, 77)
- MainFrame.Size = UDim2.new(0,300,0,450)
- local UIGrid = Instance.new("UIGridLayout",MainFrame)
- UIGrid.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIGrid.CellPadding = UDim2.new(0,25,0,25)
- local Teleport = CreateButton(MainFrame,"Teleporter")
- Activated = false
- Teleport.MouseButton1Click:Connect(function()
- Activated = not Activated
- end)
- Player:GetMouse().Button2Down:Connect(function()
- local Torso = Player.Character:FindFirstChild("Torso") or Player.Character:FindFirstChild("UpperTorso")
- if Activated == true then
- local Place = Player:GetMouse().Hit
- if Player:GetMouse().Target then
- local Character = Player.Character
- local LeftLeg = Character:FindFirstChild("Left Leg") or Character:FindFirstChild("LeftLowerLeg")
- if LeftLeg.Name == "Left Leg" then
- LeftLeg = LeftLeg.Size
- else
- LeftLeg = LeftLeg.Size + Character.LeftUpperLeg.Size
- end
- local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("LowerTorso")
- if Torso.Name == "Torso" then
- Torso = Torso.Size
- else
- Torso = Torso.Size + Character.LeftUpperLeg.Size
- end
- Player.Character:SetPrimaryPartCFrame(CFrame.new(Place.Position.X,Place.Position.Y + LeftLeg.Y + Torso.Y ,Place.Position.Z))
- end
- end
- end)
- local NoClip = CreateButton(MainFrame,"Noclip")
- local Activated2 = false
- NoClip.MouseButton1Click:Connect(function()
- local Character = Player.Character
- Activated2 = not Activated2
- game:GetService('RunService').Stepped:Connect(function()
- if Activated2 then
- Character.Humanoid:ChangeState(11)
- end
- end)
- Player:GetMouse().KeyDown:Connect(function(key)
- if key == "e" then
- Character.Humanoid:ChangeState(11)
- end
- end)
- end)
- local Fly = CreateButton(MainFrame,"Fly")
- local Activated3 = false
- local JP = false
- local FA = false
- Fly.MouseButton1Click:Connect(function()
- Activated3 = not Activated3
- end)
- Player:GetMouse().KeyDown:Connect(function(key)
- local Torso = Player.Character:FindFirstChild("Torso") or Player.Character:FindFirstChild("UpperTorso")
- if key == "e" then
- if Activated3 == true and FA == false and JP == false then
- JP = true
- FA = true
- coroutine.wrap(function()
- wait(1)
- JP = false
- end)()
- local BV = Instance.new("BodyVelocity",Torso)
- BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- game:GetService('RunService').Stepped:Connect(function()
- local IsKeyFound = false
- for _,Key in ipairs(UserInputService:GetKeysPressed()) do
- IsKeyFound = Key.KeyCode == Enum.KeyCode.W
- end
- if IsKeyFound then
- BV.Velocity = Player:GetMouse().Hit.lookVector*75
- else
- BV.Velocity = Vector3.new(0,0,0)
- end
- wait()
- end)
- end
- if Activated3 == true and FA == true and JP == false then
- JP = true
- FA = false
- coroutine.wrap(function()
- wait(1)
- JP = false
- end)()
- for _,Child in ipairs(Torso:GetChildren()) do
- if Child:IsA("BodyVelocity") then
- Child:Destroy()
- end
- end
- local tracks = Player.Character.Humanoid:GetPlayingAnimationTracks()
- for i, stoptracks in pairs(tracks) do
- stoptracks:Stop()
- end
- end
- end
- end)
- local BtoolsMove = CreateButton(MainFrame,"Btools Move")
- local Tools = Player:WaitForChild("Backpack")
- local Activated4 = false
- local BttolsEquiped = false
- BtoolsMove.MouseButton1Click:Connect(function()
- Activated4 = not Activated4
- if Activated4 == false then
- for _,Child in ipairs(Tools:GetChildren()) do
- if Child.Name == "BtoolsMove" then
- Child:Destroy()
- BttolsEquiped = false
- end
- end
- else
- local Btools = Instance.new("Tool",Tools)
- Btools.GripForward = Vector3.new(-1,0,0)
- Btools.GripPos = Vector3.new(0,0,-1.5)
- Btools.GripRight = Vector3.new(0,1,0)
- Btools.GripUp = Vector3.new(0,0,1)
- Btools.Name = "BtoolsMove"
- Btools.TextureId = "rbxasset://Textures/Clone.png"
- Btools.CanBeDropped = true
- Btools.RequiresHandle = true
- local Handle = Instance.new("Part",Btools)
- Handle.BrickColor = BrickColor.new("Institutional white")
- Handle.Reflectance = 0
- Handle.Size = Vector3.new(1,0.8,4)
- Handle.Name = "Handle"
- local HandleMesh = Instance.new("SpecialMesh",Handle)
- HandleMesh.MeshId = "rbxasset://fonts/clonewand.mesh"
- HandleMesh.Offset = Vector3.new(0,0,0)
- HandleMesh.Scale = Vector3.new(1,1,1)
- HandleMesh.VertexColor = Vector3.new(1,1,1)
- HandleMesh.TextureId = "rbxasset://textures/CloneWandTexture.png"
- Btools.Equipped:Connect(function()
- BttolsEquiped = true
- end)
- Btools.Unequipped:Connect(function()
- BttolsEquiped = false
- end)
- local PartEquiped
- Player:GetMouse().Button1Down:Connect(function()
- if BttolsEquiped then
- local Part = Player:GetMouse().Target
- if Part then
- PartEquiped = Part
- end
- end
- end)
- Player:GetMouse().Button1Up:Connect(function()
- if BttolsEquiped then
- PartEquiped = nil
- end
- end)
- Player:GetMouse().Move:Connect(function()
- if BttolsEquiped and PartEquiped and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) then
- local Hit = Player:GetMouse().Hit
- PartEquiped.Position = Vector3.new(Hit.X,PartEquiped.Size.Y/2+Hit.Y,Hit.Z)
- end
- end)
- end
- end)
- local SetSpeed = CreateButton(MainFrame,"Set Speed")
- local Activated5 = false
- SetSpeed.MouseButton1Click:Connect(function()
- Activated5 = not Activated5
- if Activated5 then
- Player.Character.Humanoid.WalkSpeed = 16
- end
- end)
- local AdminCommands = Instance.new("Frame",Gui)
- AdminCommands.Name = "AdminCommands"
- AdminCommands.Size = UDim2.new(0,1440,0,40)
- AdminCommands.Position = UDim2.new(0,0,0,320)
- AdminCommands.Visible = false
- AdminCommands.BorderSizePixel = 0
- AdminCommands.BackgroundColor3 = Color3.new(97, 90, 93)
- AdminCommands.BackgroundTransparency = 0.35
- local Text = Instance.new("TextBox",AdminCommands)
- Text.Name = "Value"
- Text.Size = AdminCommands.Size
- Text.BackgroundTransparency = 1
- Text.Visible = false
- Text.TextScaled = true
- Text.Text = ""
- Text.ZIndex = 3
- local Speed = CreateButton(MainFrame,"Admin Speed")
- local Activated6 = false
- Speed.MouseButton1Click:Connect(function()
- Activated6 = not Activated6
- local Connection
- if Activated6 then
- AdminCommands.Visible = true
- Text.Visible = true
- Connection = UserInputService.InputBegan:Connect(function(Key,GP)
- if Key.KeyCode == Enum.KeyCode.Return then
- local Number = tonumber(Text.Text)
- if Number then
- Player.Character.Humanoid.WalkSpeed = Number
- end
- AdminCommands.Visible = false
- Text.Visible = false
- Text.Text = ""
- Activated6 = false
- Connection:Disconnect()
- end
- end)
- else
- if Connection then Connection:Disconnect() Connection = nil end
- AdminCommands.Visible = false
- Text.Visible = false
- Text.Text = ""
- end
- end)
- local Jump = CreateButton(MainFrame,"Admin Jump")
- local Activated7 = false
- Jump.MouseButton1Click:Connect(function()
- Activated7 = not Activated7
- local Connection
- if Activated7 then
- AdminCommands.Visible = true
- Text.Visible = true
- Connection = UserInputService.InputBegan:Connect(function(Key,GP)
- if Key.KeyCode == Enum.KeyCode.Return then
- local Number = tonumber(Text.Text)
- if Number then
- Player.Character.Humanoid.JumpPower = Number
- end
- AdminCommands.Visible = false
- Text.Visible = false
- Text.Text = ""
- Activated7 = false
- Connection:Disconnect()
- end
- end)
- else
- if Connection then Connection:Disconnect(); Connection = nil end
- AdminCommands.Visible = false
- Text.Visible = false
- Text.Text = ""
- end
- end)
- local Tp = CreateButton(MainFrame,"Admin TP")
- local Activated8 = false
- Tp.MouseButton1Click:Connect(function()
- Activated8 = not Activated8
- local Connection
- if Activated8 then
- AdminCommands.Visible = true
- Text.Visible = true
- Connection = UserInputService.InputBegan:Connect(function(Key,GP)
- if Key.KeyCode == Enum.KeyCode.Return then
- local Msg = Text.Text
- if Msg then
- local PlayerToTeleport
- for _,Child in ipairs(game.Players:GetChildren()) do
- if string.sub(string.lower(Child.Name),1,#Msg) == string.lower(Msg) then
- PlayerToTeleport = Child.Character
- end
- end
- if Player then
- Player.Character:SetPrimaryPartCFrame(PlayerToTeleport.Head.CFrame)
- end
- end
- AdminCommands.Visible = false
- Text.Visible = false
- Text.Text = ""
- Activated7 = false
- Connection:Disconnect()
- end
- end)
- else
- if Connection then Connection:Disconnect(); Connection = nil end
- AdminCommands.Visible = false
- Text.Visible = false
- Text.Text = ""
- end
- end)
- local PartTp = CreateButton(MainFrame,"Part TP")
- local Activated9 = false
- PartTp.MouseButton1Click:Connect(function()
- Activated9 = not Activated9
- local Connection
- if Activated9 then
- Text.Visible = true
- Connection = UserInputService.InputBegan:Connect(function(Key,GP)
- if Key.KeyCode == Enum.KeyCode.Return then
- local Msg = Text.Text
- if Msg then
- local PartToTeleport
- for _,Child in ipairs(workspace:GetDescendants()) do
- if string.sub(string.lower(Child.Name),1,#Msg) == string.lower(Msg) then
- PartToTeleport = Child
- end
- end
- if PartToTeleport and PartToTeleport:IsA("BasePart") then
- Player.Character:SetPrimaryPartCFrame(PartToTeleport.CFrame)
- end
- end
- AdminCommands.Visible = false
- Text.Visible = false
- Text.Text = ""
- Activated9 = false
- Connection:Disconnect()
- end
- end)
- else
- if Connection then Connection:Disconnect(); Connection = nil end
- AdminCommands.Visible = false
- Text.Visible = false
- Text.Text = ""
- end
- end)
- local PrintName = CreateButton(MainFrame,"Name Printer")
- local Activated10 = false
- local PrinterEquiped = false
- PrintName.MouseButton1Click:Connect(function()
- Activated10 = not Activated10
- if Activated10 == false then
- for _,Child in ipairs(Tools:GetChildren()) do
- if Child.Name == "Name Printer" then
- Child:Destroy()
- PrinterEquiped = false
- end
- end
- else
- local Btools = Instance.new("Tool",Tools)
- Btools.GripForward = Vector3.new(-1,0,0)
- Btools.GripPos = Vector3.new(0,0,-1.5)
- Btools.GripRight = Vector3.new(0,1,0)
- Btools.GripUp = Vector3.new(0,0,1)
- Btools.Name = "Name Printer"
- Btools.TextureId = "rbxasset://Textures/Clone.png"
- Btools.CanBeDropped = true
- Btools.RequiresHandle = true
- local Handle = Instance.new("Part",Btools)
- Handle.BrickColor = BrickColor.new("Institutional white")
- Handle.Reflectance = 0
- Handle.Size = Vector3.new(1,0.8,4)
- Handle.Name = "Handle"
- local HandleMesh = Instance.new("SpecialMesh",Handle)
- HandleMesh.MeshId = "rbxasset://fonts/clonewand.mesh"
- HandleMesh.Offset = Vector3.new(0,0,0)
- HandleMesh.Scale = Vector3.new(1,1,1)
- HandleMesh.VertexColor = Vector3.new(1,1,1)
- HandleMesh.TextureId = "rbxasset://textures/CloneWandTexture.png"
- Btools.Equipped:Connect(function()
- PrinterEquiped = true
- end)
- Btools.Unequipped:Connect(function()
- PrinterEquiped = false
- end)
- Player:GetMouse().Button1Down:Connect(function()
- if PrinterEquiped then
- local Part = Player:GetMouse().Target
- if Part then
- print(Part.Name)
- end
- end
- end)
- end
- end)
- local AimBot = CreateButton(MainFrame,"AimBot")
- local Activated11 = false
- function ChangeFlex()
- if Activated11 then
- createFlex()
- else
- StopFlex()
- end
- end
- AimBot.MouseButton1Click:Connect(function()
- Activated11 = not Activated11
- ChangeFlex()
- end)
- TeamModeChanged.OnInvoke = function()
- if Activated11 then
- StopFlex()
- wait(0.1)
- createFlex()
- end
- end
- for _,Child in ipairs(game.Teams:GetTeams()) do
- Child.PlayerRemoved:Connect(function(Plr)
- if Player.Name == Plr.Name then
- if Activated11 then
- StopFlex()
- wait(0.1)
- createFlex()
- end
- end
- end)
- end
- function IsToolEquiped()
- for _,Child in ipairs(Player.Character:GetChildren()) do
- if Child:IsA("Tool") then
- return true
- end
- end
- return false
- end
- local RandomBigHeadGUID = game:GetService("HttpService"):GenerateGUID(false)
- RunService.RenderStepped:Connect(function()
- if Activated11 and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
- if IsToolEquiped() then
- local DistanceBest = {Character = nil,Studs = 9999999999999999}
- for _,Plr in ipairs(game.Players:GetPlayers()) do
- if Plr.Character and Plr.Character:FindFirstChild("Head") and Plr.Character:FindFirstChild("Humanoid") and Plr.Character.Humanoid.Health > 0 then
- if IsTeamMode then
- if Plr.Team.TeamColor ~= Player.Team.TeamColor then
- if Plr.Character and Plr.Character:FindFirstChild("Head") then
- local Distance = (Plr.Character.Head.Position - Player.Character.Head.Position).Magnitude
- if DistanceBest.Studs > Distance then
- DistanceBest.Studs = Distance
- DistanceBest.Character = Plr.Character
- end
- end
- end
- elseif Plr.Name ~= Player.Name then
- if Plr.Character and Plr.Character:FindFirstChild("Head") then
- local Distance = (Plr.Character.Head.Position - Player.Character.Head.Position).Magnitude
- if DistanceBest.Studs > Distance then
- DistanceBest.Studs = Distance
- DistanceBest.Character = Plr.Character
- end
- end
- end
- end
- if DistanceBest.Character then
- local ForceFieldFound = false
- for _,Child in ipairs(DistanceBest.Character:GetChildren()) do
- if Child:IsA("ForceField") then
- ForceFieldFound = true
- break
- end
- end
- if IsBigHeadMode then
- if DistanceBest.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
- if not DistanceBest.Character:FindFirstChild(RandomBigHeadGUID) then
- local FakePLRhead = DistanceBest.Character.Head:Clone()
- FakePLRhead.Parent = DistanceBest.Character
- FakePLRhead.Name = RandomBigHeadGUID
- FakePLRhead.CanCollide = false
- local FakeHeadWeld = Instance.new("Weld",FakePLRhead)
- FakeHeadWeld.Name = RandomBigHeadGUID
- FakeHeadWeld.Part0 = DistanceBest.Character.Head
- FakeHeadWeld.Part1 = FakePLRhead
- DistanceBest.Character[RandomBigHeadGUID].Size = Vector3.new(15,15,15)
- end
- end
- end
- if IsBigHeadMode then
- workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position,DistanceBest.Character.Head.Position + Vector3.new(0,25/1.75,0))
- else
- workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position,DistanceBest.Character.Head.Position)
- end
- end
- end
- end
- end
- end)
- local function ResetFlex()
- if Activated11 then
- StopFlex()
- wait(0.1)
- createFlex()
- end
- end
- game.Players.PlayerAdded:Connect(function(PLRAdded)
- PLRAdded.CharacterAdded:Connect(function()
- ResetFlex()
- end)
- end)
- for _,PLRAdded in ipairs(game.Players:GetPlayers()) do
- PLRAdded.CharacterAdded:Connect(function()
- ResetFlex()
- end)
- end
- local Info = CreateButton(MainFrame,"Info")
- local InfoFrameMove = Instance.new("Frame",Gui)
- InfoFrameMove.Visible = true
- InfoFrameMove.Active = true
- InfoFrameMove.Draggable = true
- local InfoFrame = Instance.new("ScrollingFrame",InfoFrameMove)
- InfoFrame.Visible = false
- InfoFrame.BackgroundColor3 = Color3.fromRGB(80, 74, 77)
- InfoFrameMove.Position = UDim2.new(0.75,0,0.45,0)
- InfoFrame.Size = UDim2.new(0,300,0,450)
- InfoFrameMove.Size = UDim2.new(0,350,0,500)
- InfoFrameMove.BackgroundTransparency = 1
- InfoFrameMove.ZIndex = 5
- local UIFrameGrid = Instance.new("UIGridLayout",InfoFrame)
- UIFrameGrid.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIFrameGrid.CellPadding = UDim2.new(0,25,0,25)
- UIFrameGrid.CellSize = UDim2.new(0,250,0,50)
- Info.MouseButton1Click:Connect(function()
- InfoFrame.Visible = not InfoFrame.Visible
- end)
- local CreateInfoText = function()
- local Label = Instance.new("TextLabel")
- Label.TextScaled = true
- Label.Font = Enum.Font.Garamond
- Label.Parent = InfoFrame
- Label.BackgroundTransparency = 0.99
- Label.TextColor3 = Color3.new(255,255,255)
- Label.ZIndex = 6
- return Label
- end
- local InfoFly = CreateInfoText()
- local InfoNoclip = CreateInfoText()
- local InfoTeleporter = CreateInfoText()
- local InfoBtoolsMove = CreateInfoText()
- local InfoNamePrinter = CreateInfoText()
- local InfoAimbot = CreateInfoText()
- RunService:BindToRenderStep("InfoReset",Enum.RenderPriority.Input.Value,function()
- if InfoFrame.Visible then
- InfoFly.Text = "Fly: "..tostring(Activated3)
- InfoNoclip.Text = "Noclip: "..tostring(Activated2)
- InfoTeleporter.Text = "Teleporter: "..tostring(Activated)
- InfoBtoolsMove.Text = "Btools Move: "..tostring(Activated4)
- InfoAimbot.Text = "Aimbot: "..tostring(Activated11)
- InfoNamePrinter.Text = "Name printer: "..tostring(Activated10)
- end
- end)
- local CodeButton = CreateButton(MainFrame,"Script injector")
- local CodeFrameType = Instance.new("Frame",Gui)
- CodeFrameType.Visible = false
- CodeFrameType.Active = true
- CodeFrameType.Draggable = true
- CodeFrameType.BackgroundColor3 = Color3.fromRGB(103, 95, 99)
- CodeFrameType.Size = UDim2.new(0,900,0,500)
- CodeFrameType.Position = UDim2.new(0, 366,0, -29)
- CodeFrameType.ZIndex = 5
- local CodeScroller = Instance.new("ScrollingFrame",CodeFrameType)
- CodeScroller.Visible = true
- CodeScroller.BackgroundColor3 = Color3.fromRGB(127, 117, 122)
- CodeScroller.Position = UDim2.new(0,15,0,75)
- CodeScroller.Size = UDim2.new(0,750,0,350)
- CodeScroller.ZIndex = 6
- local TittleInjector = Instance.new("TextLabel",CodeFrameType)
- TittleInjector.Visible = true
- TittleInjector.Text = "Dab Gang"
- TittleInjector.Size = UDim2.new(0,850,0,50)
- TittleInjector.Position = UDim2.new(0,25,0,10)
- TittleInjector.TextScaled = true
- TittleInjector.BackgroundTransparency = 1
- TittleInjector.TextColor3 = Color3.fromRGB(177, 0, 2)
- TittleInjector.Font = Enum.Font.SciFi
- TittleInjector.ZIndex = 6
- local WrittenScript = Instance.new("TextBox",CodeScroller)
- WrittenScript.Size = UDim2.new(0,737,0,50)
- WrittenScript.MultiLine = true
- WrittenScript.BackgroundTransparency = 0.9999999999999
- WrittenScript.TextColor3 = Color3.fromRGB(6, 80, 145)
- WrittenScript.Font = Enum.Font.Code
- WrittenScript.ZIndex = 7
- WrittenScript.ClearTextOnFocus = false
- WrittenScript.TextWrapped = true
- WrittenScript.Active = true
- WrittenScript.Selectable = true
- WrittenScript.ShowNativeInput = true
- WrittenScript.BorderSizePixel = 3
- WrittenScript.TextScaled = true
- local MathMinimum = function(Num)
- if Num < 25 then
- return 25
- else
- return Num
- end
- end
- local TextService = game.TextService
- RunService:BindToRenderStep("WrittenScriptUpdate",Enum.RenderPriority.Input.Value,function()
- CodeScroller.CanvasSize = UDim2.new(0,672,0,(TextService:GetTextSize(WrittenScript.Text,Enum.FontSize.Size14.Value,Enum.Font.Code,WrittenScript.AbsoluteSize).Y*5)+7.5)
- WrittenScript.Position = UDim2.new(0,WrittenScript.Position.Y.Scale+0.0135,0)
- WrittenScript.Size = UDim2.new(0,737,0,TextService:GetTextSize(WrittenScript.Text,Enum.FontSize.Size14.Value,Enum.Font.Code,WrittenScript.AbsoluteSize).Y*5)
- end)
- CodeButton.MouseButton1Click:Connect(function()
- CodeFrameType.Visible = not CodeFrameType.Visible
- end)
- local RunWrittenScript = game.ReplicatedStorage:FindFirstChild("FireScript")
- if RunWrittenScript then
- local Succes,Message = pcall(function()
- loadstring("print('')")()
- end)
- if not Succes and Message ~= "loadstring() is not available" then
- game.TestService:Message("Please turn ServerScriptService.LoadStringEnabled true.")
- end
- end
- if RunWrittenScript then
- elseif RunService:IsStudio() and typeof(RunWrittenScript) == "nil" then
- game.TestService:Message("Cannot find FireScript, please create an RemoteEvent called FireScript in ReplicatedStorage. Thank you!")
- else
- loadstring(WrittenScript.Text)
- end
- local RunScript = Instance.new("TextButton",CodeFrameType)
- RunScript.Position = UDim2.new(0, 65,0, 434)
- RunScript.ZIndex = 7
- RunScript.Size = UDim2.new(0,155,0,50)
- RunScript.BorderSizePixel = 0
- RunScript.BackgroundColor3 = Color3.fromRGB(184, 184, 184)
- RunScript.Text = "Run Script"
- RunScript.TextScaled = true
- RunScript.MouseButton1Click:Connect(function()
- RunWrittenScript:FireServer(WrittenScript.Text,false)
- end)
- local DeleteScript = Instance.new("TextButton",CodeFrameType)
- DeleteScript.Position = UDim2.new(0, 250,0, 434)
- DeleteScript.ZIndex = 7
- DeleteScript.Size = UDim2.new(0,155,0,50)
- DeleteScript.BorderSizePixel = 0
- DeleteScript.BackgroundColor3 = Color3.fromRGB(184, 184, 184)
- DeleteScript.Text = "Delete Script"
- DeleteScript.TextScaled = true
- DeleteScript.MouseButton1Click:Connect(function()
- WrittenScript.Text = ""
- end)
- local VirtualGui
- if RunService:IsStudio() then
- VirtualGui = Player.PlayerGui
- else
- VirtualGui = game:GetService("CoreGui")
- end
- local SendToVirtualLog
- if RunService:IsStudio() == false then
- SendToVirtualLog = Instance.new("BindableEvent",game.CoreGui)
- SendToVirtualLog.Name = RandomBigHeadGUID
- else
- RunWrittenScript:FireServer(true)
- SendToVirtualLog = Player.PlayerGui:WaitForChild("Event")
- end
- local Colors = {
- ["RED"] = Color3.fromRGB(0,0,0);
- }
- local VirtualEvent
- if RunService:IsStudio() == false then
- VirtualEvent = Instance.new("BindableEvent",game.CoreGui)
- VirtualEvent.Name = "Virtual Event"
- else
- VirtualEvent = Instance.new("BindableEvent",Player.PlayerGui)
- VirtualEvent.Name = "Virtual Event"
- end
- SendToVirtualLog.Event:Connect(function(StringToPrint,Color)
- local VirtualColor = Colors[Color]
- VirtualEvent:Fire(StringToPrint,VirtualColor)
- end)
- VirtualEvent.Event:Connect(function(String,ColorString)
- print(String)
- end)
Add Comment
Please, Sign In to add comment