View difference between Paste ID: mNaGdDWb 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"
32+
powerup.Name = "Activate"
33
powerup.Parent = char.Head
34
powerup.Volume = 2
35
powerup.Pitch = 0.55
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()
102
  ex2 = Instance.new("Explosion")
103
  ex2.Position = char.Torso.Position
104
  ex2.BlastPressure = 0
105
  ex2.Parent = workspace
106
  game:GetService("Chat"):Chat(char.Head, "KAIO-KEN ", math.random(0, 2))
107
  wait(0.1)
108
  ex3 = Instance.new("Explosion")
109
  ex3.Position = char.Torso.Position
110
  ex3.BlastPressure = 0
111
  ex3.Parent = workspace
112
  game:GetService("Chat"):Chat(char.Head, "AAAAAAH!", math.random(0, 2))
113
  char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + tonumber("7")
114
  wait(1)
115
  char.Humanoid.Health = char.Humanoid.Health + tonumber("7")
116
  wait(0.1)
117
  c = Instance.new("PointLight", char.Torso)
118
  c.Color = Color3.new(1, 0, 0)
119
  c.Range = 6
120
  c.Brightness = 4
121
local pie22 = Instance.new("ParticleEmitter")
122
pie22.Parent = char.Torso
123
pie22.Color = ColorSequence.new(BrickColor.new("Really red").Color)
124
pie22.LightEmission = 1
125
pie22.Size = NumberSequence.new(5)
126
pie22.Texture = "http://www.roblox.com/asset/?id=250186345"
127
pie22.Transparency = NumberSequence.new(0.7)
128
pie22.EmissionDirection = "Top"
129
pie22.Enabled = true
130
pie22.Lifetime = NumberRange.new(0.3)
131
pie22.Rate = 100
132
pie22.Speed = NumberRange.new(4)
133
pie22.VelocitySpread = 13.5
134
pie22.Name = "Haa"
135
pie22.Parent = Player.Character.Torso
136
  for _,v in pairs(char:getChildren()) do
137
    if v:IsA("Hat") then
138
      v.Handle.Mesh.VertexColor = Vector3.new(1, 0.2, 0.2)
139
    end
140
  end
141
  for i = 1, 5 do
142
    ex4 = Instance.new("Explosion")
143
    ex4.Position = char.Torso.Position + Vector3.new(0, i * 3, 0)
144
    ex4.BlastPressure = 0
145
    wait(0.3)
146
  end
147
  wait(0.033333333333333)
148
  char.Humanoid.WalkSpeed = 16
149
  char.Animate.Disabled = false
150
  transformed = true
151
  wait(1)
152
  deb = true
153
  he = head.C0
154
  ra = rarm.C0
155
  rl = rleg.C0
156
  la = larm.C0
157
  ll = lleg.C0
158
end
159
160
untrans = function()
161
  he = head.C0
162
  ra = rarm.C0
163
  rl = rleg.C0
164
  la = larm.C0
165
  ll = lleg.C0
166
  transforming = false
167
  char.Animate.Disabled = true
168
  char.Humanoid.Health = char.Humanoid.Health - tonumber("7")
169
  wait(1)
170
  char.Humanoid.MaxHealth = char.Humanoid.MaxHealth - tonumber("7")
171
  char.Humanoid.WalkSpeed = 0
172
  TransPose1()
173
  c:Destroy()
174
  Player.Character.Torso:findFirstChild("Haa"):Destroy()
175
  for _,v in pairs(char:getChildren()) do
176
    if v:IsA("Hat") then
177
      v.Handle.Mesh.VertexColor = Vector3.new(1, 1, 1)
178
    end
179
  end
180
  wait(0.01)
181
  powerdown:play()
182
  wait(0.1)
183
  TransPose1Stand()
184
  he = head.C0
185
  ra = rarm.C0
186
  rl = rleg.C0
187
  la = larm.C0
188
  ll = lleg.C0
189
  char.Animate.Disabled = false
190
  transformed = false
191
  char.Humanoid.WalkSpeed = 16
192
  he = head.C0
193
  ra = rarm.C0
194
  rl = rleg.C0
195
  la = larm.C0
196
  ll = lleg.C0
197
end
198
199
local ssjz = false
200
me2.Chatted:connect(function(s)
201
  if not traz.Value and char.Occupied.Value == false then
202
    s = s:lower()
203
    if s == "activate" and deb and not ssjz and char.switch.Value == "" then
204
      ssjz = true
205
      char.switch.Value = "kaio"
206
      traz.Value = true
207
      transform()
208
      traz.Value = false
209
    else
210
      if s == "off" and deb and ssjz and char.switch.Value == "kaio" then
211
        ssjz = false
212
        traz.Value = true
213
        untrans()
214
        char.switch.Value = ""
215
        traz.Value = false
216
      end
217
    end
218
  end
219
end
220
)