View difference between Paste ID: 1U80dT47 and 89AKdYUS
SHOW: | | - or go back to the newest paste.
1-
hop = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
1+
hop = Instance.new("HopperBin", owner.Backpack)
2-
local player=game:service'Players'.LocalPlayer
2+
local player=owner
3
local char=player.Character
4
shirt = Instance.new("Shirt", char)
5
shirt.Name = "Shirt"
6
pants = Instance.new("Pants", char)
7
pants.Name = "Pants"
8
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=704727094" -- everything went in an unexpected manner
9
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=704727262"
10
char["Body Colors"].HeadColor = BrickColor.new("Buttermilk")
11
char["Body Colors"].TorsoColor = BrickColor.new("Buttermilk")
12
char["Body Colors"].LeftArmColor = BrickColor.new("Buttermilk")
13
char["Body Colors"].RightArmColor = BrickColor.new("Buttermilk")
14
char["Body Colors"].LeftLegColor = BrickColor.new("Buttermilk")
15
char["Body Colors"].RightLegColor = BrickColor.new("Buttermilk")
16
17
wait(0.05)
18
debounce = true
19
etime = 0
20
etimem = 20
21
down = false
22
vPlayer = game.Players.LocalPlayer
23
cPlayer = nil
24
Humanoid = nil
25
Welds = {}
26
stopVictoly = function()
27
  for _,v in pairs(Welds) do
28
    v.Parent = cPlayer.Torso
29
  end
30
  wait(0.2)
31
  g1:Remove()
32
  g2:Remove()
33
  g3:Remove()
34
  g4:Remove()
35
  g5:Remove()
36
  b1:Remove()
37
  b2:Remove()
38
  p1:Remove()
39
  p2:Remove()
40
  bpos:Remove()
41
  brot:Remove()
42
  Head.Anchored = false
43
  Humanoid.PlatformStand = false
44
end
45
46
startVictoly = function()
47
  Welds = {}
48
  cPlayer = vPlayer.Character
49
  Humanoid = nil
50
  for _,v in pairs(cPlayer:children()) do
51
    if v.className == "Humanoid" then
52
      Humanoid = v
53
	  Humanoid.Name = "bepis"
54
      Humanoid.Health = math.huge
55
    end
56
    if v.Name == "Torso" then
57
      for __,vv in pairs(v:children()) do
58
        if vv:IsA("JointInstance") then
59
          table.insert(Welds, vv)
60
        end
61
      end
62
    end
63
  end
64
  Torso = cPlayer.Torso
65
  Head = cPlayer.Head
66
  RightArm = cPlayer["Right Arm"]
67
  LeftArm = cPlayer["Left Arm"]
68
  RightLeg = cPlayer["Right Leg"]
69
  LeftLeg = cPlayer["Left Leg"]
70
  Head.Anchored = true
71
  headpos = Head.CFrame.p
72
  print("DEAD")
73
  Humanoid.PlatformStand = true
74
  Torso.Anchored = true
75
  p1 = Instance.new("Part", cPlayer)
76
  p1.Anchored = true
77
  p1.formFactor = "Custom"
78
  p1.Size = Vector3.new(1, 1, 1)
79
  p1.TopSurface = 0
80
  p1.BottomSurface = 0
81
  p1.CanCollide = false
82
  p1.Name = "AnchorR"
83
  p1.CFrame = Torso.CFrame * CFrame.new(0.5, -3.5, 0)
84
  p1.Transparency = 1
85
  p2 = Instance.new("Part", cPlayer)
86
  p2.Anchored = true
87
  p2.formFactor = "Custom"
88
  p2.Size = Vector3.new(1, 1, 1)
89
  p2.TopSurface = 0
90
  p2.BottomSurface = 0
91
  p2.CanCollide = false
92
  p2.Name = "AnchorL"
93
  p2.CFrame = Torso.CFrame * CFrame.new(-0.5, -3.5, 0)
94
  p2.Transparency = 1
95
  g1 = Instance.new("Glue", RightLeg)
96
  g1.Part0 = Torso
97
  g1.Part1 = RightLeg
98
  g1.C0 = CFrame.new(0.5, -2, 0)
99
  g1.C1 = CFrame.new(0, 0, 0)
100
  g1.F0 = Vector3.new(0, 1, 0)
101
  g1.F1 = Vector3.new(0, 1, 0)
102
  g1.F2 = Vector3.new(0, 1, 0)
103
  g1.F3 = Vector3.new(0, 1, 0)
104
  g2 = Instance.new("Glue", p1)
105
  g2.Part0 = p1
106
  g2.Part1 = RightLeg
107
  g2.C0 = CFrame.new(0, 1.5, 0)
108
  g2.C1 = CFrame.new(0, 0, 0)
109
  g2.F0 = Vector3.new(0.25, -1, 0.25)
110
  g2.F1 = Vector3.new(0.25, -1, -0.25)
111
  g2.F2 = Vector3.new(-0.25, -1, 0.25)
112
  g2.F3 = Vector3.new(-0.25, -1, -0.25)
113
  g3 = Instance.new("Glue", LeftLeg)
114
  g3.Part0 = Torso
115
  g3.Part1 = LeftLeg
116
  g3.C0 = CFrame.new(-0.5, -2, 0)
117
  g3.C1 = CFrame.new(0, 0, 0)
118
  g3.F0 = Vector3.new(0, 1, 0)
119
  g3.F1 = Vector3.new(0, 1, 0)
120
  g3.F2 = Vector3.new(0, 1, 0)
121
  g3.F3 = Vector3.new(0, 1, 0)
122
  g4 = Instance.new("Glue", p2)
123
  g4.Part0 = p2
124
  g4.Part1 = LeftLeg
125
  g4.C0 = CFrame.new(0, 1.5, 0)
126
  g4.C1 = CFrame.new(0, 0, 0)
127
  g4.F0 = Vector3.new(0.25, -1, 0.25)
128
  g4.F1 = Vector3.new(0.25, -1, -0.25)
129
  g4.F2 = Vector3.new(-0.25, -1, 0.25)
130
  g4.F3 = Vector3.new(-0.25, -1, -0.25)
131
  g5 = Instance.new("Glue", Torso)
132
  g5.Part0 = Head
133
  g5.Part1 = Torso
134
  g5.C0 = CFrame.new(0, 0, 0)
135
  g5.C1 = CFrame.new(0, 1.5, 0)
136
  g5.F0 = Vector3.new(0, 0, 0)
137
  g5.F1 = Vector3.new(0, 0, 0)
138
  g5.F2 = Vector3.new(0, 0, 0)
139
  g5.F3 = Vector3.new(0, 0, 0)
140
  for _,v in pairs(Welds) do
141
    if v.Name ~= "Neck" then
142
      print(v.Name)
143
      v.Parent = nil
144
      if v.Name == "Right Shoulder" then
145
        RSC0 = v.C0
146
        RSC1 = v.C1
147
      else
148
        if v.Name == "Left Shoulder" then
149
          LSC0 = v.C0
150
          LSC1 = v.C1
151
        end
152
      end
153
    end
154
  end
155
  b1 = Instance.new("Motor6D", RightArm)
156
  b1.Part0 = Torso
157
  b1.Part1 = RightArm
158
  b1.C0 = RSC0
159
  b1.C1 = RSC1 * CFrame.new(0, 0.25, 0)
160
  b2 = Instance.new("Motor6D", LeftArm)
161
  b2.Part0 = Torso
162
  b2.Part1 = LeftArm
163
  b2.C0 = LSC0
164
  b2.C1 = LSC1 * CFrame.new(0, 0.25, 0)
165
  pos = Torso.Position
166
  brot = Instance.new("BodyAngularVelocity", Torso)
167
  brot.P = 2250
168
  brot.maxTorque = Vector3.new(8000000, 8000000, 8000000)
169
  bpos = Instance.new("BodyPosition", Torso)
170
  bpos.P = 4250
171
  bpos.D = 150
172
  bpos.maxForce = Vector3.new(8000000000, 0, 8000000000)
173
  bpos.position = Torso.Position
174
  Torso.RotVelocity = Vector3.new()
175
  Torso.Velocity = Vector3.new()
176
  for i = 1, 5 do
177
    for _,v in pairs(cPlayer:children()) do
178
      if v:IsA("BasePart") then
179
        v.Velocity = Vector3.new()
180
        v.RotVelocity = Vector3.new()
181
      end
182
    end
183
    wait(0.05)
184
  end
185
  Torso.Neck.Parent = nil
186
  Torso.Anchored = false
187
  ex = 0
188
  em = 0
189
  elo = 0
190
  local mus = Instance.new("Sound", Torso)
191
  mus.Volume = 1
192
  mus.SoundId = "http://www.roblox.com/asset/?id=685408383"
193
  wait()
194
  mus:Play()
195
  ded = false
196
  wait()
197
  li = Instance.new("PointLight", Torso)
198
  li.Range = 25
199
  li.Brightness = 5
200
  li.Shadows = true
201
  pos = Torso.CFrame
202
  while down do
203
    game:GetService("RunService").Stepped:wait()
204
    em = em + 1
205
    elo = elo + 1
206
    if em == 11 then
207
      brot.angularvelocity = Vector3.new(math.random(-26, 26), math.random(-20, 20) / 6, math.random(-26, 26) / 2)
208
      bpos.position = pos * CFrame.new(math.random(-20, 20) / 10, 0, math.random(-20, 20) / 20).p
209
      em = math.random(0, 4)
210
      li.Color = Color3.new(math.random(100, 255) / 255, math.random(100, 255) / 255, math.random(100, 255) / 255)
211
    end
212
    b1.C0 = RSC0 * CFrame.new(math.cos(math.rad(elo * 15)) / 50, 0.5, math.sin(math.rad(elo * 15)) / 60) * CFrame.Angles(math.rad(ex / 8) * elo - math.pi / 3, math.cos(math.rad(elo * 15)) / 130, math.sin(elo / 8) * 7)
213
    b2.C0 = LSC0 * CFrame.new(math.cos(math.rad(elo * 15)) / 20, 0.5, math.sin(math.rad(elo * 15)) / 30) * CFrame.Angles(math.rad(-ex / 8) * elo - math.pi / 3, math.sin(math.rad(elo * 15)) / 100, -math.cos(elo / 8) * 7)
214
    ex = ex + math.random(-5, 5) / 5
215
    if ex > 50 then
216
      ex = 50
217
    else
218
      if ex < 10 then
219
        ex = 20
220
      end
221
    end
222
    if elo > 15 then
223
      if g1.Parent == nil or g2.Parent == nil or g3.Parent == nil or g4.Parent == nil or g5.Parent == nil or Humanoid.Health <= 0 then
224
        ded = true
225
        break
226
      end
227
      if g1.Part0 == nil or g2.Part0 == nil or g3.Part0 == nil or g4.Part0 == nil or g5.Part0 == nil then
228
        ded = true
229
        break
230
      end
231
      if RightArm.Parent == nil or LeftArm.Parent == nil or LeftLeg.Parent == nil or RightLeg.Parent == nil then
232
        ded = true
233
        break
234
      end
235
    end
236
  end
237
  li:Remove()
238
  mus:Stop()
239
  if ded then
240
    Head.Anchored = false
241
    for _,v in pairs(cPlayer:children()) do
242
      if v:IsA("BasePart") then
243
        v:BreakJoints()
244
        v.CFrame = CFrame.new(Torso.Position + Vector3.new(math.random(-2, 2), math.random(-1, 2), math.random(-2, 2))) * CFrame.Angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
245
        v.Velocity = Vector3.new(0, 0, 0)
246
      end
247
    end
248
    e = Instance.new("Explosion", workspace)
249
    e.BlastRadius = 10
250
    e.BlastPressure = 0
251
    e.Position = Torso.Position
252
    e.Hit:connect(function(hit)
253
    if hit.Parent == cPlayer and hit.Name ~= "AnchorR" and hit.Name ~= "AnchorL" then
254
      if hit:FindFirstChild("Fire") == nil then
255
        Instance.new("Fire", hit)
256
      end
257
      hit:BreakJoints()
258
      hit.Velocity = e.Position - hit.Position.unit * 80
259
      hit.RotVelocity = hit.Velocity
260
    end
261
  end
262
)
263
    s = Instance.new("Sound", Head)
264
    s.SoundId = "http://www.roblox.com/asset/?id=230597277"
265
    s.Volume = 1
266
    wait()
267
    s:Play()
268
    s = Instance.new("Sound", p1)
269
    s.SoundId = "http://www.roblox.com/asset/?id=221920821"
270
    s.Volume = 1
271
    s.Pitch = 1.25
272
    wait()
273
    s:Play()
274
  end
275
  wait(0.5)
276
  mus:Remove()
277
end
278
279
onEquip = function(mouse)
280
  mouse.Button1Down:connect(function()
281
    down = true
282
    startVictoly()
283
  end
284
)
285
  mouse.Button1Up:connect(function()
286
    down = false
287
    stopVictoly()
288
  end
289
)
290
end
291
292
hop.Selected:connect(onEquip)