View difference between Paste ID: 1CebZ3L8 and pqaVQa3T
SHOW: | | - or go back to the newest paste.
1
--Converted with ttyyuu12345's model to script plugin v4
2
--By Rufus14
3
mouse = game.Players.LocalPlayer:GetMouse()
4
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge
5
game.Players.LocalPlayer.Character.Humanoid.Health = math.huge
6
function sandbox(var,func)
7
	local env = getfenv(func)
8
	local newenv = setmetatable({},{
9
		__index = function(self,k)
10
			if k=="script" then
11
				return var
12
			else
13
				return env[k]
14
			end
15
		end,
16
	})
17
	setfenv(func,newenv)
18
	return func
19
end
20
cors = {}
21
mas = Instance.new("Model",game:GetService("Lighting"))
22
Part0 = Instance.new("Part")
23
SpecialMesh1 = Instance.new("SpecialMesh")
24
Part0.Name = "Gun"
25
Part0.Parent = mas
26
Part0.CanCollide = false
27
Part0.Size = Vector3.new(0.970000505, 2.46999931, 0.380000055)
28
Part0.CFrame = CFrame.new(-211.74501, 2.6168952, 37.920002, 1, 0, 0, 0, 1, 0, 0, 0, 1)
29
Part0.Position = Vector3.new(-211.74501, 2.6168952, 37.920002)
30
SpecialMesh1.Parent = Part0
31
SpecialMesh1.MeshId = "rbxassetid://505563629"
32
SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989)
33
SpecialMesh1.TextureId = "rbxassetid://505563636"
34
SpecialMesh1.MeshType = Enum.MeshType.FileMesh
35
SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989)
36
for i,v in pairs(mas:GetChildren()) do
37
	v.Parent = game:GetService("Players").LocalPlayer.Character
38
	pcall(function() v:MakeJoints() end)
39
end
40
mas:Destroy()
41
for i,v in pairs(cors) do
42
	spawn(function()
43
		pcall(v)
44
	end)
45
end
46
cankys = true
47
weld = Instance.new("Weld", Part0)
48
weld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
49
weld.Part1 = Part0
50
weld.C0 = CFrame.new(0.158004761, -1.63815379, -1.00455856, -5.79879307e-22, 9.29214533e-23, 1, -0.587791622, -0.809012473, -2.65673535e-22, 0.809012473, -0.587791622, 5.23747954e-22)
51
function killyourself(key)
52
	if cankys then
53
		cankys = false
54
		if game.Players.LocalPlayer.Character.Head:findFirstChild("face") then
55
			game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://1148787155"
56
		end
57
		local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
58
		rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
59
		rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
60
		rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
61
		local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
62
		lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
63
		lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
64
		lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
65
		for i = 0,2 , 0.02 do
66
			weld.C0 = weld.C0:lerp(CFrame.new(0.720336914, -0.258590698, -0.514060974, 0.409927189, 0.572569966, -0.710018694, 0.0567400455, 0.760912359, 0.646370947, 0.910354853, -0.305250764, 0.279430419),i)
67
			lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.832244873, 0.405325174, -1.44667816, 0.719340205, -0.634600103, -0.28254649, -0.214658037, 0.183768019, -0.959245205, 0.660660148, 0.750674427, -0.00403028121),i)
68
			rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.921920776, 0.294008493, -1.1861496, 0.88295126, 0.469464868, 6.12843053e-07, -0.0490720123, 0.0922940373, -0.994521856, -0.466893107, 0.878114343, 0.104528703),i)
69
			game:GetService("RunService").RenderStepped:wait()
70
		end
71
		script.Parent = nil
72
function ragdoll()
73
game.Players.LocalPlayer.Character.Archivable = true
74
clone = game.Players.LocalPlayer.Character:Clone()
75
clone.Parent = workspace
76
for i,v in pairs(clone:GetChildren()) do
77
	if v.ClassName == "Script" or v.ClassName == "LocalScript" then
78
		v:destroy()
79
	end
80
	for i,p in pairs(v:GetChildren()) do
81
	if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
82
		p:destroy()
83
	end
84
end
85
end
86
for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
87
	if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
88
		t:destroy()
89
	end
90
end
91
vel = Instance.new("BodyVelocity", clone.Torso)
92
vel.Velocity = clone.Torso.CFrame.lookVector * -5
93
vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
94
clone.Head.face.Texture = "http://www.roblox.com/asset/?id=305296807"
95
using = false
96
hit = Instance.new("Sound", clone.Torso)
97
hit.SoundId = "rbxassetid://260430060"
98
hit.Volume = 0
99
hit1 = Instance.new("Sound", clone.Torso)
100
hit1.SoundId = "rbxassetid://138087186"
101
hit1.Volume = 0
102
hit2 = Instance.new("Sound", clone.Torso)
103
hit2.SoundId = "rbxassetid://131237241"
104
hit2.Volume = 0
105
hit3 = Instance.new("Sound", clone.Torso)
106
hit3.SoundId = "rbxassetid://278062209"
107
hit3.Volume = 0
108
hit3.TimePosition = 0.33
109
ded = Instance.new("Sound", clone.Torso)
110
ded.SoundId = "rbxassetid://304679846"
111
ded.Volume = 10
112
local leftarm = clone:findFirstChild("Left Arm")
113
local rightrm = clone:findFirstChild("Right Arm")
114
local leftleg = clone:findFirstChild("Left Leg")
115
local rightleg = clone:findFirstChild("Right Leg")
116
local head = clone:findFirstChild("Head")
117
for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
118
	if g.ClassName == "Part" then
119
		g:destroy()
120
	end
121
end
122
for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
123
	if h.ClassName == "Accesory" then
124
		h:destroy()
125
	end
126
end
127
game.Workspace.CurrentCamera.CameraSubject = head
128
if head then
129
            local attachment = Instance.new("Attachment", clone.Head)
130
            attachment.Position = Vector3.new(0, -0.5, 0)
131
            attachment.Name = "lol"
132
            attachment.Visible = false
133
            clone.Torso.NeckAttachment.Visible = false
134
            clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
135
            local ball = Instance.new("BallSocketConstraint", clone)
136
            ball.Attachment0 = clone.Torso.NeckAttachment
137
            ball.Attachment1 = attachment
138
			ball.LimitsEnabled = true
139
			ball.TwistLimitsEnabled = true
140
			ball.UpperAngle = 90
141
			ball.Restitution = 0.5
142
			ball.TwistUpperAngle = 90
143
			ball.TwistLowerAngle = -90
144
            local  collidepartofleftleg = Instance.new("Part", clone.Torso)
145
            collidepartofleftleg.Name = "Bone"
146
            collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
147
            collidepartofleftleg.Transparency = 1
148
            collidepartofleftleg:BreakJoints()
149
            local weeld = Instance.new("Weld", collidepartofleftleg)
150
            weeld.Part0 = collidepartofleftleg
151
            weeld.Part1 = clone["Head"]
152
        end
153
if leftleg ~= nil then
154
local glue = Instance.new("Glue", clone.Torso)
155
glue.Part0 = clone.Torso
156
glue.Part1 = leftleg
157
glue.Name = "Left leg"
158
local collider = Instance.new("Part", leftleg)
159
collider.Position = Vector3.new(0,999,0)
160
collider.Size = Vector3.new(1.5, 1, 1)
161
collider.Shape = "Cylinder"
162
local weld = Instance.new("Weld", collider)
163
weld.Part0 = leftleg
164
weld.Part1 = collider
165
weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
166
collider.TopSurface = "Smooth"
167
collider.BottomSurface = "Smooth"
168
collider.formFactor = "Symmetric"
169
glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
170
glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
171
collider.Transparency = 1
172
end
173
------------
174
if rightleg ~= nil then
175
local glue1 = Instance.new("Glue", clone.Torso)
176
glue1.Part0 = clone.Torso
177
glue1.Part1 = rightleg
178
glue1.Name = "Right leg"
179
local collider1 = Instance.new("Part", rightleg)
180
collider1.Position = Vector3.new(0,999,0)
181
collider1.Size = Vector3.new(1.5, 1, 1)
182
collider1.Shape = "Cylinder"
183
local weld1 = Instance.new("Weld", collider1)
184
weld1.Part0 = rightleg
185
weld1.Part1 = collider1
186
weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
187
collider1.TopSurface = "Smooth"
188
collider1.BottomSurface = "Smooth"
189
collider1.formFactor = "Symmetric"
190
glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
191
glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
192
collider1.Transparency = 1
193
end
194
------------
195
if rightrm ~= nil then
196
local glue11 = Instance.new("Glue", clone.Torso)
197
glue11.Part0 = clone.Torso
198
glue11.Part1 = rightrm
199
glue11.Name = "Right shoulder"
200
local collider11 = Instance.new("Part", rightrm)
201
collider11.Position = Vector3.new(0,9999,0)
202
collider11.Size = Vector3.new(1.5,1,1)
203
collider11.Shape = "Cylinder"
204
local weld11 = Instance.new("Weld", collider11)
205
weld11.Part0 = rightrm
206
weld11.Part1 = collider11
207
weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
208
collider11.TopSurface = "Smooth"
209
collider11.BottomSurface = "Smooth"
210
collider11.formFactor = "Symmetric"
211
glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
212
glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
213
collider11.Transparency = 1
214
end
215
------------
216
if leftarm ~= nil then
217
local glue111 = Instance.new("Glue", clone.Torso)
218
glue111.Part0 = clone.Torso
219
glue111.Part1 = leftarm
220
glue111.Name = "Left shoulder"
221
local collider111 = Instance.new("Part", leftarm)
222
collider111.Position = Vector3.new(0,9999,0)
223
collider111.Size = Vector3.new(1.5,1,1)
224
collider111.Shape = "Cylinder"
225
local weld111 = Instance.new("Weld", collider111)
226
weld111.Part0 = leftarm
227
weld111.Part1 = collider111
228
weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
229
collider111.TopSurface = "Smooth"
230
collider111.BottomSurface = "Smooth"
231
collider111.formFactor = "Symmetric"
232
glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
233
glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
234
collider111.Transparency = 1
235
----------------
236
sensoring = Instance.new("Part", clone.Torso)
237
sensoring.Size = Vector3.new(1.2,1.1,0.8)
238
sensoring.CanCollide = false
239
sensoring.Position = clone.Torso.Position
240
local welder = Instance.new("Weld", sensoring)
241
welder.Part0 = clone.Torso
242
welder.Part1 = sensoring
243
welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
244
sensoring.Transparency = 1
245
-----------------
246
sensoring1 = Instance.new("Part", clone.Torso)
247
sensoring1.Size = Vector3.new(1.2,1.1,0.8)
248
sensoring1.CanCollide = false
249
sensoring1.Position = clone.Torso.Position
250
local welder1 = Instance.new("Weld", sensoring)
251
welder1.Part0 = clone.Torso
252
welder1.Part1 = sensoring1
253
welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
254
sensoring1.Transparency = 1
255
end
256
clone.Name = game.Players.LocalPlayer.Character.Name.." (Suicide)"
257
ded:Play()
258
vel:destroy()
259
wait(0.5)
260
local function touch()
261
	if not using then
262
		using = true
263
		local Math = math.random(1,4)
264
		if Math == 1 then
265
			hit:Play()
266
		end
267
		if Math == 2 then
268
			hit1:Play()
269
		end
270
		if Math == 3 then
271
			hit2:Play()
272
		end
273
		if Math == 4 then
274
			hit3:Play()
275
		end
276
		wait(0.1)
277
		using = false
278
	end
279
end
280
sensoring.Touched:connect(touch)
281
sensoring1.Touched:connect(touch)
282
while true do
283
	clone.Head.CanCollide = false
284
	game:GetService("RunService").Stepped:wait()
285
end
286
end
287
288
game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
289
290
--di ent
291
game.Players.LocalPlayer.Character.Humanoid.Health = 0
292
	end
293
end
294
mouse.Button1Down:connect(killyourself)