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