View difference between Paste ID: QRLXSdmF and skG20MFm
SHOW: | | - or go back to the newest paste.
1-
local Player = game:GetService("Players").GamesDanil500  --<=== Replace With Your Name
1+
local Player = game:GetService("Players").LocalPlayer 
2
3
4
local Mouse,mouse,UserInputService,ContextActionService
5
do
6
	script.Parent = Player.Character
7
	local CAS = {Actions={}}
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
	Event.Parent = Player.Character
11
	local fakeEvent = function()
12
		local t = {_fakeEvent=true}
13
		t.Connect = function(self,f)self.Function=f end
14
		t.connect = t.Connect
15
		return t
16
	end
17
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
18
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
19
	function CAS:BindAction(name,fun,touch,...)
20
		CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
21
	end
22
	function CAS:UnbindAction(name)
23
		CAS.Actions[name] = nil
24
	end
25
	local function te(self,ev,...)
26
		local t = m[ev]
27
		if t and t._fakeEvent and t.Function then
28
			t.Function(...)
29
		end
30
	end
31
	m.TrigEvent = te
32
	UIS.TrigEvent = te
33
	Event.OnServerEvent:Connect(function(plr,io)
34
	    if plr~=Player then return end
35
		if io.isMouse then
36
			m.Target = io.Target
37
			m.Hit = io.Hit
38
		elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
39
	        if io.UserInputState == Enum.UserInputState.Begin then
40
				m:TrigEvent("Button1Down")
41
			else
42
				m:TrigEvent("Button1Up")
43
			end
44
		else
45
			for n,t in pairs(CAS.Actions) do
46
				for _,k in pairs(t.Keys) do
47
					if k==io.KeyCode then
48
						t.Function(t.Name,io.UserInputState,io)
49
					end
50
				end
51
			end
52
	        if io.UserInputState == Enum.UserInputState.Begin then
53
	            m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
54
				UIS:TrigEvent("InputBegan",io,false)
55
			else
56
				m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
57
				UIS:TrigEvent("InputEnded",io,false)
58
	        end
59
	    end
60
	end)
61
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
62
end
63
64-
script.Parent = game:GetService("Players").GamesDanil500
64+
script.Parent = game:GetService("Players").LocalPlayer
65
cannotify = true
66
function message(msg)
67
	if cannotify then
68
		cannotify = false
69
		local messagesound = Instance.new("Sound", workspace)
70
		messagesound.SoundId = "rbxassetid://578970639"
71
		messagesound.Volume = 2
72
		messagesound:Play()
73
		game.Debris:AddItem(messagesound, messagesound.TimeLength)
74-
		if game:GetService("Players").GamesDanil500.Character then
74+
		if game:GetService("Players").LocalPlayer.Character then
75-
			if game:GetService("Players").GamesDanil500.Character:findFirstChild("HumanoidRootPart") then
75+
			if game:GetService("Players").LocalPlayer.Character:findFirstChild("HumanoidRootPart") then
76
				local pos1 = math.random(-5,5)
77
				local pos2 = math.random(-5,5)
78-
				local model = Instance.new("Model", game:GetService("Players").GamesDanil500.Character)
78+
				local model = Instance.new("Model", game:GetService("Players").LocalPlayer.Character)
79
				model.Name = [[(Anti-Skid v4)
80
				]]..msg
81
				local human0 = Instance.new("Humanoid", model)
82
				human0.Name = "MessageHuman0id"
83
				human0.MaxHealth = 0
84
				human0.Health = 0
85
				local part = Instance.new("Part", model)
86
				part.Size = Vector3.new(0,0,0)
87
				part.BrickColor = BrickColor.Random()
88
				part.Material = "ForceField"
89
				part:BreakJoints()
90
				part.CanCollide = false
91-
				part.CFrame = game:GetService("Players").GamesDanil500.Character.HumanoidRootPart.CFrame
91+
				part.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
92
				part.Name = "Head"
93
				local bodyposition = Instance.new("BodyPosition", part)
94
				bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
95-
				bodyposition.Position = game:GetService("Players").GamesDanil500.Character.HumanoidRootPart.Position
95+
				bodyposition.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position
96
				local function spinandpos()
97
					while wait() do
98-
						if game:GetService("Players").GamesDanil500.Character:findFirstChild("HumanoidRootPart") then
98+
						if game:GetService("Players").LocalPlayer.Character:findFirstChild("HumanoidRootPart") then
99-
							bodyposition.Position = game:GetService("Players").GamesDanil500.Character:findFirstChild("HumanoidRootPart").Position + Vector3.new(pos1,0,pos2)
99+
							bodyposition.Position = game:GetService("Players").LocalPlayer.Character:findFirstChild("HumanoidRootPart").Position + Vector3.new(pos1,0,pos2)
100
						end
101
						part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0.02,0.02,0.02)
102
					end
103
				end
104
				local function resize()
105
					while wait() and part.Size.x < 1.5 do
106
						part.Size = part.Size + Vector3.new(0.025,0.025,0.025)
107
					end
108
					wait(4)
109
					for i = 1,60 do
110
						part.Size = part.Size - Vector3.new(0.025,0.025,0.025)
111
						wait()
112
					end
113
					model:destroy()
114
					cannotify = true
115
				end
116
				spawn(spinandpos)
117
				spawn(resize)
118
			end
119
		end
120
	end
121
end
122
function punishplayer(character)
123
	if not character:findFirstChild("pwned") then
124
		Instance.new("BoolValue", character).Name = "pwned"
125
		local punishrandom = math.random(1,3)
126
		for i,v in pairs(character:GetChildren()) do
127
			if v.ClassName == "Sound" then
128
				v:destroy()
129
			end
130
			for q,w in pairs(v:GetChildren()) do
131
				if w.ClassName == "Sound" and w.Name ~= "JevilTheme" then
132
					w:destroy()
133
				end
134
			end
135
		end
136
		if punishrandom == 1 then
137
			for i = 1,20 do
138
				for q,w in pairs(character:GetChildren()) do
139
					if w.ClassName == "Part" then
140
						w.Transparency = w.Transparency + 0.05
141
					end
142
					if w.ClassName == "Accessory" then
143
						if w:findFirstChild("Handle") then
144
							w.Handle.Transparency = w.Handle.Transparency + 0.05
145
						end
146
					end
147
					if w.Name == "Head" then
148
						if w:findFirstChildOfClass("Decal") then
149
							w:findFirstChildOfClass("Decal").Transparency = w:findFirstChildOfClass("Decal").Transparency + 0.05
150
						end
151
					end
152
				end
153
				wait()
154
			end
155
			for q,w in pairs(character:GetChildren()) do
156
				if w.ClassName == "Part" or w.ClassName == "Accessory" then
157
					w:destroy()
158
				end
159
			end
160
		elseif punishrandom == 2 then
161
			character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
162
			character:findFirstChildOfClass("Humanoid").JumpPower = 0
163
			local function addweld()
164
				if character:findFirstChild("Torso") then
165
					local heead = Instance.new("Weld", character.Torso)
166
					heead.Part0 = character.Torso
167
					heead.Part1 = character.Head
168
					heead.C0 = CFrame.new(0,1.5,0)
169
					heead.Name = "HeadWeld"
170
					wait(0.7)
171
					for i = 0,1 , 0.08 do
172
						heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
173
						wait()
174
					end
175
					wait(0.7)
176
					while wait() do
177
						heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
178
					end
179
				elseif character:findFirstChild("UpperTorso") then
180
					local heead = Instance.new("Weld", character.UpperTorso)
181
					heead.Part0 = character.UpperTorso
182
					heead.Part1 = character.Head
183
					heead.C0 = CFrame.new(0,1.5,0)
184
					heead.Name = "HeadWeld"
185
					wait(0.7)
186
					for i = 0,1 , 0.08 do
187
						heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
188
						wait()
189
					end
190
					wait(0.7)
191
					while wait() do
192
						heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
193
					end
194
				end
195
			end
196
			spawn(addweld)
197
			local banhamma = Instance.new("Part", character)
198
			banhamma.Size = Vector3.new(3, 10, 2)
199
			banhamma:BreakJoints()
200
			banhamma.CFrame = character.Head.CFrame * CFrame.new(0,20,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,1)
201
			banhamma.Name = "ban"
202
			banhamma.Transparency = 1
203
			banhamma.Anchored = true
204
			local mesh = Instance.new("SpecialMesh", banhamma)
205
			mesh.MeshId = "http://www.roblox.com/asset/?id=10604848"
206
			mesh.TextureId = "http://www.roblox.com/asset/?id=10605252"
207
			local special = Instance.new("Sound", banhamma)
208
			special.SoundId = "rbxassetid://427090157"
209
			special.Volume = 2
210
			special:Play()
211
			for i = 1,20 do
212
				banhamma.Transparency = banhamma.Transparency - 0.05
213
				wait()
214
			end
215
			local hammertime = Instance.new("Sound", banhamma)
216
			hammertime.SoundId = "rbxassetid://176192087"
217
			hammertime.Volume = 3
218
			hammertime:Play()
219
			banhamma.CFrame = character.Head.CFrame * CFrame.new(0,20,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,1)
220
			wait(1)
221
			if character:findFirstChild("Head") then
222
				local scream = Instance.new("Sound", character.Head)
223
				scream.SoundId = "rbxassetid://176238381"
224
				scream.Volume = 2
225
				scream:Play()
226
				banhamma.Anchored = false
227
				local angularvel = Instance.new("BodyAngularVelocity", banhamma)
228
				angularvel.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
229
				angularvel.AngularVelocity = banhamma.CFrame.rightVector * 20
230
				local touchedban = false
231
				local function touched(part)
232
					if part.Name == "Head" and part.Parent == character then
233
						touchedban = true
234
						local aaaaaaaa = Instance.new("Sound", banhamma)
235
						aaaaaaaa.SoundId = "rbxassetid://147722910"
236
						aaaaaaaa.Volume = 2
237
						aaaaaaaa:Play()
238
						angularvel:Destroy()
239
						banhamma.CanCollide = true
240
						for i,v in pairs(character:GetChildren()) do
241
							if v.ClassName == "Part" and v.Name ~= "ban" or v.ClassName == "Accessory" then
242
								v:destroy()
243
							end
244
						end
245
					end
246
				end
247
				banhamma.Touched:connect(touched)
248
				wait(2)
249
				if not touchedban and character:findFirstChild("Head") then
250
					banhamma.CFrame = character:findFirstChild("Head").CFrame
251
				end
252
			end
253
		elseif punishrandom == 3 then
254
			character:BreakJoints()
255
			character:findFirstChildOfClass("Humanoid").Health = 0
256
			local explo = Instance.new("Explosion", character)
257
			explo.Position = character.Head.Position
258
			explo.BlastPressure = 0
259
			local boom = Instance.new("Sound", character.Head)
260
			boom.SoundId = "rbxassetid://262562442"
261
			boom.Volume = 3
262
			boom:Play()
263
			for i,v in pairs(character:GetChildren()) do
264
				if v.ClassName == "Part" or v.ClassName == "MeshPart" then
265
					local velocity = Instance.new("BodyVelocity", v)
266
					velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
267
					velocity.Velocity = Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))
268
					game.Debris:AddItem(velocity, 0.5)
269
				end
270
			end
271
		end
272
	end
273
end
274
function scan()
275
	while wait(0.1) do
276
		for i,w in pairs(workspace:GetChildren()) do
277
			if w.ClassName == "Sound" and w.Name ~= "Sound" then
278
				if w.Volume >= 4 then
279
					local function lolriplmao()
280
						while game:GetService("RunService").Heartbeat:wait() do
281
							w.Volume = 1
282
						end
283
					end
284
					spawn(lolriplmao)
285
					message("Detected loud audio coming from workspace")
286
				end
287
			end
288
		end
289
		for i,v in pairs(game:GetService("Players"):GetChildren()) do
290
			if v.Character then
291
				for q,w in pairs(v.Character:GetChildren()) do
292
					if w.ClassName == "Sound" then
293
						if w.Volume >= 4 then
294
							local function lolriplmao()
295
								while game:GetService("RunService").Heartbeat:wait() do
296
									w.Volume = 1
297
								end
298
							end
299
							spawn(lolriplmao)
300
							message("Detected loud audio coming from ".. v.Name)
301
						end
302
					end
303
					for e,r in pairs(w:GetChildren()) do
304
						if r.ClassName == "Sound" then
305
							if r.Volume >= 4 then
306
								local function lolriplmao()
307
									while game:GetService("RunService").Heartbeat:wait() do
308
										r.Volume = 1
309
									end
310
								end
311
								spawn(lolriplmao)
312
								message("Detected loud audio coming from ".. v.Name)
313
							end
314
						end
315
					end
316
				end
317
				if not v.Character:findFirstChild("pwned") then
318
					--Ultra Instict 2019
319
					if v.Character:findFirstChild("Hair") then
320
						if v.Character.Hair:findFirstChild("Mesh") then
321
							if v.Character.Hair.Mesh.MeshId == "rbxassetid://455100513" then
322
								local function uncol()
323
									while game:GetService("RunService").Heartbeat:wait() do
324
										v.Character.Hair.CanCollide = false
325
									end
326
								end
327
								spawn(uncol)
328
								for q,w in pairs(v.Character:GetChildren()) do
329
									if w.Name == "NewPart" then
330
										w.CanCollide = false
331
									end
332
								end
333
								punishplayer(v.Character)
334
								message(v.Name.." has used Ultra Instict.")
335
							end
336
						end
337
					end
338
					--
339
					--nahid Chara
340
					if v.Character:findFirstChild("Blob") then
341
						if v.Character:findFirstChild("Name") then
342
							if v.Character:findFirstChild("Name"):findFirstChild("TextLabel") then
343
								v.Character:findFirstChild("Name").TextLabel.Text = "lol skid"
344
								punishplayer(v.Character)
345
								message(v.Name.." has used nahid Chara.")
346
							end
347
						end
348
					end
349
					--star glitcher
350
					if v.Character:findFirstChild("Head") then
351
						if v.Character.Head:findFirstChild("ModeName") then
352
							v.Character.Head:findFirstChild("ModeName"):findFirstChildOfClass("TextLabel").Text = "nah get out star skid"
353
							punishplayer(v.Character)
354
							message(v.Name.." has used Star Glitcher.")
355
						end
356
					end
357
					if v.Character:findFirstChildOfClass("Sound") then
358
						if v.Character:findFirstChildOfClass("Sound").SoundId == "rbxassetid://614032233" then
359
							punishplayer(v.Character)
360
							message(v.Name.." has used Star Glitcher.")
361
						end
362
					end
363
					--nebula glitcher
364
					if v.Character:findFirstChild("Head") then
365
						if v.Character.Head:findFirstChild("ModeName") then
366
							v.Character.Head:findFirstChild("ModeName"):findFirstChildOfClass("TextLabel").Text = "nah get out star skid"
367
							punishplayer(v.Character)
368
							message(v.Name.." has used Nebula Glitcher.")
369
						end
370
					end
371
					if v.Character:findFirstChildOfClass("Sound") then
372
						if v.Character:findFirstChildOfClass("Sound").SoundId == "rbxassetid://1564523997" then
373
							punishplayer(v.Character)
374
							message(v.Name.." has used Star Glitcher.")
375
						end
376
					end
377
					--Earthworm sally
378
					if v.Character:findFirstChild("Head") then
379
						if v.Character.Head:findFirstChild("ModeName") then
380
							v.Character.Head:findFirstChild("ModeName"):findFirstChildOfClass("TextLabel").Text = "nah get out star skid"
381
							punishplayer(v.Character)
382
							message(v.Name.." has used Earthworm Sally.")
383
						end
384
					end
385
					if v.Character:findFirstChildOfClass("Sound") then
386
						if v.Character:findFirstChildOfClass("Sound").SoundId == "rbxassetid://827055457" then
387
							punishplayer(v.Character)
388
							message(v.Name.." has used Star Glitcher.")
389
						end
390
					end
391
					--jevil (im so sorry mrfunnylaughs)
392
					if v.Character:findFirstChild("Torso") then
393
						if v.Character.Torso:findFirstChild("JevilTheme") then
394
							v.Character.Torso:findFirstChild("JevilTheme").SoundId = "rbxassetid://1953695670"
395
							v.Character.Torso:findFirstChild("JevilTheme").TimePosition = 5
396
							v.Character.Torso:findFirstChild("JevilTheme"):Play()
397
							punishplayer(v.Character)
398
							message(v.Name.." has used Jevil.")
399
						end
400
					end
401
					--dead gun
402
					if v.Character:findFirstChild("Torso") then
403
						if v.Character.Torso:findFirstChild("Sound") then
404
							if v.Character.Torso:findFirstChild("Sound").SoundId == "rbxassetid://318812395" then
405
								v.Character.Torso:findFirstChild("Sound").SoundId = "rbxassetid://775395533"
406
								punishplayer(v.Character)
407
								message(v.Name.." has used Dead Gun.")
408
							end
409
						end
410
					end
411
			    end
412
			end
413
		end
414
	end
415
end
416
spawn(scan)
417
message("Anti-Skid v4 executed successfully.")