View difference between Paste ID: yKQ6Jqxy and ZYNTAPip
SHOW: | | - or go back to the newest paste.
1
  if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
2
do
3
    script.Parent = owner.Character
4
    local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
5
    local function NewFakeEvent()
6
        local Bind = Instance.new("BindableEvent")
7
        local Fake;Fake = {Connections = {},
8
        fakeEvent=true;
9
        Connect=function(self,Func)
10
            Bind.Event:connect(Func)
11
            self.Connections[Bind] = true
12
            return setmetatable({Connected = true},{
13
            __index = function (self,Index)
14
                if Index:lower() == "disconnect" then
15
                    return function() Fake.Connections[Bind] = false;self.Connected = false end
16
                end
17
                return Fake[Index]
18
            end;
19
            __tostring = function() return "Connection" end;
20
        })
21
        end}
22
        Fake.connect = Fake.Connect;return Fake;
23
    end
24
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
25
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
26
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
27
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
28
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
29
    local function TriggerEvent(self,Event,...)
30
        local Trigger = Mouse[Event]
31
        if Trigger and Trigger.fakeEvent and Trigger.Connections then
32
            for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
33
        end
34
    end
35
    Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
36
    Event.OnServerEvent:Connect(function(FiredBy,Input)
37
        if FiredBy.Name ~= owner.Name then return end
38
        if Input.MouseEvent then
39
            Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
40
        else
41
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
42
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
43
            for _,Action in pairs(ContextActionService.Actions) do
44
                for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
45
            end
46
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
47
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
48
        end
49
    end)
50
    InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
51
    Event.Parent = NLS([[
52
        local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
53
        local Input = function(Input,gameProcessedEvent)
54
            if gameProcessedEvent then return end
55
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
56
        end
57
        UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
58
        local Hit,Target
59
        while wait(1/30) do
60
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
61
                Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
62
            end
63
        end
64
    ]],owner.Character)
65
end
66
RealGame = game;game = setmetatable({},{
67
    __index = function (self,Index)
68
        local Sandbox = function (Thing)
69
            if Thing:IsA("Player") then
70
                local RealPlayer = Thing
71
                return setmetatable({},{
72
                    __index = function (self,Index)
73
                        local Type = type(RealPlayer[Index])
74
                        if Type == "function" then
75
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
76
                                return function (self)return InternalData["Mouse"] end
77
                            end
78
                            return function (self,...)return RealPlayer[Index](RealPlayer,...) end
79
                        end
80
                        return RealPlayer[Index]
81
                    end;
82
                    __tostring = function(self) return RealPlayer.Name end
83
                })
84
            end
85
        end
86
        if RealGame[Index] then
87
            local Type = type(RealGame[Index])
88
            if Type == "function" then
89
                if Index:lower() == "getservice" or Index:lower() == "service" then
90
                    return function (self,Service)
91
                        local FakeServices = {
92
                            ["players"] = function()
93
                                return setmetatable({},{
94
                                    __index = function (self2,Index2)
95
                                        local RealService = RealGame:GetService(Service)
96
                                        local Type2 = type(Index2)
97
                                        if Type2 == "function" then
98
                                            return function (self,...) return RealService[Index2](RealService,...)end
99
                                        else
100
                                            if Index2:lower() == "localplayer" then return Sandbox(owner) end
101
                                            return RealService[Index2]
102
                                        end
103
                                    end;
104
                                    __tostring = function(self) return RealGame:GetService(Service).Name end
105
                                })
106
                            end;
107
                            ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
108
                            ["userinputservice"] = function() return InternalData["UserInputService"] end;
109
                            ["runservice"] = function()
110
                                return setmetatable({},{
111
                                    __index = function(self2,Index2)
112
                                        local RealService = RealGame:GetService(Service)
113
                                        local Type2 = type(Index2)
114
                                        if Type2 == "function" then
115
                                            return function (self,...) return RealService[Index2](RealService,...) end
116
                                        else
117
                                            local RunServices = {
118
                                                ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
119
                                                ["renderstepped"] = function() return RealService["Stepped"] end
120
                                            }
121
                                            if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
122
                                            return RealService[Index2]
123
                                        end
124
                                    end
125
                                })
126
                            end
127
                        }
128
                        if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
129
                        return RealGame:GetService(Service)
130
                    end
131
                end
132
                return function (self,...) return RealGame[Index](RealGame,...) end
133
            else
134
                if game:GetService(Index) then return game:GetService(Index) end
135
                return RealGame[Index]
136
            end
137
        end
138
        return nil
139
    end
140
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
141
142
--By Rufus14
143
mouse = game.Players.LocalPlayer:GetMouse()
144
--
145
model = Instance.new("Model", workspace.CurrentCamera)
146
model.Name = "FPSArms"
147
local humanoidiiiiiilololololol = Instance.new("Humanoid",  model)
148
game.Players.LocalPlayer.Character.Archivable = true
149
rhandclone = game.Players.LocalPlayer.Character["Right Arm"]:Clone()
150
rhandclone:BreakJoints()
151
local rhandcloneweld = Instance.new("Weld", rhandclone)
152
rhandcloneweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
153
rhandcloneweld.Part1 = rhandclone
154
rhandcloneweld.C0 = CFrame.new(0,0,0.5)
155
rhandclone.Parent = model
156
rhandclone.Transparency = 1
157
--
158
lhandclone = game.Players.LocalPlayer.Character["Left Arm"]:Clone()
159
lhandclone:BreakJoints()
160
local lhandcloneweld = Instance.new("Weld", lhandclone)
161
lhandcloneweld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
162
lhandcloneweld.Part1 = lhandclone
163
lhandcloneweld.C0 = CFrame.new(0,0,0.5)
164
lhandclone.Parent = model
165
lhandclone.Transparency = 1
166
--
167
game.Players.LocalPlayer.Character.Torso.Neck.C1 = CFrame.new(0,-0.7,0)
168
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
169
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
170
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
171
rhandweld.C1 = CFrame.new(0,1,0)
172
local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
173
lhandweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
174
lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
175
lhandweld.C0 = CFrame.new(-1.12992668, -1.09744608, 0.0783367157, 0.693704247, -0.719959378, -0.0208011046, 0.719762683, 0.691863716, 0.0571505688, -0.0267545581, -0.0546174534, 0.998148739)
176
canlo = true
177
function canloo()
178
	canlo = false
179
end
180
game.Players.LocalPlayer.Character.Humanoid.Died:connect(canloo)
181
function look()
182
	if mouse.Target then
183
		if mouse.Target.Parent ~= "FPSArms" and canlo then
184
			game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
185
			rhandweld.C0 = CFrame.new(1.29883623, 0.5, -0.640856385, 0.939692557, 0.342020094, 0, 1.49501727e-08, -4.10752641e-08, -0.99999994, -0.342020124, 0.939692616, -4.37113883e-08) * CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
186
			game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
187
		end
188
	else
189
		if canlo then
190
			game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
191
		rhandweld.C0 = CFrame.new(1.29883623, 0.5, -0.640856385, 0.939692557, 0.342020094, 0, 1.49501727e-08, -4.10752641e-08, -0.99999994, -0.342020124, 0.939692616, -4.37113883e-08) * CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
192
		game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
193
		end
194
	end
195
end
196
game:GetService("RunService").RenderStepped:connect(look)
197
--Converted with ttyyuu12345's model to script plugin v4
198
function sandbox(var,func)
199
	local env = getfenv(func)
200
	local newenv = setmetatable({},{
201
		__index = function(self,k)
202
			if k=="script" then
203
				return var
204
			else
205
				return env[k]
206
			end
207
		end,
208
	})
209
	setfenv(func,newenv)
210
	return func
211
end
212
cors = {}
213
mas = Instance.new("Model",game:GetService("Lighting"))
214
Part0 = Instance.new("Part")
215
Sound1 = Instance.new("Sound")
216
SpecialMesh2 = Instance.new("SpecialMesh")
217
Part0.Name = "Shotgun"
218
Part0.Parent = mas
219
Part0.BrickColor = BrickColor.new("Really black")
220
Part0.Reflectance = 1
221
Part0.CanCollide = false
222
Part0.FormFactor = Enum.FormFactor.Custom
223
Part0.Size = Vector3.new(0.770000994, 0.930003285, 3.75999236)
224
Part0.CFrame = CFrame.new(0.730844021, 5.84272289, -1.70900095, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, 0, 0.99999994)
225
Part0.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
226
Part0.Position = Vector3.new(0.730844021, 5.84272289, -1.70900095)
227
Part0.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
228
Sound1.Name = "Fire"
229
Sound1.Parent = Part0
230
Sound1.SoundId = "rbxassetid://636316879"
231
Sound1.Volume = 1
232
SpecialMesh2.Parent = Part0
233
SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=94219391"
234
SpecialMesh2.Scale = Vector3.new(0.75, 0.75, 0.75)
235
SpecialMesh2.TextureId = "rbxassetid://1153072548"
236
SpecialMesh2.MeshType = Enum.MeshType.FileMesh
237
SpecialMesh2.Scale = Vector3.new(0.75, 0.75, 0.75)
238
for i,v in pairs(mas:GetChildren()) do
239
	v.Parent = game:GetService("Players").LocalPlayer.Character
240
	pcall(function() v:MakeJoints() end)
241
end
242
mas:Destroy()
243
for i,v in pairs(cors) do
244
	spawn(function()
245
		pcall(v)
246
	end)
247
end
248
--
249
function die()
250
	script:Remove()
251
end
252
game.Players.LocalPlayer.Character.Humanoid.Died:connect(die)
253
gunclone = Part0:Clone()
254
gunclone:BreakJoints()
255
gunclone.Transparency = 1
256
local guncloneweld = Instance.new("Weld", gunclone)
257
guncloneweld.Part0 = Part0
258
guncloneweld.Part1 = gunclone
259
guncloneweld.C0 = CFrame.new(0,-0.5,0)
260
gunclone.Parent = model
261
--
262
Weld0 = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
263
Weld0.C0 = CFrame.new(-0.168411255, -1.19799232, -0.142723083, 0.939692438, 1.49501709e-08, -0.342020094, 0.342020065, -4.10752605e-08, 0.939692557, 0, -0.999999821, -4.37113847e-08)
264
Weld0.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
265
Weld0.Part1 = Part0
266
shooting = false
267
local deflect = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
268
deflect.MaxDistance = 100
269
deflect.Volume = 10
270
deflect.SoundId = "rbxassetid://341519743"
271
deflect.Looped = true
272
local hitsound = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
273
hitsound.Volume = 10
274
hitsound.SoundId = "rbxassetid://1489924400"
275
local hedshot = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
276
hedshot.Volume = 10
277
hedshot.SoundId = "rbxassetid://147936251"
278
local wubwub = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
279
wubwub.Volume = 5
280
wubwub.SoundId = "rbxassetid://425221796"
281
wubbing = false
282
function wubing(key)
283
	key = key:lower()
284
	if key == "q" then
285
		if not wubbing then
286
			wubbing = true
287
			wubwub:Play()
288
		else
289
			wubbing = false
290
			wubwub:Stop()
291
		end
292
	end
293
end
294
mouse.KeyDown:connect(wubing)
295
function shootdemskids()
296
	if not shooting then
297
		shooting = true
298
		Sound1:Play()
299
		local light = Instance.new("PointLight", Part0)
300
		light.Brightness = 10
301
		for i = 1,5 do
302
			local projectile = Instance.new("Part", workspace)
303
			local clonede = deflect:Clone()
304
			clonede.Parent = projectile
305
			clonede:Play()
306
			projectile.Size = Vector3.new(0.2,0.2,2.5)
307
			projectile.CanCollide = false
308
			projectile.CFrame = Part0.CFrame * CFrame.new(0,0,-4)
309
			projectile.Material = "Neon"
310
			projectile.Name = "Bullett"
311
			projectile.CFrame = CFrame.new(projectile.Position, mouse.Hit.p)
312
			local vel = Instance.new("BodyVelocity", projectile)
313
			vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
314
			vel.Velocity = mouse.Hit.lookVector * 1000 + Vector3.new(math.random(-50,50),math.random(-50,50),0)
315
			game.Debris:AddItem(projectile, 10)
316
			local function damag(part)
317
				if part.Parent:findFirstChild("ragged") then
318
					projectile:destroy()
319
				end
320
				if part.Name ~= "Shotgun" and part.Name ~= "Bullett" then
321
					if part.Parent.ClassName == "Accessory" or part.Parent.Parent.ClassName == "Accessory" or part.ClassName == "Accessory" then
322
						
323
					else
324
						projectile:destroy()
325
					end
326
				end
327
				local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
328
				if humanoid then
329
					if humanoid.Parent:findFirstChild("ragged") then
330
						projectile:Remove()
331
					end
332
				end
333
				if humanoid and part.Name ~= "Shotgun" and part.Name ~= "Bullett" and humanoid.Parent:findFirstChild("ragged") == nil then
334
					local damage = math.random(20,40)
335
					if part.Name == "Head" then
336
						hedshot:Play()
337
								humanoid.Parent.Head.Transparency = 1
338
								for i,v in pairs(humanoid.Parent:GetChildren()) do
339
									if v.ClassName == "Accessory" or v.ClassName == "Hat" then
340
										local handle = v:findFirstChild("Handle")
341
										if handle then
342
											handle.Transparency = 1
343
										end
344
									end
345
								end
346
								for i,v in pairs(humanoid.Parent.Head:GetChildren()) do
347
									if v.ClassName == "Decal" then
348
										v:destroy()
349
									end
350
								end
351
								humanoid.Health = 0
352
							end
353
					if humanoid.Health <= damage then
354
						local ragdolled = Instance.new("BoolValue", humanoid.Parent)
355
						ragdolled.Name = "ragged"
356
						local uppertorso = humanoid.Parent:findFirstChild("UpperTorso")
357
						if uppertorso then
358
							humanoid.Parent:BreakJoints()
359
							while humanoid.Health >= 0.000000000001 do
360
								game:GetService("RunService").RenderStepped:wait()
361
							end
362
							if humanoid.Parent:findFirstChild("HumanoidRootPart") then
363
		                        humanoid.Parent.HumanoidRootPart.CanCollide = false
364
		                    end
365
		                    local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
366
		                        local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
367
		                        constraint.Attachment0 = attachone
368
		                        constraint.Attachment1 = attachtwo
369
		                        constraint.LimitsEnabled = true
370
		                        constraint.TwistLimitsEnabled = true
371
		                        constraint.TwistLowerAngle = lowang
372
		                        constraint.TwistUpperAngle = upperang
373
		                        constraint.UpperAngle = twist
374
		                    end
375
		                    local function makehingelimb(attachone, attachtwo, upperang, lowang)
376
		                        local constraint = Instance.new("HingeConstraint", humanoid.Parent)
377
		                        constraint.Attachment0 = attachone
378
		                        constraint.Attachment1 = attachtwo
379
		                        constraint.LimitsEnabled = true
380
		                        constraint.LowerAngle = lowang
381
		                        constraint.UpperAngle = upperang
382
		                    end
383
		                    for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
384
		                        if v.ClassName == "Accessory" then
385
		                            local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
386
		                            if findhandle then
387
		                                local attach = findhandle:findFirstChildOfClass("Attachment")
388
		                                for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
389
		                                    if w.Name == "UpperTorso" or w.Name == "Head" then
390
		                                        attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
391
		                                    end
392
		                                end
393
		                                if attach and attach1 then
394
		                                    local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
395
		                                    constraint.Attachment0 = attach
396
		                                    constraint.Attachment1 = attach1
397
		                                    constraint.LimitsEnabled = true
398
		                                    constraint.LowerAngle = 0
399
		                                    constraint.UpperAngle = 0
400
		                                end
401
		                            end
402
		                        end
403
		                    end
404
		                    if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
405
		                                local attachment = Instance.new("Attachment", humanoid.Parent.Head)
406
		                                attachment.Position = Vector3.new(0, -0.5, 0)
407
		                                attachment.Name = "lol"
408
		                                attachment.Visible = false
409
		                                humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
410
		                                humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
411
		                                local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
412
		                                ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
413
		                                ball.Attachment1 = attachment
414
		                                ball.LimitsEnabled = true
415
		                                ball.TwistLimitsEnabled = true
416
		                                ball.UpperAngle = 40
417
		                                ball.Restitution = 0.5
418
		                                ball.TwistUpperAngle = 40
419
		                                ball.TwistLowerAngle = -40
420
		                                local  collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
421
		                                collidepartofleftleg.Name = "Bone"
422
		                                collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
423
		                                collidepartofleftleg.Transparency = 1
424
		                                collidepartofleftleg:BreakJoints()
425
		                                local weeld = Instance.new("Weld", collidepartofleftleg)
426
		                                weeld.Part0 = collidepartofleftleg
427
		                                weeld.Part1 = humanoid.Parent["Head"]
428
		                                if humanoid.Parent.Head:findFirstChild("Neck") then
429
		                                    humanoid.Parent.Head.Neck:destroy()
430
		                                end
431
		                                if humanoid.Parent.Head:findFirstChild("face") then
432
		                                    humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
433
		                                end
434
		                    end
435
		                    local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
436
		                    local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
437
		                    --
438
		                    local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
439
		                    local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
440
		                    --
441
		                    local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
442
		                    local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
443
		                    --
444
		                    local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
445
		                    local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
446
		                    --Foot & Hands--
447
		                   
448
		                    local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
449
		                    local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
450
		                    --
451
		                    local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
452
		                    local RightHand = humanoid.Parent:findFirstChild("RightHand")
453
		                   
454
		                    --END--
455
		                    --TORSOS--
456
		                   
457
		                    local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
458
		                    local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
459
		                   
460
		                    --END--
461
							local function search(datone)
462
								for i,v in pairs(datone:GetChildren()) do
463
									search(v)
464
									if v.ClassName == "Sound" then
465
										v.Volume = 0
466
									end
467
								end
468
							end
469
							search(humanoid.Parent)
470
							local clonede = hitsound:Clone()
471
							clonede.Parent = part
472
							clonede:Play()
473
							if part.Name == "Head" then
474
								humanoid.Parent.Head.Transparency = 1
475
								for i,v in pairs(humanoid.Parent:GetChildren()) do
476
									if v.ClassName == "Accessory" or v.ClassName == "Hat" then
477
										local handle = v:findFirstChild("Handle")
478
										if handle then
479
											handle.Transparency = 1
480
										end
481
									end
482
								end
483
								for i,v in pairs(humanoid.Parent.Head:GetChildren()) do
484
									if v.ClassName == "Decal" then
485
										v:destroy()
486
									end
487
								end
488
								humanoid.Parent:BreakJoints()
489
							end
490
		                    if LowerTorso then
491
		                        if LeftUpperLeg then
492
									local function uncollidee()
493
										LeftUpperLeg.CanCollide = false
494
									end
495
									game:GetService("RunService").Stepped:connect(uncollidee)
496
		                            makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
497
		                        end
498
		                        if RightUpperLeg then
499
									local function uncollidee()
500
										RightUpperLeg.CanCollide = false
501
									end
502
									game:GetService("RunService").Stepped:connect(uncollidee)
503
		                            makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
504
		                        end
505
		                        if LeftLowerLeg then
506
		                            makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
507
		                        end
508
		                        if RightLowerLeg then
509
		                            makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
510
		                        end
511
		                        if LeftFoot then
512
		                            makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
513
		                        end
514
		                        if RightFoot then
515
		                            makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
516
		                        end
517
		                        if UpperTorso then
518
		                            makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
519
		                        end
520
		                    end
521
		                    if UpperTorso then
522
								local vel = Instance.new("BodyVelocity", UpperTorso)
523
		                        vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
524
		                        vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
525
		                        game.Debris:AddItem(vel, 0.1)
526
		                        local canhit = true
527
		                        local hitval = 15
528
		                        local uptor = humanoid.Parent.UpperTorso
529
		                        if RightUpperArm then
530
									local function uncollidee()
531
										RightUpperArm.CanCollide = false
532
									end
533
									game:GetService("RunService").Stepped:connect(uncollidee)
534
		                            makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
535
		                        end
536
		                        if RightLowerArm then
537
		                            makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
538
		                        end
539
		                        if RightHand then
540
		                            makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
541
		                        end
542
		                        if LeftUpperArm then
543
									local function uncollidee()
544
										LeftUpperArm.CanCollide = false
545
									end
546
									game:GetService("RunService").Stepped:connect(uncollidee)
547
		                            makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
548
		                        end
549
		                        if LeftLowerArm then
550
		                            makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
551
		                        end
552
		                        if LeftHand then
553
		                            makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
554
		                        end
555
		                    end
556
						elseif humanoid.Parent:findFirstChild("Torso") then
557
							humanoid.Parent.Archivable = true
558
							humanoid.PlatformStand = true
559
							local function search(datone)
560
								for i,v in pairs(datone:GetChildren()) do
561
									search(v)
562
									if v.ClassName == "Sound" then
563
										v.Volume = 0
564
									end
565
								end
566
							end
567
							search(humanoid.Parent)
568
							local clonede = hitsound:Clone()
569
							clonede.Parent = part
570
							clonede:Play()
571
							if part.Name == "Head" then
572
								humanoid.Parent.Head.Transparency = 1
573
								for i,v in pairs(humanoid.Parent:GetChildren()) do
574
									if v.ClassName == "Accessory" or v.ClassName == "Hat" then
575
										local handle = v:findFirstChild("Handle")
576
										if handle then
577
											handle.Transparency = 1
578
										end
579
									end
580
								end
581
								for i,v in pairs(humanoid.Parent.Head:GetChildren()) do
582
									if v.ClassName == "Decal" then
583
										v:destroy()
584
									end
585
								end
586
								humanoid.Parent:BreakJoints()
587
							end
588
							local clone = humanoid.Parent:Clone()
589
							clone.Parent = workspace
590
							game.Debris:AddItem(clone, 60)
591
							for i,v in pairs(clone:GetChildren()) do
592
							    if v.ClassName == "Script" or v.ClassName == "LocalScript" then
593
							        v:Remove()
594
							    end
595
							    for i,p in pairs(v:GetChildren()) do
596
							    if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
597
							        p:Remove()
598
							    end
599
							end
600
							end
601
							for i,t in pairs(humanoid.Parent:GetChildren()) do
602
							    if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
603
							        t:Remove()
604
							    end
605
							end
606
							local vel = Instance.new("BodyVelocity", clone.Torso)
607
			                vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
608
			                vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 15
609
			                game.Debris:AddItem(vel, 0.1)
610
							vel = Instance.new("BodyVelocity", clone.Torso)
611
							vel.Velocity = clone.Torso.CFrame.lookVector * -5
612
							vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
613
							using = false
614
							hit = Instance.new("Sound", clone.Torso)
615
							hit.SoundId = "rbxassetid://260430060"
616
							hit.Volume = 0
617
							hit1 = Instance.new("Sound", clone.Torso)
618
							hit1.SoundId = "rbxassetid://138087186"
619
							hit1.Volume = 0
620
							hit2 = Instance.new("Sound", clone.Torso)
621
							hit2.SoundId = "rbxassetid://131237241"
622
							hit2.Volume = 0
623
							hit3 = Instance.new("Sound", clone.Torso)
624
							hit3.SoundId = "rbxassetid://278062209"
625
							hit3.Volume = 0
626
							hit3.TimePosition = 0.33
627
							ded = Instance.new("Sound", clone.Torso)
628
							ded.SoundId = "rbxassetid://418892870"
629
							ded.Volume = 0
630
							local leftarm = clone:findFirstChild("Left Arm")
631
							local rightrm = clone:findFirstChild("Right Arm")
632
							local leftleg = clone:findFirstChild("Left Leg")
633
							local rightleg = clone:findFirstChild("Right Leg")
634
							local head = clone:findFirstChild("Head")
635
							for i, g in pairs(humanoid.Parent:GetChildren()) do
636
							    if g.ClassName == "Part" then
637
							        g:destroy()
638
							    end
639
							end
640
							for i, h in pairs(humanoid.Parent:GetChildren()) do
641
							    if h.ClassName == "Accesory" then
642
							        h:destroy()
643
							    end
644
							end
645
							for z,x in pairs(clone:GetChildren()) do
646
			                        if x.ClassName == "Accessory" then
647
			                            local handle = x:findFirstChild("Handle")
648
			                            if handle then
649
			                                local attachment = handle:findFirstChildOfClass("Attachment")
650
			                                if attachment then
651
			                                    for q,w in pairs(clone:GetChildren()) do
652
			                                        if w.Name == "Torso" or w.Name == "Head" then
653
			                                            local anotherone = w:findFirstChild(attachment.Name)
654
			                                            if attachment and anotherone then
655
			                                                local constraint = Instance.new("HingeConstraint", clone) --making fake weld
656
			                                                constraint.Attachment0 = attachment
657
			                                                constraint.Attachment1 = anotherone
658
			                                                constraint.LimitsEnabled = true
659
			                                                constraint.LowerAngle = 0
660
			                                                constraint.UpperAngle = 0
661
			                                            end
662
			                                        end
663
			                                    end
664
			                                end
665
			                            end
666
			                        end
667
			                    end
668
							if head and clone.Torso:findFirstChild("NeckAttachment") then
669
							            local attachment = Instance.new("Attachment", clone.Head)
670
							            attachment.Position = Vector3.new(0, -0.5, 0)
671
							            attachment.Name = "lol"
672
							            attachment.Visible = false
673
							            clone.Torso.NeckAttachment.Visible = false
674
							            clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
675
							            local ball = Instance.new("BallSocketConstraint", clone)
676
							            ball.Attachment0 = clone.Torso.NeckAttachment
677
							            ball.Attachment1 = attachment
678
							            ball.LimitsEnabled = true
679
							            ball.TwistLimitsEnabled = true
680
							            ball.UpperAngle = 90
681
							            ball.Restitution = 0.5
682
							            ball.TwistUpperAngle = 90
683
							            ball.TwistLowerAngle = -90
684
							            local  collidepartofleftleg = Instance.new("Part", clone.Torso)
685
							            collidepartofleftleg.Name = "Bone"
686
							            collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
687
							            collidepartofleftleg.Transparency = 1
688
							            collidepartofleftleg:BreakJoints()
689
							            local weeld = Instance.new("Weld", collidepartofleftleg)
690
							            weeld.Part0 = collidepartofleftleg
691
							            weeld.Part1 = clone["Head"]
692
							        end
693
							if leftleg ~= nil then
694
							leftleg:BreakJoints()
695
							local glue = Instance.new("Glue", clone.Torso)
696
							glue.Part0 = clone.Torso
697
							glue.Part1 = leftleg
698
							glue.Name = "Left leg"
699
							local collider = Instance.new("Part", leftleg)
700
							collider.Position = Vector3.new(0,999,0)
701
							collider.Size = Vector3.new(1.5, 1, 1)
702
							collider.Shape = "Cylinder"
703
							local weld = Instance.new("Weld", collider)
704
							weld.Part0 = leftleg
705
							weld.Part1 = collider
706
							weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
707
							collider.TopSurface = "Smooth"
708
							collider.BottomSurface = "Smooth"
709
							collider.formFactor = "Symmetric"
710
							glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
711
							glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
712
							collider.Transparency = 1
713
							end
714
							------------
715
							if rightleg ~= nil then
716
							rightleg:BreakJoints()
717
							local glue1 = Instance.new("Glue", clone.Torso)
718
							glue1.Part0 = clone.Torso
719
							glue1.Part1 = rightleg
720
							glue1.Name = "Right leg"
721
							local collider1 = Instance.new("Part", rightleg)
722
							collider1.Position = Vector3.new(0,999,0)
723
							collider1.Size = Vector3.new(1.5, 1, 1)
724
							collider1.Shape = "Cylinder"
725
							local weld1 = Instance.new("Weld", collider1)
726
							weld1.Part0 = rightleg
727
							weld1.Part1 = collider1
728
							weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
729
							collider1.TopSurface = "Smooth"
730
							collider1.BottomSurface = "Smooth"
731
							collider1.formFactor = "Symmetric"
732
							glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
733
							glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
734
							collider1.Transparency = 1
735
							end
736
							------------
737
							if rightrm ~= nil then
738
							rightrm:BreakJoints()
739
							rightrm.CFrame = clone.Torso.CFrame * CFrame.new(1.7,0,0)
740
							local glue11 = Instance.new("Glue", clone.Torso)
741
							glue11.Part0 = clone.Torso
742
							glue11.Part1 = rightrm
743
							glue11.Name = "Right shoulder"
744
							local collider11 = Instance.new("Part", rightrm)
745
							collider11.Position = Vector3.new(0,9999,0)
746
							collider11.Size = Vector3.new(1.5,1,1)
747
							collider11.Shape = "Cylinder"
748
							local weld11 = Instance.new("Weld", collider11)
749
							weld11.Part0 = rightrm
750
							weld11.Part1 = collider11
751
							weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
752
							collider11.TopSurface = "Smooth"
753
							collider11.BottomSurface = "Smooth"
754
							collider11.formFactor = "Symmetric"
755
							glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
756
							glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
757
							collider11.Transparency = 1
758
							end
759
							------------
760
							if leftarm ~= nil then
761
							leftarm.CFrame = clone.Torso.CFrame * CFrame.new(-1.7,0,0)
762
							leftarm:BreakJoints()
763
							local glue111 = Instance.new("Glue", clone.Torso)
764
							glue111.Part0 = clone.Torso
765
							glue111.Part1 = leftarm
766
							glue111.Name = "Left shoulder"
767
							local collider111 = Instance.new("Part", leftarm)
768
							collider111.Position = Vector3.new(0,9999,0)
769
							collider111.Size = Vector3.new(1.5,1,1)
770
							collider111.Shape = "Cylinder"
771
							local weld111 = Instance.new("Weld", collider111)
772
							weld111.Part0 = leftarm
773
							weld111.Part1 = collider111
774
							weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
775
							collider111.TopSurface = "Smooth"
776
							collider111.BottomSurface = "Smooth"
777
							collider111.formFactor = "Symmetric"
778
							glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
779
							glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
780
							collider111.Transparency = 1
781
							----------------
782
							sensoring = Instance.new("Part", clone.Torso)
783
							sensoring.Size = Vector3.new(1.2,1.1,0.8)
784
							sensoring.CanCollide = false
785
							sensoring.Position = clone.Torso.Position
786
							local welder = Instance.new("Weld", sensoring)
787
							welder.Part0 = clone.Torso
788
							welder.Part1 = sensoring
789
							welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
790
							sensoring.Transparency = 1
791
							-----------------
792
							sensoring1 = Instance.new("Part", clone.Torso)
793
							sensoring1.Size = Vector3.new(1.2,1.1,0.8)
794
							sensoring1.CanCollide = false
795
							sensoring1.Position = clone.Torso.Position
796
							local welder1 = Instance.new("Weld", sensoring)
797
							welder1.Part0 = clone.Torso
798
							welder1.Part1 = sensoring1
799
							welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
800
							sensoring1.Transparency = 1
801
							end
802
							local mathname = math.random(1,10) 
803
							if mathname == 1 then
804
								clone.Name = humanoid.Parent.Name.." (Shot to death by "..game.Players.LocalPlayer.Name..")"
805
							end
806
							if mathname == 2 then
807
								clone.Name = humanoid.Parent.Name.." (Killed by "..game.Players.LocalPlayer.Name..")"
808
							end
809
							if mathname == 3 then
810
								clone.Name = humanoid.Parent.Name.." (Shot by "..game.Players.LocalPlayer.Name..")"
811
							end
812
							if mathname == 4 then
813
								clone.Name = humanoid.Parent.Name.." (Rekted by "..game.Players.LocalPlayer.Name..")"
814
							end
815
							if mathname == 5 then
816
								clone.Name = humanoid.Parent.Name.." (rip by "..game.Players.LocalPlayer.Name..")"
817
							end
818
							if mathname == 6 then
819
								clone.Name = humanoid.Parent.Name.." (rest in piss "..humanoid.Parent.Name.." by "..game.Players.LocalPlayer.Name..")"
820
							end
821
							if mathname == 7 then
822
								clone.Name = humanoid.Parent.Name.." (rip in pepperoni "..humanoid.Parent.Name.." by "..game.Players.LocalPlayer.Name..")"
823
							end
824
							if mathname == 8 then
825
								clone.Name = humanoid.Parent.Name.." (uuhhh.wav'd by "..game.Players.LocalPlayer.Name..")"
826
							end
827
							if mathname == 9 then
828
								clone.Name = humanoid.Parent.Name.." (oof'd by "..game.Players.LocalPlayer.Name..")"
829
							end
830
							if mathname == 10 then
831
								clone.Name = humanoid.Parent.Name.." (insert child hurt sound by "..game.Players.LocalPlayer.Name..")"
832
							end
833
							ded:Play()
834
							vel:destroy()
835
							wait(0.5)
836
							local function touch()
837
							    if not using then
838
							        using = true
839
							        local Math = math.random(1,4)
840
							        if Math == 1 then
841
							            hit:Play()
842
							        end
843
							        if Math == 2 then
844
							            hit1:Play()
845
							        end
846
							        if Math == 3 then
847
							            hit2:Play()
848
							        end
849
							        if Math == 4 then
850
							            hit3:Play()
851
							        end
852
							        wait(0.1)
853
							        using = false
854
							    end
855
							end
856
							sensoring.Touched:connect(touch)
857
							sensoring1.Touched:connect(touch)
858
							while true do
859
								if clone:findFirstChild("Head") then
860
									clone.Head.CanCollide = false
861
							    end
862
							    game:GetService("RunService").Stepped:wait()
863
							end
864
						end
865
					else
866
						local clonede = hitsound:Clone()
867
						clonede.Parent = part
868
						clonede:Play()
869
						humanoid.Health = humanoid.Health - damage
870
					end
871
				end
872
			end
873
			projectile.Touched:connect(damag)
874
		end
875
		for i = 1,5 do
876
			rhandweld.C1 = rhandweld.C1 * CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(-0.04,0,0)
877
			game:GetService("RunService").RenderStepped:wait()
878
		end
879
		light:destroy()
880
		for i = 1,10 do
881
			rhandweld.C1 = rhandweld.C1 * CFrame.new(0,0.1,0) * CFrame.fromEulerAnglesXYZ(0.02,0,0)
882
			game:GetService("RunService").RenderStepped:wait()
883
		end
884
		rhandweld.C1 = CFrame.new(0,1,0)
885
		shooting = false
886
	end
887
end
888
mouse.Button1Down:connect(shootdemskids)
889
while true do
890
	if (workspace.CurrentCamera.CFrame.p - game.Players.LocalPlayer.Character.Head.Position).magnitude < 2 then
891
		gunclone.Transparency = 0
892
		rhandclone.Transparency = 0
893
		lhandclone.Transparency = 0
894
	else
895
		gunclone.Transparency = 1
896
		rhandclone.Transparency = 1
897
		lhandclone.Transparency = 1
898
	end
899
	if Sound1.Parent == nil then
900
		Sound1.Parent = Part0
901
	end
902
	if deflect.Parent == nil then
903
		deflect.Parent = Part0
904
	end
905
	if hitsound.Parent == nil then
906
		hitsound.Parent = Part0
907
	end
908
	if hedshot.Parent == nil then
909
		hedshot.Parent = Part0
910
	end
911
	if wubwub.Parent == nil then
912
		wubwub.Parent = Part0
913
	end
914
	game:GetService("RunService").RenderStepped:wait()
915
end