View difference between Paste ID: mefCeg3Y and hvKyYPdh
SHOW: | | - or go back to the newest paste.
1
	wait(1)
2
Player = game:service'Players'.LocalPlayer
3
local me2 = game.Players.LocalPlayer
4
local ch = Player.Character
5
	local occ = Instance.new("BoolValue", ch)
6
	occ.Name = "Occupied"
7
	local swi = Instance.new("StringValue", ch)
8
	swi.Name = "switch"
9
	local trans = Instance.new("BoolValue", ch)
10
	trans.Name = "trans"
11
	repeat wait() until ch.Humanoid ~= nil
12
	ch.Humanoid.Died:connect(function()
13
		Player.CharacterAdded:connect(function(chz)
14
				local occ = Instance.new("BoolValue", chz)
15
				occ.Name = "Occupied"
16
				local swi = Instance.new("StringValue", chz)
17
				swi.Name = "switch"
18
				local trans = Instance.new("BoolValue", chz)
19
				trans.Name = "trans"
20
		end
21
		)
22
		end)
23
local char = me2.Character
24
local transforming = false
25
local transformed = false
26
local deb = true
27
char:WaitForChild("switch")
28
traz = char:WaitForChild("trans")
29
script.Name = me2.Name .. "\'s Kaio-Ken"
30
powerup = Instance.new("Sound")
31
powerup.SoundId = "http://www.roblox.com/asset/?id=450783524"
32
powerup.Name = "PowerUp"
33
powerup.Parent = char.Head
34
powerup.MaxDistance = 1000
35
powerup.EmitterSize = 300
36
powerup.Looped = true
37
powerup.Volume = 5
38
powerup.Pitch = 1
39
powerdown = Instance.new("Sound")
40
powerdown.SoundId = "http://www.roblox.com/asset/?id=3264923"
41
powerdown.Name = "PowerUp"
42
powerdown.Parent = char.Head
43
powerdown.Volume = 1
44
powerdown.Pitch = 1.125
45
rarm = char.Torso:findFirstChild("Right Shoulder")
46
larm = char.Torso:findFirstChild("Left Shoulder")
47
rleg = char.Torso:findFirstChild("Right Hip")
48
lleg = char.Torso:findFirstChild("Left Hip")
49
head = char.Torso:findFirstChild("Neck")
50
torso = char.Torso
51
he = head.C0
52
ra = rarm.C0
53
rl = rleg.C0
54
la = larm.C0
55
ll = lleg.C0
56
TransPose1 = function()
57
  for i = 1, 10 do
58
    head.C0 = head.C0 * CFrame.Angles(0.03, 0, 0)
59
    torso.CFrame = torso.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0.01, 0, 0)
60
    rarm.C0 = rarm.C0 * CFrame.new(-0.02, 0, 0) * CFrame.Angles(-0.008, 0.05, 0.02)
61
    larm.C0 = larm.C0 * CFrame.new(0.02, 0, 0) * CFrame.Angles(-0.008, -0.05, -0.02)
62
    rleg.C0 = rleg.C0 * CFrame.new(0, 0, 0.005) * CFrame.Angles(-0.005, -0.02, 0)
63
    lleg.C0 = lleg.C0 * CFrame.new(0, 0, 0.005) * CFrame.Angles(-0.005, 0.02, 0)
64
    wait(0.00065)
65
  end
66
end
67
68
TransPose1Stand = function()
69
  for i = 1, 10 do
70
    head.C0 = head.C0 * CFrame.Angles(-0.03, 0, 0)
71
    torso.CFrame = torso.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(-0.01, 0, 0)
72
    rarm.C0 = rarm.C0 * CFrame.new(0.02, 0, 0) * CFrame.Angles(0.008, -0.05, -0.02)
73
    larm.C0 = larm.C0 * CFrame.new(-0.02, 0, 0) * CFrame.Angles(0.008, 0.05, 0.02)
74
    rleg.C0 = rleg.C0 * CFrame.new(0, 0, -0.005) * CFrame.Angles(0.005, 0.02, 0)
75
    lleg.C0 = lleg.C0 * CFrame.new(0, 0, -0.005) * CFrame.Angles(0.005, -0.02, 0)
76
    wait(0.00065)
77
  end
78
  he = head.C0
79
  ra = rarm.C0
80
  rl = rleg.C0
81
  la = larm.C0
82
  ll = lleg.C0
83
end
84
85
transform = function()
86
  deb = false
87
  char.Humanoid.WalkSpeed = 0
88
  he = head.C0
89
  ra = rarm.C0
90
  rl = rleg.C0
91
  la = larm.C0
92
  ll = lleg.C0
93
  char.Animate.Disabled = true
94
  game:GetService("Chat"):Chat(char.Head, "POWER-UP!", math.random(0, 2))
95
  powerup:play()
96
  TransPose1()
97
  wait(0.1)
98
  ex = Instance.new("Explosion")
99
  ex.Position = char.Torso.Position
100
  ex.BlastPressure = 0
101
  ex.Parent = workspace
102
  wait(1)
103
  TransPose1Stand()
104
  ex2 = Instance.new("Explosion")
105
  ex2.Position = char.Torso.Position
106
  ex2.BlastPressure = 0
107
  ex2.Parent = workspace
108
  game:GetService("Chat"):Chat(char.Head, "I WILL DEFEAT YOU!!...", math.random(0, 2))
109
  wait(0.1)
110
  ex3 = Instance.new("Explosion")
111
  ex3.Position = char.Torso.Position
112
  ex3.BlastPressure = 0
113
  ex3.Parent = workspace
114
  game:GetService("Chat"):Chat(char.Head, "AAAAAAH!", math.random(0, 2))
115
  char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + tonumber("9e999")
116
  wait(1)
117
  char.Humanoid.Health = char.Humanoid.Health + tonumber("9e999")
118
  wait(0.1)
119
  c = Instance.new("PointLight", char.Torso)
120
  c.Color = Color3.new(1, 0, 0)
121
  c.Range = 6
122
  c.Brightness = 4
123
local pie22 = Instance.new("ParticleEmitter")
124
pie22.Parent = char.Torso
125
pie22.Color = ColorSequence.new(BrickColor.new("White").Color)
126
pie22.LightEmission = 1
127
pie22.Size = NumberSequence.new(2)
128
pie22.Texture = "http://www.roblox.com/asset/?id=348501417"
129-
pie.22.Rotation = NumberSequence.new(-360,360)
129+
130
pie22.EmissionDirection = "Top"
131
pie22.Enabled = true
132
pie22.Lifetime = NumberRange.new(0.1)
133
pie22.Rate = 100
134
pie22.Speed = NumberRange.new(1)
135
pie22.VelocitySpread = 10
136
pie22.Name = "Haa"
137
pie22.Parent = Player.Character.Torso
138
  for _,v in pairs(char:getChildren()) do
139
    if v:IsA("Hat") then
140
      v.Handle.Mesh.VertexColor = Vector3.new(1, 0.2, 0.2)
141
    end
142
  end
143
  for i = 1, 5 do
144
    ex4 = Instance.new("Explosion")
145
    ex4.Position = char.Torso.Position + Vector3.new(0, i * 3, 0)
146
    ex4.BlastPressure = 0
147
    wait(0.3)
148
  end
149
  wait(0.033333333333333)
150
  char.Humanoid.WalkSpeed = 16
151
  char.Animate.Disabled = false
152
  transformed = true
153
  wait(1)
154
  deb = true
155
  he = head.C0
156
  ra = rarm.C0
157
  rl = rleg.C0
158
  la = larm.C0
159
  ll = lleg.C0
160
end
161
162
untrans = function()
163
  he = head.C0
164
  ra = rarm.C0
165
  rl = rleg.C0
166
  la = larm.C0
167
  ll = lleg.C0
168
  transforming = false
169
  char.Animate.Disabled = true
170
  char.Humanoid.Health = char.Humanoid.Health - tonumber("7")
171
  wait(1)
172
  char.Humanoid.MaxHealth = char.Humanoid.MaxHealth - tonumber("7")
173
  char.Humanoid.WalkSpeed = 0
174
  TransPose1()
175
  c:Destroy()
176
  Player.Character.Torso:findFirstChild("Haa"):Destroy()
177
  for _,v in pairs(char:getChildren()) do
178
    if v:IsA("Hat") then
179
      v.Handle.Mesh.VertexColor = Vector3.new(1, 1, 1)
180
    end
181
  end
182
  wait(0.01)
183
  powerdown:play()
184
  wait(0.1)
185
  TransPose1Stand()
186
  he = head.C0
187
  ra = rarm.C0
188
  rl = rleg.C0
189
  la = larm.C0
190
  ll = lleg.C0
191
  char.Animate.Disabled = false
192
  transformed = false
193
  char.Humanoid.WalkSpeed = 16
194
  he = head.C0
195
  ra = rarm.C0
196
  rl = rleg.C0
197
  la = larm.C0
198
  ll = lleg.C0
199
end
200
201
local ssjz = false
202
me2.Chatted:connect(function(s)
203
  if not traz.Value and char.Occupied.Value == false then
204
    s = s:lower()
205
    if s == "activate" and deb and not ssjz and char.switch.Value == "" then
206
      ssjz = true
207
      char.switch.Value = "kaio"
208
      traz.Value = true
209
      transform()
210
      traz.Value = false
211
    else
212
      if s == "off" and deb and ssjz and char.switch.Value == "kaio" then
213
        ssjz = false
214
        traz.Value = true
215
        untrans()
216
        char.switch.Value = ""
217
        traz.Value = false
218
      end
219
    end
220
  end
221
end
222
)