View difference between Paste ID: hvKyYPdh and sSH6hAdp
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.Roration = NumberSequence.new(-360,360)
129+
pie.22.Rotation = NumberSequence.new(-360,360)
130
pie22.Transparency = NumberSequence.new(0.7)
131
pie22.EmissionDirection = "Top"
132
pie22.Enabled = true
133
pie22.Lifetime = NumberRange.new(0.1)
134
pie22.Rate = 100
135
pie22.Speed = NumberRange.new(1)
136
pie22.VelocitySpread = 10
137
pie22.Name = "Haa"
138
pie22.Parent = Player.Character.Torso
139
  for _,v in pairs(char:getChildren()) do
140
    if v:IsA("Hat") then
141
      v.Handle.Mesh.VertexColor = Vector3.new(1, 0.2, 0.2)
142
    end
143
  end
144
  for i = 1, 5 do
145
    ex4 = Instance.new("Explosion")
146
    ex4.Position = char.Torso.Position + Vector3.new(0, i * 3, 0)
147
    ex4.BlastPressure = 0
148
    wait(0.3)
149
  end
150
  wait(0.033333333333333)
151
  char.Humanoid.WalkSpeed = 16
152
  char.Animate.Disabled = false
153
  transformed = true
154
  wait(1)
155
  deb = true
156
  he = head.C0
157
  ra = rarm.C0
158
  rl = rleg.C0
159
  la = larm.C0
160
  ll = lleg.C0
161
end
162
163
untrans = function()
164
  he = head.C0
165
  ra = rarm.C0
166
  rl = rleg.C0
167
  la = larm.C0
168
  ll = lleg.C0
169
  transforming = false
170
  char.Animate.Disabled = true
171
  char.Humanoid.Health = char.Humanoid.Health - tonumber("7")
172
  wait(1)
173
  char.Humanoid.MaxHealth = char.Humanoid.MaxHealth - tonumber("7")
174
  char.Humanoid.WalkSpeed = 0
175
  TransPose1()
176
  c:Destroy()
177
  Player.Character.Torso:findFirstChild("Haa"):Destroy()
178
  for _,v in pairs(char:getChildren()) do
179
    if v:IsA("Hat") then
180
      v.Handle.Mesh.VertexColor = Vector3.new(1, 1, 1)
181
    end
182
  end
183
  wait(0.01)
184
  powerdown:play()
185
  wait(0.1)
186
  TransPose1Stand()
187
  he = head.C0
188
  ra = rarm.C0
189
  rl = rleg.C0
190
  la = larm.C0
191
  ll = lleg.C0
192
  char.Animate.Disabled = false
193
  transformed = false
194
  char.Humanoid.WalkSpeed = 16
195
  he = head.C0
196
  ra = rarm.C0
197
  rl = rleg.C0
198
  la = larm.C0
199
  ll = lleg.C0
200
end
201
202
local ssjz = false
203
me2.Chatted:connect(function(s)
204
  if not traz.Value and char.Occupied.Value == false then
205
    s = s:lower()
206
    if s == "activate" and deb and not ssjz and char.switch.Value == "" then
207
      ssjz = true
208
      char.switch.Value = "kaio"
209
      traz.Value = true
210
      transform()
211
      traz.Value = false
212
    else
213
      if s == "off" and deb and ssjz and char.switch.Value == "kaio" then
214
        ssjz = false
215
        traz.Value = true
216
        untrans()
217
        char.switch.Value = ""
218
        traz.Value = false
219
      end
220
    end
221
  end
222
end
223
)