Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- hl/https://code.stypi.com/raw/nZHFXIlEQs5UF7XIOYsaGPc1
- ]]
- player=game:GetService'Players'.LocalPlayer
- nqqas={"ethan15864"}--
- aggrorange=120;
- messages={
- [1]="Humanoid Detected: %p";
- [2.4]="Scanning";
- [5.9]="WARNING";
- [6.1]="Threat detected; Engaging in combat";
- [6.3]="FIRE";
- }
- t=Instance.new("Tool", player.Backpack)
- t.Name="Bot"
- print("GS1029 Bot Awaiting Input");
- Instance.new("Part", t).Name="Handle"
- t.Equipped:connect(function()
- model=Instance.new("Model", workspace)
- model.Name="T609"
- print("GS1029 Bot Loaded");
- box=Instance.new("Part", model)
- box.FormFactor=Enum.FormFactor.Custom
- box.Size=Vector3.new(4, 4, 2)
- box.Name="Head"
- dc=Instance.new("Decal", box)
- dc.Texture="http://www.roblox.com/asset/?id=209889024"
- dc.Face=Enum.NormalId.Front
- boxmeshy=Instance.new("SpecialMesh", box)
- boxmeshy.MeshType=Enum.MeshType.FileMesh
- boxmeshy.MeshId="rbxassetid://11954776"
- boxmeshy.TextureId="rbxassetid://267871020"
- boxmeshy.VertexColor=Vector3.new(0, 1, 1)
- local heel=Instance.new("Sound", box)
- heel.SoundId="rbxassetid://435185931"
- box.BrickColor=BrickColor.new("Toothpaste")
- box.Anchored=false
- box.TopSurface="Smooth"
- box.BottomSurface="Smooth"
- hum=Instance.new("Humanoid", model)
- hum.MaxHealth=100000000000
- hum.Health=100000000000
- hum.Health=100000000000
- hum.Health=100000000000
- hum.Health=100000000000
- hum.Health=100000000000
- hum.Health=100000000000
- gun=Instance.new("Part", model)
- gun.FormFactor=Enum.FormFactor.Custom
- gun.Size=Vector3.new(.4, 1, 1.2)
- gun.Transparency = 1
- gun.Name="gun"
- local shoot=Instance.new("Sound", gun)
- shoot.SoundId="rbxassetid://296102734"
- gunmesh=Instance.new("SpecialMesh", gun)
- gunmesh.MeshType=Enum.MeshType.FileMesh
- gunmesh.MeshId="rbxassetid://4372594"
- gunmesh.TextureId="rbxassetid://0"
- gunmesh.VertexColor=Vector3.new(0, 0, 0)
- w=Instance.new("Weld", box)
- w.Part0=box
- w.Part1=gun
- w.C0=CFrame.new(2.20000076, 0.700000048, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local gyro=Instance.new("BodyGyro", box)
- gyro.maxTorque=Vector3.new(math.huge, math.huge, 0)
- gyro.P=10000
- local startTime=nil
- local oldBestPlaya
- local currentmsg=""
- model:MoveTo(player.Character.Torso.Position-Vector3.new(0, 1, 5))
- math.randomseed(tick())
- coroutine.wrap(function()
- while box do
- wait()
- local bestPlaya=nil
- local bestDist=math.huge
- if not oldBestPlaya or oldBestPlaya:DistanceFromCharacter(box.Position)>aggrorange then
- for _, p in pairs(game:GetService'Players':GetPlayers()) do
- if p.Character and p.Character:FindFirstChild("Torso") and not p.Character:FindFirstChild("greeted") and p:DistanceFromCharacter(box.Position)<=aggrorange and p:DistanceFromCharacter(box.Position)<bestDist then
- bestPlaya=p
- bestDist=p:DistanceFromCharacter(box.Position)
- end
- end
- if bestPlaya then
- oldBestPlaya=bestPlaya
- startTime=tick()
- end
- end
- local p=oldBestPlaya
- if p then
- notanqqa=true
- for _, playa in pairs(nqqas) do
- if p.Name:lower()==playa:lower() then
- notanqqa=false
- end
- end
- --print(p.Name)
- gyro.cframe=CFrame.new(box.CFrame.p, p.Character:FindFirstChild("Head") and p.Character.Head.CFrame.p or p.Character:GetModelCFrame())
- if notanqqa then
- local msg=""
- local mtime=0
- for i, v in pairs(messages) do
- if i>=mtime and tick()-startTime>=i then
- msg=v
- mtime=i
- end
- end
- if currentmsg~=msg then
- currentmsg=msg
- if msg=="FIRE" then
- for i=0, 250 do
- shoot:Play()
- boxmeshy.VertexColor=Vector3.new(1,0,0)
- if p.Character and p.Character:FindFirstChild("Humanoid") then
- p.Character:FindFirstChild("Humanoid").Health=p.Character:FindFirstChild("Humanoid").Health-125
- wait()
- end
- if p.Character and p.Character:FindFirstChild("Humanoid") and p.Character:FindFirstChild("Humanoid").Health<=0 then
- wait(3)
- gyro.cframe=CFrame.new(0, 0, 0)
- wait(0.1)
- boxmeshy.VertexColor=Vector3.new(0, 0, 0)
- game:GetService("Chat"):Chat(box, ("Threat eliminated."):gsub("%%p", p.Name))
- wait(1)
- boxmeshy.VertexColor=Vector3.new(0, 1, 1)
- game:GetService("Chat"):Chat(box, ("Returning to searching mode."):gsub("%%p", p.Name))
- wait(2)
- game:GetService("Chat"):Chat(box, ("Searching for threats..."):gsub("%%p", p.Name))
- oldBestPlaya=nil
- break
- end
- wait(math.random(1, 10)/8)
- end
- elseif msg~="" then
- game:GetService("Chat"):Chat(box, msg:gsub("%%p", p.Name))
- end
- end
- else
- wait(2)
- game:GetService("Chat"):Chat(box, ("Humanoid Detected: %p"):gsub("%%p", p.Name))
- wait(1.4)
- game:GetService("Chat"):Chat(box, ("Scanning"):gsub("%%p", p.Name))
- wait(3.5)
- game:GetService("Chat"):Chat(box, ("Humanoid on whitelist; greeting"):gsub("%%p", p.Name))
- wait(1)
- boxmeshy.VertexColor=Vector3.new(0, 1, 0)
- game:GetService("Chat"):Chat(box, ("Hello, %p. I am T609, an edit of the LunchaThug script. Created by GS1029 or GamingStudios1029."):gsub("%%p", p.Name))
- wait(5)
- game:GetService("Chat"):Chat(box, ("Healing player..."):gsub("%%p", p.Name))
- wait(1)
- p.Character:FindFirstChild("Humanoid").Health=p.Character:FindFirstChild("Humanoid").Health+5000
- heel:Play()
- wait(1)
- game:GetService("Chat"):Chat(box, ("Player healed."):gsub("%%p", p.Name))
- wait(1)
- boxmeshy.VertexColor=Vector3.new(0, 1, 1)
- game:GetService("Chat"):Chat(box, ("Returning to searching mode."):gsub("%%p", p.Name))
- wait(2)
- game:GetService("Chat"):Chat(box, ("Searching for threats..."):gsub("%%p", p.Name))
- wait(0.1)
- local gr=Instance.new("IntValue", p.Character)
- gr.Name="greeted"
- game:GetService("Debris"):AddItem(gr, 60);
- oldBestPlaya=nil
- wait(5)
- gyro.cframe=CFrame.new(0, 0, 0)
- end
- end
- end
- end)()
- if player.Character and player.Character:FindFirstChild("Humanoid") then
- player.Character.Humanoid:UnequipTools();
- wait()
- t:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement