Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local infector = Instance.new("ScreenGui")
- local TextLabel = Instance.new("TextLabel")
- local Frame = Instance.new("Frame")
- local beinfected = Instance.new("TextButton")
- local tptoplayer = Instance.new("TextButton")
- local saveplayer = Instance.new("TextButton")
- local TextBox = Instance.new("TextBox")
- local ResetCharacter = Instance.new("TextButton")
- local TextLabel_2 = Instance.new("TextLabel")
- local face = Instance.new("ImageLabel")
- --Properties:
- infector.Name = "infector"
- infector.Parent = game:GetService("CoreGui")
- infector.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- infector.DisplayOrder = 999999999
- infector.ResetOnSpawn = false
- TextLabel.Parent = infector
- TextLabel.BackgroundColor3 = Color3.fromRGB(39, 39, 39)
- TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.261087775, 0, 0.387478828, 0)
- TextLabel.Size = UDim2.new(0, 490, 0, 19)
- TextLabel.Font = Enum.Font.Sarpanch
- TextLabel.Text = "INFECT EXPLOIT"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 14.000
- Frame.Parent = TextLabel
- Frame.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0, 0, 1.00000083, 0)
- Frame.Size = UDim2.new(0, 490, 0, 140)
- beinfected.Name = "beinfected"
- beinfected.Parent = Frame
- beinfected.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
- beinfected.BorderColor3 = Color3.fromRGB(0, 0, 0)
- beinfected.BorderSizePixel = 0
- beinfected.Position = UDim2.new(0.753061235, 0, 0.696200371, 0)
- beinfected.Size = UDim2.new(0, 112, 0, 36)
- beinfected.Font = Enum.Font.SourceSans
- beinfected.Text = "BE INFECTED"
- beinfected.TextColor3 = Color3.fromRGB(255, 255, 255)
- beinfected.TextSize = 14.000
- tptoplayer.Name = "tptoplayer"
- tptoplayer.Parent = Frame
- tptoplayer.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
- tptoplayer.BorderColor3 = Color3.fromRGB(0, 0, 0)
- tptoplayer.BorderSizePixel = 0
- tptoplayer.Position = UDim2.new(0.51224488, 0, 0.696200371, 0)
- tptoplayer.Size = UDim2.new(0, 112, 0, 36)
- tptoplayer.Font = Enum.Font.SourceSans
- tptoplayer.Text = "Teleport To Player"
- tptoplayer.TextColor3 = Color3.fromRGB(255, 255, 255)
- tptoplayer.TextSize = 14.000
- saveplayer.Name = "saveplayer"
- saveplayer.Parent = Frame
- saveplayer.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
- saveplayer.BorderColor3 = Color3.fromRGB(0, 0, 0)
- saveplayer.BorderSizePixel = 0
- saveplayer.Position = UDim2.new(0.0142857144, 0, 0.696200371, 0)
- saveplayer.Size = UDim2.new(0, 106, 0, 36)
- saveplayer.Font = Enum.Font.SourceSans
- saveplayer.Text = "Save Player"
- saveplayer.TextColor3 = Color3.fromRGB(255, 255, 255)
- saveplayer.TextSize = 14.000
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.fromRGB(57, 57, 57)
- TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0.197959185, 0, 0.114350237, 0)
- TextBox.Size = UDim2.new(0, 295, 0, 50)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.TextSize = 14.000
- ResetCharacter.Name = "ResetCharacter"
- ResetCharacter.Parent = Frame
- ResetCharacter.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
- ResetCharacter.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ResetCharacter.BorderSizePixel = 0
- ResetCharacter.Position = UDim2.new(0.248979598, 0, 0.696200371, 0)
- ResetCharacter.Size = UDim2.new(0, 120, 0, 36)
- ResetCharacter.Font = Enum.Font.SourceSans
- ResetCharacter.Text = "Reset Character"
- ResetCharacter.TextColor3 = Color3.fromRGB(255, 255, 255)
- ResetCharacter.TextSize = 14.000
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.BackgroundTransparency = 1.000
- TextLabel_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_2.BorderSizePixel = 0
- TextLabel_2.Position = UDim2.new(0.197959185, 0, 0.471428573, 0)
- TextLabel_2.Size = UDim2.new(0, 167, 0, 31)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.Text = "playername"
- TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.TextSize = 14.000
- face.Name = "face"
- face.Parent = TextLabel_2
- face.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- face.BackgroundTransparency = 1.000
- face.BorderColor3 = Color3.fromRGB(0, 0, 0)
- face.BorderSizePixel = 0
- face.Position = UDim2.new(1.33726716, 0, 0, 0)
- face.Size = UDim2.new(0, 71, 0, 31)
- face.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
- -- Scripts:
- local function DISKBN_fake_script() -- TextLabel.LocalScript
- local script = Instance.new('LocalScript', TextLabel)
- local UserInputService = game:GetService("UserInputService")
- local gui = script.Parent
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end
- coroutine.wrap(DISKBN_fake_script)()
- local function VRZZEV_fake_script() -- Frame.LocalScript
- local script = Instance.new('LocalScript', Frame)
- local lp = game:GetService'Players'.LocalPlayer
- local char = lp.Character or lp.CharacterAdded:Wait()
- local hrp = char:FindFirstChild("HumanoidRootPart")
- local HUM = char:FindFirstChild("Humanoid")
- local team = lp.Team
- lp.CharacterAdded:Connect(function(newbro)
- char = newbro
- hrp = char:WaitForChild("HumanoidRootPart")
- HUM = char:WaitForChild("Humanoid")
- end)
- local beninfected = script.Parent.beinfected
- local saveplayer = script.Parent.saveplayer
- local tptoplayer = script.Parent.tptoplayer
- local resetchar = script.Parent.ResetCharacter
- local textbox = script.Parent.TextBox
- local Player = {}
- local SelectedPlayer = textbox.Text
- local function Team()
- return tostring(lp.Team)
- end
- local function ChangeSide()
- local currentPos = hrp.CFrame
- local part = workspace.Map.Infectors:GetChildren()[2].Part
- if part and hrp then
- hrp.CFrame = part.CFrame
- wait(0.2)
- hrp.CFrame = currentPos
- else
- warn("HumanoidRootPart not found or or no infector part found")
- end
- end
- local function PlayerTable()
- table.clear(Player)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- table.insert(Player, v)
- end
- print("saved game:GetService'Players' ")
- print(Player[2])
- print(Player[4])
- print(Player[1])
- end
- local function GotoPlayer(player)
- if hrp and player then
- while task.wait() do
- if tostring(player.Team) == Team() then
- break
- end
- if player and player.Character and player.Character:FindFirstChild'HumanoidRootPart' then
- local root = player.Character:FindFirstChild'HumanoidRootPart'
- hrp.CFrame = root.CFrame * CFrame.new(0,0,2.5)
- else
- warn("??? no humanoidrootpart? no player??")
- end
- end
- else
- warn("HumanoidRootPart not found or player dont exist or left")
- end
- end
- local function TakePlayer()
- local SelectedPlayer = textbox.Text
- if Team() == "Smiling" then
- for i,v in ipairs(Player) do
- if string.find(tostring(v), SelectedPlayer) then
- GotoPlayer(v)
- end
- end
- else
- warn("Your current Team: ".. Team() .. " Please Change Side by using BEINFECTED Button")
- end
- end
- local function die()
- HUM.Health = 0
- end
- beninfected.MouseButton1Click:Connect(function()
- ChangeSide()
- end)
- saveplayer.MouseButton1Click:Connect(function()
- PlayerTable()
- end)
- tptoplayer.MouseButton1Click:Connect(function()
- TakePlayer()
- end)
- resetchar.MouseButton1Click:Connect(function()
- die()
- end)
- end
- coroutine.wrap(VRZZEV_fake_script)()
- local function KJFHQ_fake_script() -- TextLabel_2.LocalScript
- local script = Instance.new('LocalScript', TextLabel_2)
- local textbox = script.Parent.Parent.TextBox
- local content = textbox.ContentText
- local label = script.Parent
- local broface2_skull_emoji_goofy_ahh = script.Parent.face
- textbox:GetPropertyChangedSignal("ContentText"):Connect(function()
- local contant = textbox.ContentText
- for i,v in next, game:GetService("Players"):GetPlayers() do
- if string.find(v.Name, content) then
- label.Text = v.Name .. " (" .. v.DisplayName .. ")"
- broface2_skull_emoji_goofy_ahh.Image = "rbxthumb://type=AvatarHeadShot&id="..v.UserId .."&w=420&h=420"
- end
- end
- end)
- end
- coroutine.wrap(KJFHQ_fake_script)()
Add Comment
Please, Sign In to add comment