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