Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local on = true
- local currenttarget = nil
- local whitelistedname = ""
- local rep = game.Players.LocalPlayer:GetAttribute("Reputation")
- local ui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
- ui.IgnoreGuiInset = true
- local t = Instance.new("TextLabel",ui)
- t.Size = UDim2.fromOffset(60,25)
- t.Position = UDim2.fromScale(0.5,0.525)
- t.AnchorPoint = Vector2.new(0.5,0.5)
- t.TextColor3 = Color3.new(1,1,1)
- t.TextScaled = true
- t.BackgroundTransparency=0.8
- t.TextTransparency = 0.25
- t.BackgroundColor3 = Color3.new(0,0,0)
- local t2 = Instance.new("TextLabel",ui)
- t2.Size = UDim2.fromOffset(60,25)
- t2.Position = UDim2.fromScale(0.5,0.54)
- t2.AnchorPoint = Vector2.new(0.5,0.5)
- t2.TextColor3 = Color3.new(1,1,1)
- t2.TextScaled = true
- t2.BackgroundTransparency=0.8
- t2.TextTransparency = 0.25
- t2.BackgroundColor3 = Color3.new(0,0,0)
- if rep > 0 then
- whitelistedname = "Rebel"
- elseif rep < 0 then
- whitelistedname = "Vulture"
- else
- whitelistedname = "Blah Blah just some random name nothing will have"
- end
- game.UserInputService.InputBegan:Connect(function(i)
- if i.KeyCode == Enum.KeyCode.RightAlt then
- ui.Enabled = not ui.Enabled
- end
- if i.KeyCode == Enum.KeyCode.RightBracket then
- on = not on
- print("Triggerbot Status: "..tostring(on))
- end
- if i.KeyCode == Enum.KeyCode.R then
- currenttarget = nil
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- t.Text = tostring(on)
- if currenttarget == nil then
- t2.Text = "No Target"
- else
- t2.Text = currenttarget.Name
- end
- if on then
- local m = game.Players.LocalPlayer:GetMouse()
- local h = m.Target
- if h then
- local m = h:FindFirstAncestorOfClass("Model")
- if m then
- if m:FindFirstChildOfClass("Humanoid") and not game.Players:FindFirstChild(m.Name) and not m:FindFirstAncestor("Other") and not string.find(m.Name,whitelistedname) and not string.find(m.Name,"Broker") and not string.find(m.Name,"Merchant") then
- if m:FindFirstChildOfClass("Humanoid").Health > 0 then
- currenttarget = m
- end
- end
- end
- end
- end
- if currenttarget ~= nil and on then
- workspace.CurrentCamera.CFrame = CFrame.lookAt(workspace.CurrentCamera.CFrame.Position,currenttarget:FindFirstChild("Head").Position)
- mouse1click()
- if currenttarget.Humanoid.Health <= 0 then
- currenttarget = nil
- end
- else
- currenttarget = nil
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement