SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso) | |
3 | vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5 | |
4 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
5 | --]] | |
6 | --Credit To Rufus14 | |
7 | --I just edit it a bit ^_^ | |
8 | mouse = game.Players.LocalPlayer:GetMouse() | |
9 | function ragdoll() | |
10 | game.Players.LocalPlayer.Character.Archivable = true | |
11 | clone = game.Players.LocalPlayer.Character:Clone() | |
12 | clone.Parent = workspace | |
13 | for i,v in pairs(clone:GetChildren()) do | |
14 | if v.ClassName == "Script" or v.ClassName == "LocalScript" then | |
15 | v:destroy() | |
16 | end | |
17 | for i,p in pairs(v:GetChildren()) do | |
18 | if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then | |
19 | p:destroy() | |
20 | end | |
21 | end | |
22 | end | |
23 | for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
24 | if t.ClassName == "Accessory" or t.ClassName == "ForceField" then | |
25 | t:destroy() | |
26 | end | |
27 | end | |
28 | vel = Instance.new("BodyVelocity", clone.Torso) | |
29 | vel.Velocity = clone.Torso.CFrame.lookVector * -5 | |
30 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
31 | clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608" | |
32 | using = false | |
33 | hit = Instance.new("Sound", clone.Torso) | |
34 | hit.SoundId = "rbxassetid://260430060" | |
35 | hit.Volume = 5 | |
36 | hit1 = Instance.new("Sound", clone.Torso) | |
37 | hit1.SoundId = "rbxassetid://138087186" | |
38 | hit1.Volume = 5 | |
39 | hit2 = Instance.new("Sound", clone.Torso) | |
40 | hit2.SoundId = "rbxassetid://131237241" | |
41 | hit2.Volume = 5 | |
42 | hit3 = Instance.new("Sound", clone.Torso) | |
43 | hit3.SoundId = "rbxassetid://278062209" | |
44 | hit3.Volume = 5 | |
45 | hit3.TimePosition = 0.33 | |
46 | ded = Instance.new("Sound", clone.Torso) | |
47 | - | ded.SoundId = "rbxassetid://163154423" |
47 | + | ded.SoundId = "rbxassetid://1098298141" |
48 | ded.Volume = 5 | |
49 | local leftarm = clone:findFirstChild("Left Arm") | |
50 | local rightrm = clone:findFirstChild("Right Arm") | |
51 | local leftleg = clone:findFirstChild("Left Leg") | |
52 | local rightleg = clone:findFirstChild("Right Leg") | |
53 | local head = clone:findFirstChild("Head") | |
54 | local welding = Instance.new("Weld", clone.Torso) | |
55 | welding.Part0 = clone.Torso | |
56 | welding.Part1 = head | |
57 | welding.C0 = welding.C0 * CFrame.new(0,1.5,0) | |
58 | for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
59 | if g.ClassName == "Part" then | |
60 | g:destroy() | |
61 | end | |
62 | end | |
63 | for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
64 | if h.ClassName == "Accesory" then | |
65 | h:destroy() | |
66 | end | |
67 | end | |
68 | game.Workspace.CurrentCamera.CameraSubject = head | |
69 | if leftleg ~= nil then | |
70 | local glue = Instance.new("Glue", clone.Torso) | |
71 | glue.Part0 = clone.Torso | |
72 | glue.Part1 = leftleg | |
73 | glue.Name = "Left leg" | |
74 | local collider = Instance.new("Part", leftleg) | |
75 | collider.Position = Vector3.new(0,999,0) | |
76 | collider.Size = Vector3.new(1.7, 1, 1) | |
77 | collider.Shape = "Cylinder" | |
78 | local weld = Instance.new("Weld", collider) | |
79 | weld.Part0 = leftleg | |
80 | weld.Part1 = collider | |
81 | weld.C0 = CFrame.Angles(0, 0, 80) | |
82 | collider.TopSurface = "Smooth" | |
83 | collider.BottomSurface = "Smooth" | |
84 | collider.formFactor = "Symmetric" | |
85 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
86 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
87 | collider.Transparency = 1 | |
88 | end | |
89 | ------------ | |
90 | if rightleg ~= nil then | |
91 | local glue1 = Instance.new("Glue", clone.Torso) | |
92 | glue1.Part0 = clone.Torso | |
93 | glue1.Part1 = rightleg | |
94 | glue1.Name = "Right leg" | |
95 | local collider1 = Instance.new("Part", rightleg) | |
96 | collider1.Position = Vector3.new(0,999,0) | |
97 | collider1.Size = Vector3.new(1.7, 1, 1) | |
98 | collider1.Shape = "Cylinder" | |
99 | local weld1 = Instance.new("Weld", collider1) | |
100 | weld1.Part0 = rightleg | |
101 | weld1.Part1 = collider1 | |
102 | weld1.C0 = CFrame.Angles(0, 0, 80) | |
103 | collider1.TopSurface = "Smooth" | |
104 | collider1.BottomSurface = "Smooth" | |
105 | collider1.formFactor = "Symmetric" | |
106 | glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
107 | glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
108 | collider1.Transparency = 1 | |
109 | end | |
110 | ------------ | |
111 | if rightrm ~= nil then | |
112 | local glue11 = Instance.new("Glue", clone.Torso) | |
113 | glue11.Part0 = clone.Torso | |
114 | glue11.Part1 = rightrm | |
115 | glue11.Name = "Right shoulder" | |
116 | local collider11 = Instance.new("Part", rightrm) | |
117 | collider11.Position = Vector3.new(0,9999,0) | |
118 | collider11.Size = Vector3.new(1.8,1,1) | |
119 | collider11.Shape = "Cylinder" | |
120 | local weld11 = Instance.new("Weld", collider11) | |
121 | weld11.Part0 = rightrm | |
122 | weld11.Part1 = collider11 | |
123 | weld11.C0 = CFrame.Angles(0, 0, 80) | |
124 | collider11.TopSurface = "Smooth" | |
125 | collider11.BottomSurface = "Smooth" | |
126 | collider11.formFactor = "Symmetric" | |
127 | glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
128 | glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
129 | collider11.Transparency = 1 | |
130 | end | |
131 | ------------ | |
132 | if leftarm ~= nil then | |
133 | local glue111 = Instance.new("Glue", clone.Torso) | |
134 | glue111.Part0 = clone.Torso | |
135 | glue111.Part1 = leftarm | |
136 | glue111.Name = "Left shoulder" | |
137 | local collider111 = Instance.new("Part", leftarm) | |
138 | collider111.Position = Vector3.new(0,9999,0) | |
139 | collider111.Size = Vector3.new(1.8,1,1) | |
140 | collider111.Shape = "Cylinder" | |
141 | local weld111 = Instance.new("Weld", collider111) | |
142 | weld111.Part0 = leftarm | |
143 | weld111.Part1 = collider111 | |
144 | weld111.C0 = CFrame.Angles(0, 0, 80) | |
145 | collider111.TopSurface = "Smooth" | |
146 | collider111.BottomSurface = "Smooth" | |
147 | collider111.formFactor = "Symmetric" | |
148 | glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
149 | glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
150 | collider111.Transparency = 1 | |
151 | ---------------- | |
152 | sensoring = Instance.new("Part", clone.Torso) | |
153 | sensoring.Size = Vector3.new(1.2,1.1,0.8) | |
154 | sensoring.CanCollide = false | |
155 | sensoring.Position = clone.Torso.Position | |
156 | local welder = Instance.new("Weld", sensoring) | |
157 | welder.Part0 = clone.Torso | |
158 | welder.Part1 = sensoring | |
159 | welder.C0 = welder.C0 * CFrame.new(0,0,1.05) | |
160 | sensoring.Transparency = 1 | |
161 | ----------------- | |
162 | sensoring1 = Instance.new("Part", clone.Torso) | |
163 | sensoring1.Size = Vector3.new(1.2,1.1,0.8) | |
164 | sensoring1.CanCollide = false | |
165 | sensoring1.Position = clone.Torso.Position | |
166 | local welder1 = Instance.new("Weld", sensoring) | |
167 | welder1.Part0 = clone.Torso | |
168 | welder1.Part1 = sensoring1 | |
169 | welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05) | |
170 | sensoring1.Transparency = 1 | |
171 | end | |
172 | - | clone.Name = game.Players.LocalPlayer.Character.Name.."1" |
172 | + | clone.Name = game.Players.LocalPlayer.Character.Name.." killed by JeffTheYouTuber_C303" |
173 | ded:Play() | |
174 | vel:destroy() | |
175 | wait(0.5) | |
176 | local function touch() | |
177 | if not using then | |
178 | using = true | |
179 | local Math = math.random(1,4) | |
180 | if Math == 1 then | |
181 | hit:Play() | |
182 | end | |
183 | if Math == 2 then | |
184 | hit1:Play() | |
185 | end | |
186 | if Math == 3 then | |
187 | hit2:Play() | |
188 | end | |
189 | if Math == 4 then | |
190 | hit3:Play() | |
191 | end | |
192 | wait(0.1) | |
193 | using = false | |
194 | end | |
195 | end | |
196 | sensoring.Touched:connect(touch) | |
197 | sensoring1.Touched:connect(touch) | |
198 | wait(4.47) | |
199 | hit1.Volume = 0 | |
200 | hit2.Volume = 0 | |
201 | hit3.Volume = 0 | |
202 | hit.Volume = 0 | |
203 | end | |
204 | ||
205 | game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll) | |
206 | ||
207 | --di ent |