View difference between Paste ID: 6wyeTzW9 and U6wm3xvN
SHOW: | | - or go back to the newest paste.
1
--[[
2-
2+
 
3-
3+
 
4
hl/https://code.stypi.com/raw/nZHFXIlEQs5UF7XIOYsaGPc1
5-
5+
 
6-
6+
 
7
]]
8
player=game:GetService'Players'.LocalPlayer
9-
9+
 
10-
10+
 
11-
nqqas={"Diitto", "ThuggLyfe", "grubsteak", "Pkamara", "TheDarkRevenant", "TheScripterGeek", "clv2", "ElitePug", "jillmiles1", "jonesj627",  player.Name}--
11+
nqqas={"GamingStudios1029", "Twiftsy", "TheFlamingBlaster", "MightyAlex200", "ClearLakes", "Nich7", "XXVoid2ndaccountXX", "NickVsLarryScrub",  player.Name}--
12-
aggrorange=20;
12+
aggrorange=120;
13-
13+
 
14
messages={
15-
	[3]="yo get off our turf, %p";
15+
        [1]="Humanoid Detected: %p";
16-
	[6]="im warning u";
16+
        [2.4]="Scanning";
17-
	[8]="3...";
17+
        [5.9]="WARNING";
18-
	[9]="2...";
18+
        [6.1]="Threat detected; Engaging in combat";
19-
	[10]="1..";
19+
        [6.3]="FIRE";
20-
	[11]="FIRE";
20+
21
 
22-
22+
 
23-
23+
24
t.Name="Bot"
25-
t.Name="LunchThug"
25+
print("GS1029 Bot Awaiting Input");
26-
26+
 
27
Instance.new("Part", t).Name="Handle"
28
t.Equipped:connect(function()
29-
	
29+
       
30-
	model=Instance.new("Model", workspace)
30+
        model=Instance.new("Model", workspace)
31-
	model.Name="LunchaThug"
31+
        model.Name="T609"
32-
	
32+
        print("GS1029 Bot Loaded");
33-
	box=Instance.new("Part", model)
33+
       
34-
	box.FormFactor=Enum.FormFactor.Custom
34+
        box=Instance.new("Part", model)
35-
	box.Size=Vector3.new(4, 4, 2)
35+
        box.FormFactor=Enum.FormFactor.Custom
36-
	box.Name="Head"
36+
        box.Size=Vector3.new(4, 4, 2)
37-
	dc=Instance.new("Decal", box)
37+
        box.Name="Head"
38-
	dc.Texture="http://www.roblox.com/asset/?id=265177579"
38+
        dc=Instance.new("Decal", box)
39-
	dc.Face=Enum.NormalId.Front
39+
        dc.Texture="http://www.roblox.com/asset/?id=191908010"
40-
	box.BrickColor=BrickColor.new("Bright yellow")
40+
        dc.Face=Enum.NormalId.Front
41-
	box.Anchored=false
41+
        boxmeshy=Instance.new("SpecialMesh", box)
42-
	box.TopSurface="Smooth"
42+
        boxmeshy.MeshType=Enum.MeshType.FileMesh
43-
	box.BottomSurface="Smooth"
43+
        boxmeshy.MeshId="rbxassetid://11954776"
44-
	
44+
        boxmeshy.TextureId="rbxassetid://267871020"
45-
	hum=Instance.new("Humanoid", model)
45+
        boxmeshy.VertexColor=Vector3.new(0, 1, 1)
46-
	hum.Health=0
46+
local threat=Instance.new("Sound", box)
47-
	hum.MaxHealth=0
47+
        threat.SoundId="rbxassetid://220907318"
48-
	
48+
        local heel=Instance.new("Sound", box)
49-
	gun=Instance.new("Part", model)
49+
        heel.SoundId="rbxassetid://435185931"
50-
	gun.FormFactor=Enum.FormFactor.Custom
50+
        box.BrickColor=BrickColor.new("Toothpaste")
51-
	gun.Size=Vector3.new(.4, 1, 1.2)
51+
        box.Anchored=false
52-
	gun.Name="gun"
52+
        box.TopSurface="Smooth"
53-
	local shoot=Instance.new("Sound", gun)
53+
        box.BottomSurface="Smooth"
54-
	shoot.SoundId="rbxassetid://180955656"
54+
       
55-
	gunmesh=Instance.new("SpecialMesh", gun)
55+
        hum=Instance.new("Humanoid", model)
56-
	gunmesh.MeshType=Enum.MeshType.FileMesh
56+
        hum.MaxHealth=100000000000
57-
	gunmesh.MeshId="rbxassetid://4372594"
57+
        hum.Health=100000000000
58-
	gunmesh.TextureId="rbxassetid://0"
58+
        hum.Health=100000000000
59-
	gunmesh.VertexColor=Vector3.new(0, 0, 0)
59+
        hum.Health=100000000000
60-
	w=Instance.new("Weld", box)
60+
        hum.Health=100000000000
61-
	w.Part0=box
61+
        hum.Health=100000000000
62-
	w.Part1=gun
62+
        hum.Health=100000000000
63-
	w.C0=CFrame.new(2.20000076, 0.700000048, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
63+
       
64-
	
64+
        gun=Instance.new("Part", model)
65-
	local gyro=Instance.new("BodyGyro", box)
65+
        gun.FormFactor=Enum.FormFactor.Custom
66-
	gyro.maxTorque=Vector3.new(math.huge, math.huge, 0)
66+
        gun.Size=Vector3.new(.4, 1, 1.2)
67-
	gyro.P=10000
67+
        gun.Transparency = 1
68-
	local startTime=nil
68+
        gun.Name="gun"
69-
	local oldBestPlaya
69+
        local shoot=Instance.new("Sound", gun)
70-
	local currentmsg=""
70+
        shoot.SoundId="rbxassetid://296102734"
71-
	model:MoveTo(player.Character.Torso.Position-Vector3.new(0, 1, 5))
71+
        gunmesh=Instance.new("SpecialMesh", gun)
72-
	math.randomseed(tick())
72+
        gunmesh.MeshType=Enum.MeshType.FileMesh
73-
	coroutine.wrap(function()
73+
        gunmesh.MeshId="rbxassetid://4372594"
74-
		while box do
74+
        gunmesh.TextureId="rbxassetid://0"
75-
		    wait()
75+
        gunmesh.VertexColor=Vector3.new(0, 0, 0)
76-
			local bestPlaya=nil
76+
        w=Instance.new("Weld", box)
77-
			local bestDist=math.huge
77+
        w.Part0=box
78-
			if not oldBestPlaya or oldBestPlaya:DistanceFromCharacter(box.Position)>aggrorange then
78+
        w.Part1=gun
79-
				for _, p in pairs(game:GetService'Players':GetPlayers()) do 
79+
        w.C0=CFrame.new(2.20000076, 0.700000048, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
80-
					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
80+
       
81-
						bestPlaya=p
81+
        local gyro=Instance.new("BodyGyro", box)
82-
						bestDist=p:DistanceFromCharacter(box.Position)
82+
        gyro.maxTorque=Vector3.new(math.huge, math.huge, 0)
83-
					end
83+
        gyro.P=10000
84-
				end
84+
        local startTime=nil
85-
				if bestPlaya then
85+
        local oldBestPlaya
86-
					oldBestPlaya=bestPlaya
86+
        local currentmsg=""
87-
					startTime=tick()
87+
        model:MoveTo(player.Character.Torso.Position-Vector3.new(0, 1, 5))
88-
				end
88+
        math.randomseed(tick())
89-
			end
89+
        coroutine.wrap(function()
90-
			local p=oldBestPlaya
90+
                while box do
91-
			
91+
                    wait()
92-
			
92+
                        local bestPlaya=nil
93-
			if p then
93+
                        local bestDist=math.huge
94-
				notanqqa=true
94+
                        if not oldBestPlaya or oldBestPlaya:DistanceFromCharacter(box.Position)>aggrorange then
95-
				for _, playa in pairs(nqqas) do
95+
                                for _, p in pairs(game:GetService'Players':GetPlayers()) do
96-
					if p.Name:lower()==playa:lower() then
96+
                                        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
97-
						notanqqa=false
97+
                                                bestPlaya=p
98-
					end
98+
                                                bestDist=p:DistanceFromCharacter(box.Position)
99-
				end
99+
                                        end
100-
				
100+
                                end
101-
				--print(p.Name)
101+
                                if bestPlaya then
102-
				
102+
                                        oldBestPlaya=bestPlaya
103-
				gyro.cframe=CFrame.new(box.CFrame.p, p.Character:FindFirstChild("Head") and p.Character.Head.CFrame.p or p.Character:GetModelCFrame())
103+
                                        startTime=tick()
104-
				if notanqqa then
104+
                                end
105-
					local msg=""
105+
                        end
106-
					local mtime=0
106+
                        local p=oldBestPlaya
107-
					for i, v in pairs(messages) do
107+
                       
108-
						if i>=mtime and tick()-startTime>=i then
108+
                       
109-
							msg=v
109+
                        if p then
110-
							mtime=i
110+
                                notanqqa=true
111-
						end
111+
                                for _, playa in pairs(nqqas) do
112-
					end
112+
                                        if p.Name:lower()==playa:lower() then
113-
					if currentmsg~=msg then
113+
                                                notanqqa=false
114-
						currentmsg=msg
114+
                                        end
115-
						if msg=="FIRE" then
115+
                                end
116-
							for i=1, 12 do
116+
                               
117-
								shoot:Play()
117+
                                --print(p.Name)
118-
								if p.Character and p.Character:FindFirstChild("Humanoid") then
118+
                               
119-
									p.Character:FindFirstChild("Humanoid").Health=p.Character:FindFirstChild("Humanoid").Health-(p.Character:FindFirstChild("Humanoid").MaxHealth*(math.random(1, 10)/20))
119+
                                gyro.cframe=CFrame.new(box.CFrame.p, p.Character:FindFirstChild("Head") and p.Character.Head.CFrame.p or p.Character:GetModelCFrame())
120-
								end
120+
                                if notanqqa then
121-
								if p.Character and p.Character:FindFirstChild("Humanoid") and p.Character:FindFirstChild("Humanoid").Health<=0 then
121+
                                        local msg=""
122-
								    wait(3)
122+
                                        local mtime=0
123-
					                gyro.cframe=CFrame.new(0, 0, 0)
123+
                                        for i, v in pairs(messages) do
124-
									wait(2)
124+
                                                if i>=mtime and tick()-startTime>=i then
125-
									game:GetService("Chat"):Chat(box, ("any1 else???"):gsub("%%p", p.Name))
125+
                                                        msg=v
126-
									wait(3)
126+
                                                        mtime=i
127-
									game:GetService("Chat"):Chat(box, ("dats rite"):gsub("%%p", p.Name))
127+
                                                end
128-
									wait(5)
128+
                                        end
129-
									oldBestPlaya=nil
129+
                                        if currentmsg~=msg then
130-
									break
130+
                                                currentmsg=msg
131-
									
131+
                                                if msg=="FIRE" then
132-
								end
132+
threat:Play()
133-
								wait(math.random(1, 10)/8)
133+
                                                        for i=0, 250 do
134-
							end
134+
                                                                shoot:Play()
135-
						elseif msg~="" then
135+
                                                                boxmeshy.VertexColor=Vector3.new(1,0,0)
136-
							game:GetService("Chat"):Chat(box, msg:gsub("%%p", p.Name))
136+
                                                                if p.Character and p.Character:FindFirstChild("Humanoid") then
137-
						end
137+
                                                                        p.Character:FindFirstChild("Humanoid").Health=p.Character:FindFirstChild("Humanoid").Health-125
138-
					end
138+
wait()
139-
				else
139+
                                                                end
140-
					wait(2)
140+
                                                                if p.Character and p.Character:FindFirstChild("Humanoid") and p.Character:FindFirstChild("Humanoid").Health<=0 then
141-
					game:GetService("Chat"):Chat(box, ("yo wassup cuz"):gsub("%%p", p.Name))
141+
                                                                    wait(3)
142-
					local gr=Instance.new("IntValue", p.Character)
142+
                                                        gyro.cframe=CFrame.new(0, 0, 0)
143-
					gr.Name="greeted"
143+
                                                                        wait(0.1)
144-
					game:GetService("Debris"):AddItem(gr, 60);
144+
                                                                        boxmeshy.VertexColor=Vector3.new(0, 0, 0)
145-
					oldBestPlaya=nil
145+
                                                                        game:GetService("Chat"):Chat(box, ("Threat eliminated."):gsub("%%p", p.Name))
146-
					wait(5)
146+
                                                                        wait(1)
147-
					gyro.cframe=CFrame.new(0, 0, 0)
147+
                                                                        boxmeshy.VertexColor=Vector3.new(0, 1, 1)
148-
				end
148+
                                                                        game:GetService("Chat"):Chat(box, ("Returning to searching mode."):gsub("%%p", p.Name))
149-
			end
149+
                                                                        wait(2)
150-
	end
150+
                                                                        game:GetService("Chat"):Chat(box, ("Searching for threats..."):gsub("%%p", p.Name))
151-
	end)()
151+
                                                                        oldBestPlaya=nil
152
                                                                        break
153
                                                                       
154
                                                                end
155
                                                                wait(math.random(1, 10)/8)
156
                                                        end
157
                                                elseif msg~="" then
158
                                                        game:GetService("Chat"):Chat(box, msg:gsub("%%p", p.Name))
159
                                                end
160
                                        end
161
                                else
162
                                        wait(2)
163
                                        game:GetService("Chat"):Chat(box, ("Humanoid Detected: %p"):gsub("%%p", p.Name))
164
                                        wait(1.4)
165
                                        game:GetService("Chat"):Chat(box, ("Scanning"):gsub("%%p", p.Name))
166
                                        wait(3.5)
167
                                        game:GetService("Chat"):Chat(box, ("Humanoid on whitelist; greeting"):gsub("%%p", p.Name))
168
                                        wait(1)
169
                                        boxmeshy.VertexColor=Vector3.new(0, 1, 0)
170
                                        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))
171
                                        wait(5)
172
                                        game:GetService("Chat"):Chat(box, ("Healing player..."):gsub("%%p", p.Name))
173
                                        wait(1)
174
                                        p.Character:FindFirstChild("Humanoid").Health=p.Character:FindFirstChild("Humanoid").Health+5000
175
                                        heel:Play()
176
                                        wait(1)
177
                                        game:GetService("Chat"):Chat(box, ("Player healed."):gsub("%%p", p.Name))
178
                                        wait(1)
179
                                        boxmeshy.VertexColor=Vector3.new(0, 1, 1)
180
                                        game:GetService("Chat"):Chat(box, ("Returning to searching mode."):gsub("%%p", p.Name))
181
                                        wait(2)
182
                                        game:GetService("Chat"):Chat(box, ("Searching for threats..."):gsub("%%p", p.Name))
183
                                        wait(0.1)
184
                                        local gr=Instance.new("IntValue", p.Character)
185
                                        gr.Name="greeted"
186
                                        game:GetService("Debris"):AddItem(gr, 60);
187
                                        oldBestPlaya=nil
188
                                        wait(5)
189
                                        gyro.cframe=CFrame.new(0, 0, 0)
190
                                end
191
                        end
192
        end
193
        end)()
194
    if player.Character and player.Character:FindFirstChild("Humanoid") then
195
        player.Character.Humanoid:UnequipTools();
196
        wait()
197
        t:Destroy()
198
        end
199
end)