SHOW:
|
|
- or go back to the newest paste.
1 | - | --fixed by Scenius |
1 | + | wait(1) |
2 | - | plr = game.Players.LocalPlayer |
2 | + | Player = game:service'Players'.LocalPlayer |
3 | - | repeat |
3 | + | local me2 = game.Players.LocalPlayer |
4 | - | wait(0.4) |
4 | + | local ch = Player.Character |
5 | - | until plr.Character |
5 | + | local occ = Instance.new("BoolValue", ch) |
6 | - | chr = plr.Character |
6 | + | occ.Name = "Occupied" |
7 | - | human = chr:FindFirstChild("Humanoid") |
7 | + | local swi = Instance.new("StringValue", ch) |
8 | - | mouse = plr:GetMouse() |
8 | + | swi.Name = "switch" |
9 | - | selected = false |
9 | + | local trans = Instance.new("BoolValue", ch) |
10 | - | equipd = false |
10 | + | trans.Name = "trans" |
11 | - | tors = chr.Torso |
11 | + | repeat wait() until ch.Humanoid ~= nil |
12 | - | rarm = chr["Right Arm"] |
12 | + | ch.Humanoid.Died:connect(function() |
13 | - | larm = chr["Left Arm"] |
13 | + | Player.CharacterAdded:connect(function(chz) |
14 | - | rleg = chr["Right Leg"] |
14 | + | local occ = Instance.new("BoolValue", chz) |
15 | - | lleg = chr["Left Leg"] |
15 | + | occ.Name = "Occupied" |
16 | - | hrp = chr.HumanoidRootPart |
16 | + | local swi = Instance.new("StringValue", chz) |
17 | - | head = chr.Head |
17 | + | swi.Name = "switch" |
18 | - | anim = human.Animator |
18 | + | local trans = Instance.new("BoolValue", chz) |
19 | - | activu = false |
19 | + | trans.Name = "trans" |
20 | - | Heartbeat = Instance.new("BindableEvent") |
20 | + | |
21 | - | Heartbeat.Name = "Heartbeat" |
21 | + | ) |
22 | - | Heartbeat.Parent = script |
22 | + | end) |
23 | - | frame = 0.03333333333333333 |
23 | + | local char = me2.Character |
24 | - | tf = 0 |
24 | + | local transforming = false |
25 | - | game:GetService("RunService").Heartbeat:connect(function(s, p) |
25 | + | local transformed = false |
26 | - | tf = tf + s |
26 | + | local deb = true |
27 | - | if tf >= frame then |
27 | + | char:WaitForChild("switch") |
28 | - | for i = 1, math.floor(tf / frame) do |
28 | + | traz = char:WaitForChild("trans") |
29 | - | Heartbeat:Fire() |
29 | + | script.Name = me2.Name .. "\'s Kaio-Ken" |
30 | powerup = Instance.new("Sound") | |
31 | - | tf = tf - frame * math.floor(tf / frame) |
31 | + | powerup.SoundId = "http://www.roblox.com/asset/?id=2101137" |
32 | powerup.Name = "PowerUp" | |
33 | - | end) |
33 | + | powerup.Parent = char.Head |
34 | - | function swait(num) |
34 | + | powerup.Volume = 1 |
35 | - | if num == 0 or num == nil then |
35 | + | powerup.Pitch = 0.55 |
36 | - | Heartbeat.Event:wait() |
36 | + | powerdown = Instance.new("Sound") |
37 | powerdown.SoundId = "http://www.roblox.com/asset/?id=3264923" | |
38 | - | for i = 1, num do |
38 | + | powerdown.Name = "PowerUp" |
39 | - | Heartbeat.Event:wait() |
39 | + | powerdown.Parent = char.Head |
40 | powerdown.Volume = 1 | |
41 | powerdown.Pitch = 1.125 | |
42 | rarm = char.Torso:findFirstChild("Right Shoulder") | |
43 | - | tool = Instance.new("Tool") |
43 | + | larm = char.Torso:findFirstChild("Left Shoulder") |
44 | - | tool.CanBeDropped = false |
44 | + | rleg = char.Torso:findFirstChild("Right Hip") |
45 | - | tool.RequiresHandle = false |
45 | + | lleg = char.Torso:findFirstChild("Left Hip") |
46 | - | tool.Name = "Smash" |
46 | + | head = char.Torso:findFirstChild("Neck") |
47 | - | tool.Parent = plr.Backpack |
47 | + | torso = char.Torso |
48 | - | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
48 | + | he = head.C0 |
49 | - | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
49 | + | ra = rarm.C0 |
50 | - | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
50 | + | rl = rleg.C0 |
51 | - | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
51 | + | la = larm.C0 |
52 | - | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
52 | + | ll = lleg.C0 |
53 | - | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
53 | + | TransPose1 = function() |
54 | - | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
54 | + | for i = 1, 10 do |
55 | - | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
55 | + | head.C0 = head.C0 * CFrame.Angles(0.03, 0, 0) |
56 | - | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
56 | + | torso.CFrame = torso.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0.01, 0, 0) |
57 | - | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
57 | + | rarm.C0 = rarm.C0 * CFrame.new(-0.02, 0, 0) * CFrame.Angles(-0.008, 0.05, 0.02) |
58 | - | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
58 | + | larm.C0 = larm.C0 * CFrame.new(0.02, 0, 0) * CFrame.Angles(-0.008, -0.05, -0.02) |
59 | - | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
59 | + | rleg.C0 = rleg.C0 * CFrame.new(0, 0, 0.005) * CFrame.Angles(-0.005, -0.02, 0) |
60 | - | RS = tors:FindFirstChild("Right Shoulder") |
60 | + | lleg.C0 = lleg.C0 * CFrame.new(0, 0, 0.005) * CFrame.Angles(-0.005, 0.02, 0) |
61 | - | LS = tors:FindFirstChild("Left Shoulder") |
61 | + | wait(0.00065) |
62 | - | RH = tors:FindFirstChild("Right Hip") |
62 | + | |
63 | - | LH = tors:FindFirstChild("Left Hip") |
63 | + | |
64 | - | RJ = hrp:FindFirstChild("RootJoint") |
64 | + | |
65 | - | N = tors:FindFirstChild("Neck") |
65 | + | TransPose1Stand = function() |
66 | - | cf = CFrame.new |
66 | + | for i = 1, 10 do |
67 | - | ang = CFrame.Angles |
67 | + | head.C0 = head.C0 * CFrame.Angles(-0.03, 0, 0) |
68 | - | rd = math.rad |
68 | + | torso.CFrame = torso.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(-0.01, 0, 0) |
69 | - | rd2 = math.random |
69 | + | rarm.C0 = rarm.C0 * CFrame.new(0.02, 0, 0) * CFrame.Angles(0.008, -0.05, -0.02) |
70 | - | function nooutline(p) |
70 | + | larm.C0 = larm.C0 * CFrame.new(-0.02, 0, 0) * CFrame.Angles(0.008, 0.05, 0.02) |
71 | - | p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10 |
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 | - | function makepart(color, name, reflec, mater, parnt, cfram) |
73 | + | wait(0.00065) |
74 | - | local port = Instance.new("Part") |
74 | + | |
75 | - | port.BrickColor = BrickColor.new(color) |
75 | + | he = head.C0 |
76 | - | port.Name = name |
76 | + | ra = rarm.C0 |
77 | - | nooutline(port) |
77 | + | rl = rleg.C0 |
78 | - | port.Reflectance = reflec |
78 | + | la = larm.C0 |
79 | - | port.Material = mater |
79 | + | ll = lleg.C0 |
80 | - | port.Anchored = false |
80 | + | |
81 | - | port.CanCollide = false |
81 | + | |
82 | - | port.Locked = true |
82 | + | transform = function() |
83 | - | port.Size = Vector3.new(0.2, 0.2, 0.2) |
83 | + | deb = false |
84 | - | port.Parent = parnt |
84 | + | char.Humanoid.WalkSpeed = 0 |
85 | - | return port |
85 | + | he = head.C0 |
86 | ra = rarm.C0 | |
87 | - | function makemesh(meshtype, scale, meshid, parent) |
87 | + | rl = rleg.C0 |
88 | - | local mes = Instance.new("SpecialMesh") |
88 | + | la = larm.C0 |
89 | - | mes.MeshType = meshtype |
89 | + | ll = lleg.C0 |
90 | - | mes.Scale = scale |
90 | + | char.Animate.Disabled = true |
91 | - | if meshtype == "FileMesh" then |
91 | + | game:GetService("Chat"):Chat(char.Head, "POWER-UP!", math.random(0, 2)) |
92 | - | mes.MeshId = meshid |
92 | + | powerup:play() |
93 | TransPose1() | |
94 | - | mes.Parent = parent |
94 | + | wait(0.1) |
95 | - | return mes |
95 | + | ex = Instance.new("Explosion") |
96 | ex.Position = char.Torso.Position | |
97 | - | function makeweld(parent, p0, p1, c0, c1) |
97 | + | ex.BlastPressure = 0 |
98 | - | local wel = Instance.new("Weld") |
98 | + | ex.Parent = workspace |
99 | - | wel.Part0 = p0 |
99 | + | wait(1) |
100 | - | wel.Part1 = p1 |
100 | + | TransPose1Stand() |
101 | - | wel.C0 = c0 |
101 | + | powerup:stop() |
102 | - | if c1 ~= nil then |
102 | + | ex2 = Instance.new("Explosion") |
103 | - | wel.C1 = c1 |
103 | + | ex2.Position = char.Torso.Position |
104 | ex2.BlastPressure = 0 | |
105 | - | wel.Parent = parent |
105 | + | ex2.Parent = workspace |
106 | - | return wel |
106 | + | game:GetService("Chat"):Chat(char.Head, "KAIO-KEN ", math.random(0, 2)) |
107 | wait(0.1) | |
108 | - | function smokz(prnt) |
108 | + | ex3 = Instance.new("Explosion") |
109 | - | s = Instance.new("Smoke") |
109 | + | ex3.Position = char.Torso.Position |
110 | - | s.Color = Color3.new(1, 1, 1) |
110 | + | ex3.BlastPressure = 0 |
111 | - | s.Enabled = false |
111 | + | ex3.Parent = workspace |
112 | - | s.Name = "smok" |
112 | + | game:GetService("Chat"):Chat(char.Head, "AAAAAAH!", math.random(0, 2)) |
113 | - | s.Opacity = 0.5 |
113 | + | char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + tonumber("7") |
114 | - | s.RiseVelocity = 0.2 |
114 | + | wait(1) |
115 | - | s.Size = 0.1 |
115 | + | char.Humanoid.Health = char.Humanoid.Health + tonumber("7") |
116 | - | s.Parent = prnt |
116 | + | wait(0.1) |
117 | c = Instance.new("PointLight", char.Torso) | |
118 | - | function glow(tz, paz, smokinz, length) |
118 | + | c.Color = Color3.new(1, 0, 0) |
119 | - | if tz.Parent:FindFirstChildOfClass("Humanoid") and paz.Transparency == 1 then |
119 | + | c.Range = 6 |
120 | - | do |
120 | + | c.Brightness = 4 |
121 | - | local s = Instance.new("Sound") |
121 | + | local pie22 = Instance.new("ParticleEmitter") |
122 | - | s.SoundId = "rbxassetid://298181829" |
122 | + | pie22.Parent = char.Torso |
123 | - | s.Volume = 0.25 |
123 | + | pie22.Color = ColorSequence.new(BrickColor.new("Really red").Color) |
124 | - | s.Pitch = math.random(9, 11) / 10 |
124 | + | pie22.LightEmission = 1 |
125 | - | s.Parent = paz |
125 | + | pie22.Size = NumberSequence.new(5) |
126 | - | s:Play() |
126 | + | pie22.Texture = "http://www.roblox.com/asset/?id=250186345" |
127 | - | paz.Transparency = 0.7 |
127 | + | pie22.Transparency = NumberSequence.new(0.7) |
128 | - | if smokinz == true then |
128 | + | pie22.EmissionDirection = "Top" |
129 | - | paz.smok.Enabled = true |
129 | + | pie22.Enabled = true |
130 | - | end |
130 | + | pie22.Lifetime = NumberRange.new(0.3) |
131 | - | delay(length, function() |
131 | + | pie22.Rate = 100 |
132 | - | paz.Transparency = 1 |
132 | + | pie22.Speed = NumberRange.new(4) |
133 | - | paz.smok.Enabled = false |
133 | + | pie22.VelocitySpread = 13.5 |
134 | - | s:Destroy() |
134 | + | pie22.Name = "Haa" |
135 | - | end) |
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 | - | function makeglow() |
139 | + | |
140 | - | for _, p in pairs(chr:GetChildren()) do |
140 | + | |
141 | - | if p.ClassName == "Accessory" then |
141 | + | for i = 1, 5 do |
142 | - | do |
142 | + | ex4 = Instance.new("Explosion") |
143 | - | local h = p:FindFirstChildOfClass("Part") |
143 | + | ex4.Position = char.Torso.Position + Vector3.new(0, i * 3, 0) |
144 | - | local nh = h:Clone() |
144 | + | ex4.BlastPressure = 0 |
145 | - | nh.Parent = nil |
145 | + | wait(0.3) |
146 | - | nh.CFrame = h.CFrame |
146 | + | |
147 | - | nh.Transparency = 1 |
147 | + | wait(0.033333333333333) |
148 | - | nh.Name = "Glow" |
148 | + | char.Humanoid.WalkSpeed = 16 |
149 | - | nh.Material = "Neon" |
149 | + | char.Animate.Disabled = false |
150 | - | nh.BrickColor = BrickColor.new("New Yeller") |
150 | + | transformed = true |
151 | - | nh.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5) |
151 | + | wait(1) |
152 | - | nh.Parent = h |
152 | + | deb = true |
153 | - | makeweld(nh, nh, h, cf(0, 0, 0)) |
153 | + | he = head.C0 |
154 | - | local m = nh:FindFirstChildOfClass("SpecialMesh") |
154 | + | ra = rarm.C0 |
155 | - | m.Scale = m.Scale + Vector3.new(0.06, 0.06, 0.06) |
155 | + | rl = rleg.C0 |
156 | - | m.TextureId = "" |
156 | + | la = larm.C0 |
157 | - | smokz(nh) |
157 | + | ll = lleg.C0 |
158 | - | nh.Touched:connect(function(po) |
158 | + | |
159 | - | glow(po, nh, true, 0.8) |
159 | + | |
160 | - | end) |
160 | + | untrans = function() |
161 | - | end |
161 | + | he = head.C0 |
162 | - | elseif p.ClassName == "Part" and p ~= hrp then |
162 | + | ra = rarm.C0 |
163 | - | do |
163 | + | rl = rleg.C0 |
164 | - | local n = p:Clone() |
164 | + | la = larm.C0 |
165 | - | n.Parent = nil |
165 | + | ll = lleg.C0 |
166 | - | n.Transparency = 0.7 |
166 | + | transforming = false |
167 | - | n.Material = "Neon" |
167 | + | char.Animate.Disabled = true |
168 | - | n.Name = "Glow" |
168 | + | char.Humanoid.Health = char.Humanoid.Health - tonumber("7") |
169 | - | n.BrickColor = BrickColor.new("Bright red") |
169 | + | wait(1) |
170 | - | n.CFrame = p.CFrame |
170 | + | char.Humanoid.MaxHealth = char.Humanoid.MaxHealth - tonumber("7") |
171 | - | n.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5) |
171 | + | char.Humanoid.WalkSpeed = 0 |
172 | - | n.Parent = p |
172 | + | TransPose1() |
173 | - | makeweld(n, n, p, cf(0, 0, 0)) |
173 | + | c:Destroy() |
174 | - | smokz(n) |
174 | + | Player.Character.Torso:findFirstChild("Haa"):Destroy() |
175 | - | n.Touched:connect(function(po) |
175 | + | for _,v in pairs(char:getChildren()) do |
176 | - | glow(po, n, true, 0.8) |
176 | + | if v:IsA("Hat") then |
177 | - | end) |
177 | + | v.Handle.Mesh.VertexColor = Vector3.new(1, 1, 1) |
178 | - | if n:FindFirstChildOfClass("Decal") then |
178 | + | |
179 | - | n:FindFirstChildOfClass("Decal"):Destroy() |
179 | + | |
180 | - | end |
180 | + | wait(0.01) |
181 | - | if p:FindFirstChildOfClass("SpecialMesh") then |
181 | + | powerdown:play() |
182 | - | local c = p:FindFirstChildOfClass("SpecialMesh"):Clone() |
182 | + | wait(0.1) |
183 | - | c.Parent = nil |
183 | + | TransPose1Stand() |
184 | - | c.Scale = c.Scale + Vector3.new(0.05, 0.05, 0.05) |
184 | + | he = head.C0 |
185 | - | c.Parent = n |
185 | + | ra = rarm.C0 |
186 | - | else |
186 | + | rl = rleg.C0 |
187 | - | local m = Instance.new("BlockMesh") |
187 | + | la = larm.C0 |
188 | - | m.Scale = Vector3.new(1.05, 1.025, 1.05) |
188 | + | ll = lleg.C0 |
189 | - | if p == tors then |
189 | + | char.Animate.Disabled = false |
190 | - | m.Scale = Vector3.new(1.05, 1.05, 1.05) |
190 | + | transformed = false |
191 | - | end |
191 | + | char.Humanoid.WalkSpeed = 16 |
192 | - | m.Parent = n |
192 | + | he = head.C0 |
193 | - | end |
193 | + | ra = rarm.C0 |
194 | - | end |
194 | + | rl = rleg.C0 |
195 | la = larm.C0 | |
196 | ll = lleg.C0 | |
197 | end | |
198 | - | makeglow() |
198 | + | |
199 | - | function fglow(glopart, duration) |
199 | + | local ssjz = false |
200 | - | for _ = 1, 4 do |
200 | + | me2.Chatted:connect(function(s) |
201 | - | swait() |
201 | + | if not traz.Value and char.Occupied.Value == false then |
202 | - | glopart.Transparency = glopart.Transparency - 0.075 |
202 | + | s = s:lower() |
203 | if s == "Activate" and deb and not ssjz and char.switch.Value == "" then | |
204 | - | delay(duration, function() |
204 | + | ssjz = true |
205 | - | for _ = 1, 4 do |
205 | + | char.switch.Value = "Activate" |
206 | - | swait() |
206 | + | traz.Value = true |
207 | - | glopart.Transparency = glopart.Transparency + 0.075 |
207 | + | transform() |
208 | traz.Value = false | |
209 | - | end) |
209 | + | |
210 | if s == "off" and deb and ssjz and char.switch.Value == "Activate then | |
211 | - | function lerpz(joint, prop, cfrmz, alp) |
211 | + | ssjz = false |
212 | - | joint[prop] = joint[prop]:lerp(cfrmz, alp) |
212 | + | traz.Value = true |
213 | untrans() | |
214 | - | function resetlerp() |
214 | + | char.switch.Value = "" |
215 | - | RJ.C0 = RJC0 |
215 | + | traz.Value = false |
216 | - | RJ.C1 = RJC1 |
216 | + | |
217 | - | N.C0 = NC0 |
217 | + | |
218 | - | N.C1 = NC1 |
218 | + | |
219 | - | RS.C0 = RSC0 |
219 | + | |
220 | - | RS.C1 = RSC1 |
220 | + | ) |