SHOW:
|
|
- or go back to the newest paste.
1 | - | --==Made by NextFlame==-- |
1 | + | |
2 | - | --==NODACHI OPERATION==-- |
2 | + | |
3 | repeat wait() until player and char | |
4 | local torso=char.Torso | |
5 | local head=char.Head | |
6 | local human=char.Humanoid | |
7 | local hat | |
8 | for i, v in pairs(char:children()) do if v:isA("Hat") then hat=v end end | |
9 | local arm={Left=char["Left Arm"], Right=char["Right Arm"]} | |
10 | local leg={Left=char["Left Leg"], Right=char["Right Leg"]} | |
11 | local c=function(f) coroutine.resume(coroutine.create(f)) end | |
12 | local p=function(f) pcall(f) end | |
13 | ||
14 | ||
15 | ||
16 | - | local add={ |
16 | + | |
17 | - | Part=function(par, a, c, col, t, s, cf, ms) |
17 | + | |
18 | - | local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end) |
18 | + | |
19 | - | local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end) |
19 | + | |
20 | - | return p |
20 | + | |
21 | - | end, |
21 | + | |
22 | - | Wedge=function(par, a, c, col, t, s, cf, ms) |
22 | + | |
23 | - | local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end) |
23 | + | |
24 | - | local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end) |
24 | + | |
25 | - | return p |
25 | + | |
26 | - | end, |
26 | + | |
27 | - | Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos) |
27 | + | |
28 | - | local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.TextStrokeColor=BrickColor.new("Really black") g.FontSize=fs g.TextFont="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end) |
28 | + | |
29 | - | return g |
29 | + | |
30 | - | end, |
30 | + | |
31 | - | Weld=function(par, p1, cf) |
31 | + | |
32 | - | local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end) |
32 | + | |
33 | - | return w |
33 | + | |
34 | - | end, |
34 | + | |
35 | - | Mesh=function(ins, par, s, of, t) |
35 | + | |
36 | - | local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end) |
36 | + | |
37 | - | return m |
37 | + | |
38 | - | end, |
38 | + | |
39 | - | Sound=function(parent, id, volume, pitch) |
39 | + | |
40 | - | local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end) |
40 | + | |
41 | - | return s |
41 | + | |
42 | - | end, |
42 | + | |
43 | add.Mesh("BlockMesh", body.LegRight, Vector3.new(1, 2, 1), Vector3.new(0, -.5, 0), nil) | |
44 | --------------------------------------------------------------------------------------- | |
45 | --==Objects==-- | |
46 | obj.LH=add.Part(model, false, false, "Really black", 0, Vector3.new(.5, 1, .2), nil) | |
47 | obj.LHW=add.Weld(obj.LH, body.ArmLeft, CFrame.new(-.3, -.5, -.2)) | |
48 | obj.LH=add.Part(model, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil) | |
49 | obj.LHW=add.Weld(obj.LH, body.ArmLeft, CFrame.new(-.3, -.9, 0)) | |
50 | ||
51 | obj.Handle=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.25, 2, .25), nil) | |
52 | obj.HandleW=add.Weld(obj.Handle, body.ArmRight, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0)) | |
53 | for i=1, 5 do | |
54 | obj.Design=add.Part(modelB, false, false, "New Yeller", 0, Vector3.new(.3, .1, .1), nil) | |
55 | obj.DesignW=add.Weld(obj.Design, obj.Handle, CFrame.new(0, -1+i/3, 0)*CFrame.Angles(math.rad(45), 0, 0)) | |
56 | end | |
57 | obj.Guard=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.5, .2, .5), nil) | |
58 | obj.GuardW=add.Weld(obj.Guard, obj.Handle, CFrame.new(0, 1.1, 0)) | |
59 | obj.GuardB=add.Part(modelB, false, false, "New Yeller", 0, Vector3.new(.25, .2, .3), nil) | |
60 | obj.GuardBM=add.Mesh("BlockMesh", obj.GuardB, Vector3.new(.5, 1, 1), nil, nil) | |
61 | obj.GuardBW=add.Weld(obj.GuardB, obj.Handle, CFrame.new(0, 1.25, 0)) | |
62 | obj.Blade=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 4, .25), nil) obj.Blade.Reflectance=.5 | |
63 | obj.BladeM=add.Mesh("BlockMesh", obj.Blade, Vector3.new(.5, 1, 1), nil, nil) | |
64 | obj.BladeW=add.Weld(obj.Blade, obj.Handle, CFrame.new(0, 3, 0)) | |
65 | obj.Point=add.Wedge(modelB, false, false, "Mid gray", 0, Vector3.new(.2, 1, .25), nil) obj.Point.Reflectance=.5 | |
66 | obj.PointM=add.Mesh("SpecialMesh", obj.Point, Vector3.new(.5, 1, 1), nil, "Wedge") | |
67 | obj.PointW=add.Weld(obj.Point, obj.Blade, CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0), 0, 0)) | |
68 | obj.Ope=add.Part(model, false, false, "White", 1, Vector3.new(1, 1, 1), nil) | |
69 | obj.OpeM=add.Mesh("SpecialMesh", obj.Ope, Vector3.new(2, 2, 2), nil, "File") obj.OpeM.MeshId="http://www.roblox.com/asset/?id=3270017" | |
70 | obj.OpeW=add.Weld(obj.Ope, body.ArmLeft, CFrame.new(0, -1.5, 0)) | |
71 | c(function() for i=1, math.huge do wait() obj.OpeM.Scale=Vector3.new(math.random(2, 4), math.random(2, 4), 2) obj.OpeW.C1=CFrame.new(0, -1.8, 0)*CFrame.Angles(math.rad(90), 0, math.rad(i*10)) end end) | |
72 | end | |
73 | function removeParts() | |
74 | p(function() | |
75 | for i, v in pairs(model:children()) do v:remove() end | |
76 | for i, v in pairs(modelB:children()) do v:remove() end | |
77 | for i, v in pairs(char:children()) do v.Transparency=0 end | |
78 | end) | |
79 | end | |
80 | function play(id, pitch) | |
81 | c(function() | |
82 | local sound=Instance.new("Sound", workspace) | |
83 | sound.Pitch=pitch | |
84 | sound.SoundId=id | |
85 | sound:play() | |
86 | wait(.5) | |
87 | sound:remove() | |
88 | end) | |
89 | end | |
90 | local whileDeb=false | |
91 | local keyDeb=false | |
92 | local tDeb=false | |
93 | local hDeb=false | |
94 | local loopDeb=false | |
95 | local loopDeb2=false | |
96 | local loopDeb3=false | |
97 | local speed=32 | |
98 | local mana=100 | |
99 | ||
100 | local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname | |
101 | local label=Instance.new("TextLabel", gui) | |
102 | label.Position=UDim2.new(0, 0, 0, 200) | |
103 | label.Size=UDim2.new(0, 150, 0, 50) | |
104 | label.BorderColor=BrickColor.Black() label.BackgroundColor=BrickColor.Black() | |
105 | label.TextColor=BrickColor.White() | |
106 | label.Font="ArialBold" | |
107 | label.FontSize="Size18" | |
108 | label.Text="Room(Q)" | |
109 | local labelb=Instance.new("TextLabel", label) | |
110 | labelb.Position=UDim2.new(0, 0, 1, 0) | |
111 | labelb.Size=UDim2.new(1, 0, 1, 0) | |
112 | labelb.BorderColor=BrickColor.Black() labelb.BackgroundColor=BrickColor.Black() | |
113 | labelb.TextColor=BrickColor.White() | |
114 | labelb.Font="ArialBold" | |
115 | labelb.FontSize="Size18" | |
116 | labelb.Text="Shambles(E)" | |
117 | local labelc=Instance.new("TextLabel", labelb) | |
118 | labelc.Position=UDim2.new(0, 0, 1, 0) | |
119 | labelc.Size=UDim2.new(1, 0, 1, 0) | |
120 | labelc.BorderColor=BrickColor.Black() labelc.BackgroundColor=BrickColor.Black() | |
121 | labelc.TextColor=BrickColor.White() | |
122 | labelc.Font="ArialBold" | |
123 | labelc.FontSize="Size18" | |
124 | labelc.Text="Mes(R)" | |
125 | local labeld=Instance.new("TextLabel", labelc) | |
126 | labeld.Position=UDim2.new(0, 0, 1, 0) | |
127 | labeld.Size=UDim2.new(1, 0, 1, 0) | |
128 | labeld.BorderColor=BrickColor.Black() labeld.BackgroundColor=BrickColor.Black() | |
129 | labeld.TextColor=BrickColor.White() | |
130 | labeld.Font="ArialBold" | |
131 | labeld.FontSize="Size18" | |
132 | labeld.Text="Shield(F)" | |
133 | local labele=Instance.new("TextLabel", labeld) | |
134 | labele.Position=UDim2.new(0, 0, 1, 0) | |
135 | labele.Size=UDim2.new(1, 0, 1, 0) | |
136 | labele.BorderColor=BrickColor.Black() labele.BackgroundColor=BrickColor.Black() | |
137 | labele.TextColor=BrickColor.White() | |
138 | labele.Font="ArialBold" | |
139 | labele.FontSize="Size18" | |
140 | labele.Text="Charge(Z)" | |
141 | local labelf=Instance.new("TextLabel", labele) | |
142 | labelf.Position=UDim2.new(0, 0, 1, 0) | |
143 | labelf.Size=UDim2.new(1, 0, 1, 0) | |
144 | labelf.BorderColor=BrickColor.Black() labelf.BackgroundColor=BrickColor.Black() | |
145 | labelf.TextColor=BrickColor.White() | |
146 | labelf.Font="ArialBold" | |
147 | labelf.FontSize="Size18" | |
148 | labelf.Text="Rappid(X)" | |
149 | local labelg=Instance.new("TextLabel", labelf) | |
150 | labelg.Position=UDim2.new(0, 0, 1, 0) | |
151 | labelg.Size=UDim2.new(1, 0, 1, 0) | |
152 | labelg.BorderColor=BrickColor.Black() labelg.BackgroundColor=BrickColor.Black() | |
153 | labelg.TextColor=BrickColor.White() | |
154 | labelg.Font="ArialBold" | |
155 | labelg.FontSize="Size18" | |
156 | labelg.Text="Catastrophe(C)" | |
157 | ||
158 | --==MANA==-- | |
159 | local frame=Instance.new("Frame", gui) | |
160 | frame.Position=UDim2.new(0, 0, 0, 150) | |
161 | frame.Size=UDim2.new(0, 200, 0, 20) | |
162 | frame.BorderColor=BrickColor.Black() frame.BackgroundColor=BrickColor.White() | |
163 | local clabel=Instance.new("TextLabel", frame) | |
164 | clabel.Position=UDim2.new(0, 0, 0, 0) | |
165 | clabel.Size=UDim2.new(1, 0, 1, 0) | |
166 | clabel.BorderColor=BrickColor.Black() clabel.BackgroundColor=BrickColor.White() | |
167 | clabel.TextColor=BrickColor.Black() | |
168 | clabel.Font="ArialBold" | |
169 | clabel.FontSize="Size18" | |
170 | clabel.Text="--==100%==--" | |
171 | local charge=Instance.new("TextLabel", frame) charge.Transparency=.5 | |
172 | charge.Position=UDim2.new(0, 0, 0, 0) | |
173 | charge.Size=UDim2.new(1, 0, 1, 0) | |
174 | charge.BorderColor=BrickColor.Black() charge.BackgroundColor=BrickColor.Blue() | |
175 | charge.Text="" | |
176 | ||
177 | function trail(pos, cf, col) | |
178 | c(function() | |
179 | local old=(pos.CFrame*cf).p | |
180 | while tDeb==true do | |
181 | wait() | |
182 | local new=(pos.CFrame*cf).p | |
183 | local mag=(old-new).magnitude | |
184 | local dis=(old+new)/2 | |
185 | local trail=add.Part(model, true, false, col, 0, Vector3.new(.2, mag, .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) | |
186 | local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(1, 1, 1), nil, nil) | |
187 | old=new | |
188 | c(function() | |
189 | for i=1, 0, -.1 do | |
190 | wait() | |
191 | trail.Mesh.Scale=trail.Mesh.Scale*Vector3.new(i, 1, i) | |
192 | end | |
193 | trail:remove() | |
194 | end) | |
195 | c(function() | |
196 | for i=0, 1, .1 do | |
197 | wait() | |
198 | trail.Transparency=i | |
199 | end | |
200 | end) | |
201 | end | |
202 | end) | |
203 | end | |
204 | ||
205 | local dmg=math.random(10, 25) | |
206 | function hit(h) | |
207 | local humanoid=h.Parent:findFirstChild("Humanoid") | |
208 | if humanoid and h.Parent~=char and hDeb==false then | |
209 | hDeb=true | |
210 | --c(function() | |
211 | local fakeP=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p)) | |
212 | local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=3270017" | |
213 | c(function() | |
214 | for i=0, 1, .05 do | |
215 | wait() | |
216 | fakeP.Mesh.Scale=fakeP.Mesh.Scale+Vector3.new(i, i, 0) | |
217 | end | |
218 | fakeP:remove() | |
219 | end) | |
220 | c(function() | |
221 | for i=0, 1, .05 do | |
222 | wait() | |
223 | fakeP.Transparency=i | |
224 | end | |
225 | end) | |
226 | humanoid.Health=humanoid.Health-dmg | |
227 | local fakeM=Instance.new("Model", workspace) fakeM.Name=dmg | |
228 | local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0 | |
229 | local fakeP=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) fakeP.Name="Head" | |
230 | local fakeMesh=add.Mesh("CylinderMesh", fakeP, Vector3.new(1, .2, 1), nil, nil) | |
231 | local bp=Instance.new("BodyPosition", fakeP) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0) | |
232 | game.Debris:addItem(fakeM, 2) | |
233 | pcall(function()h.Parent:findFirstChild("Torso").RotVelocity=Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))end) | |
234 | pcall(function()h.Parent:findFirstChild("Torso").Velocity=Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))end) | |
235 | wait(.1) | |
236 | hDeb=false | |
237 | --end) | |
238 | end | |
239 | end | |
240 | ||
241 | function computePos(pos, pos2) | |
242 | local pos3=Vector3.new(pos2.x, pos.y, pos2.z) | |
243 | torso.CFrame=CFrame.new(pos, pos3) | |
244 | return pos3 | |
245 | end | |
246 | ||
247 | function nearTorso(pos, dis) | |
248 | local temp | |
249 | local distance=dis | |
250 | for i, v in pairs(workspace:children()) do | |
251 | if v:isA("Model") then | |
252 | temp=v:findFirstChild("Torso") | |
253 | local humanoid=v:findFirstChild("Humanoid") | |
254 | if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then | |
255 | distance=(temp.CFrame.p-pos).magnitude | |
256 | return temp | |
257 | end | |
258 | end | |
259 | end | |
260 | end | |
261 | ||
262 | local Attacks={ | |
263 | ["Room"]=function(mouse) human.WalkSpeed=0 | |
264 | computePos(torso.CFrame.p, mouse.Hit.p) | |
265 | for i=0, 1, .1 do wait() | |
266 | body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0) | |
267 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(45)*i) | |
268 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i) | |
269 | end | |
270 | local room=add.Part(model, true, false, "White", .5, Vector3.new(1, 1, 1), torso.CFrame+torso.CFrame.lookVector*25) | |
271 | local dust=add.Part(model, true, false, "White", .5, Vector3.new(1, 1, 1), room.CFrame*CFrame.Angles(math.rad(90), 0, 0)) | |
272 | local dustM=add.Mesh("SpecialMesh", dust, Vector3.new(1, 1, 1), nil, "File") dustM.MeshId="http://www.roblox.com/asset/?id=3270017" | |
273 | local doomed={} | |
274 | room.Touched:connect(function(h) | |
275 | p(function() | |
276 | if h.Parent:findFirstChild("Humanoid") and h.Parent:findFirstChild("Humanoid")~=human then | |
277 | h.Parent["Humanoid"].WalkSpeed=0 print(h.Parent.Name.." is on the ROOM") | |
278 | table.insert(doomed, h.Parent) | |
279 | end | |
280 | end) | |
281 | end) | |
282 | dust.Touched:connect(function(h) | |
283 | p(function() | |
284 | if h.Parent:findFirstChild("Humanoid") and h.Parent:findFirstChild("Humanoid")~=human then | |
285 | h.Parent["Humanoid"].WalkSpeed=0 | |
286 | table.insert(doomed, h.Parent) | |
287 | end | |
288 | end) | |
289 | end) | |
290 | local roomM=add.Mesh("SpecialMesh", room, Vector3.new(1, 1, 1), nil, "Sphere") | |
291 | for i=1, 0, -.1 do wait() obj.Ope.Transparency=i end | |
292 | for i=0, 120, 10 do wait() room.Size=Vector3.new(i, i, i) room.CFrame=torso.CFrame+torso.CFrame.lookVector*25 dustM.Scale=Vector3.new(i, i, i) dust.CFrame=room.CFrame*CFrame.Angles(math.rad(90), 0, 0) end | |
293 | for i=0, 1, .1 do wait() obj.Ope.Transparency=i end | |
294 | tDeb=true | |
295 | trail(obj.Point, CFrame.new(), "White") | |
296 | for i=0, 1, .1 do wait() | |
297 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i) | |
298 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i) | |
299 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
300 | end | |
301 | play("rbxasset://sounds/swordslash.wav", 1) | |
302 | for i=0, 1, .1 do wait() | |
303 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(180)*i, 0) | |
304 | end | |
305 | for i, v in pairs(doomed) do | |
306 | p(function() | |
307 | local tor=v["Torso"] | |
308 | local pYPos=tor.Position.y-(tor.Size.y/2) | |
309 | local sYPos=obj.Point.Position.y | |
310 | local p=tor:clone() | |
311 | local p2=tor:clone() tor:remove() | |
312 | p.formFactor="Custom" p2.formFactor="Custom" p.Anchored=false p.CanCollide=true | |
313 | p.Size=Vector3.new(tor.Size.x, sYPos-pYPos, tor.Size.z) p2.Anchored=false p2.CanCollide=true | |
314 | p2.Size=Vector3.new(tor.Size.x, p2.Size.y-(sYPos-pYPos), tor.Size.z) | |
315 | p.CFrame=tor.CFrame*CFrame.new(0, -p2.Size.y/2, 0) | |
316 | p2.CFrame=tor.CFrame*CFrame.new(0, p.Size.y/2, 0) | |
317 | p.Parent=workspace | |
318 | p2.Parent=workspace | |
319 | c(function() wait(2) | |
320 | --[[for i=0, 1, .05 do | |
321 | wait() | |
322 | p.Transparency=i p2.Transparency=i | |
323 | end]] | |
324 | p:remove() p2:remove() | |
325 | end) | |
326 | end) | |
327 | end | |
328 | tDeb=false | |
329 | for i=1, 0, -.1 do wait() | |
330 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(180)*i, 0) | |
331 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i) | |
332 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i) | |
333 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
334 | end | |
335 | for i=1, 0, -.05 do wait() dustM.Scale=dustM.Scale*Vector3.new(i, i, i) roomM.Scale=roomM.Scale*Vector3.new(i, i, i) end | |
336 | room:remove() dust:remove() | |
337 | human.WalkSpeed=speed | |
338 | whileDeb=false | |
339 | wait(1) | |
340 | end; | |
341 | ["Shambles"]=function(mouse) human.WalkSpeed=0 | |
342 | computePos(torso.CFrame.p, mouse.Hit.p) | |
343 | for i=0, 1, .1 do wait() | |
344 | body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0) | |
345 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(45)*i) | |
346 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i) | |
347 | end | |
348 | local room=add.Part(model, true, false, "White", .5, Vector3.new(1, 1, 1), torso.CFrame+torso.CFrame.lookVector*25) | |
349 | local dust=add.Part(model, true, false, "White", .5, Vector3.new(1, 1, 1), room.CFrame*CFrame.Angles(math.rad(90), 0, 0)) | |
350 | local dustM=add.Mesh("SpecialMesh", dust, Vector3.new(1, 1, 1), nil, "File") dustM.MeshId="http://www.roblox.com/asset/?id=3270017" | |
351 | local doomed={} | |
352 | room.Touched:connect(function(h) | |
353 | p(function() | |
354 | if h.Parent:findFirstChild("Humanoid") and h.Parent:findFirstChild("Humanoid")~=human then | |
355 | h.Parent["Humanoid"].WalkSpeed=0 print(h.Parent.Name.." is on the ROOM") | |
356 | table.insert(doomed, h.Parent) | |
357 | end | |
358 | end) | |
359 | end) | |
360 | dust.Touched:connect(function(h) | |
361 | p(function() | |
362 | if h.Parent:findFirstChild("Humanoid") and h.Parent:findFirstChild("Humanoid")~=human then | |
363 | h.Parent["Humanoid"].WalkSpeed=0 | |
364 | table.insert(doomed, h.Parent) | |
365 | end | |
366 | end) | |
367 | end) | |
368 | local roomM=add.Mesh("SpecialMesh", room, Vector3.new(1, 1, 1), nil, "Sphere") | |
369 | for i=1, 0, -.1 do wait() obj.Ope.Transparency=i end | |
370 | for i=0, 120, 10 do wait() room.Size=Vector3.new(i, i, i) room.CFrame=torso.CFrame+torso.CFrame.lookVector*25 dustM.Scale=Vector3.new(i, i, i) dust.CFrame=room.CFrame*CFrame.Angles(math.rad(90), 0, 0) end | |
371 | tDeb=true | |
372 | trail(obj.Ope, CFrame.new(), "White") | |
373 | for i=0, 1, .1 do wait() play("rbxasset://sounds/swordslash.wav", 1) | |
374 | body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0) | |
375 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(math.random(90, 135)), 0, -math.rad(math.random(-45, 45))) | |
376 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45), 0, math.rad(45)) | |
377 | end | |
378 | for i, v in pairs(doomed) do | |
379 | ypcall(function() | |
380 | local random=doomed[math.random(1, #doomed)] | |
381 | local armleft, armright=v["Left Arm"], v["Right Arm"] | |
382 | local legleft, legright=v["Left Leg"], v["Right Leg"] | |
383 | local head=v["Head"] | |
384 | add.Weld(armleft, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45))) | |
385 | add.Weld(armright, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45))) | |
386 | add.Weld(legleft, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45))) | |
387 | add.Weld(legright, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45))) | |
388 | add.Weld(head, random.Torso, CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))*CFrame.Angles(math.random(-45, 45),math.random(-45, 45),math.random(-45, 45))) | |
389 | end) | |
390 | end | |
391 | tDeb=false | |
392 | for i=0, 1, .1 do wait() obj.Ope.Transparency=i end | |
393 | for i=1, 0, -.1 do wait() | |
394 | body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0) | |
395 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(45)*i) | |
396 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i) | |
397 | end | |
398 | for i=1, 0, -.05 do wait() dustM.Scale=dustM.Scale*Vector3.new(i, i, i) roomM.Scale=roomM.Scale*Vector3.new(i, i, i) end | |
399 | room:remove() dust:remove() | |
400 | human.WalkSpeed=speed | |
401 | whileDeb=false | |
402 | wait(1) | |
403 | end; | |
404 | ["Mes"]=function(mouse) human.WalkSpeed=1 | |
405 | computePos(torso.CFrame.p, mouse.Hit.p) | |
406 | for i=0, 1, .1 do | |
407 | wait() | |
408 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0) | |
409 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i) | |
410 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i) | |
411 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
412 | end | |
413 | obj.Blade.Touched:connect(hit) | |
414 | tDeb=true trail(obj.Point, CFrame.new(), "White") | |
415 | for i=0, 1, .25 do | |
416 | wait() | |
417 | body.TorsoW.C1=CFrame.new(-10*i, 0, 0)*CFrame.Angles(0, -math.rad(90), 0) | |
418 | end | |
419 | play("rbxasset://sounds/swordslash.wav", 1) | |
420 | for i=1, 0, -.2 do | |
421 | wait() | |
422 | body.TorsoW.C1=CFrame.new(-10*i, 0, 0)*CFrame.Angles(0, -math.rad(90), 0) | |
423 | end | |
424 | obj.Blade.Touched:connect(hit):disconnect() | |
425 | for i=1, 0, -.1 do | |
426 | wait() | |
427 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0) | |
428 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i) | |
429 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i) | |
430 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
431 | end | |
432 | human.WalkSpeed=speed | |
433 | tDeb=false | |
434 | whileDeb=false | |
435 | wait(1) | |
436 | end; | |
437 | ["Shield"]=function(mouse) human.WalkSpeed=0 | |
438 | for i=0, 1, .1 do | |
439 | wait() | |
440 | body.TorsoW.C1=CFrame.Angles(0, 0, 0) | |
441 | body.ArmLeftW.C1=CFrame.new(-1.5+(.5*i), .5, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i) | |
442 | body.ArmRightW.C1=CFrame.new(1.5-(.5*i), .5, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i) | |
443 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, math.rad(45)*i) | |
444 | end | |
445 | obj.Blade.Touched:connect(hit) | |
446 | tDeb=true trail(obj.Point, CFrame.new(), "White") | |
447 | local rotate=45 | |
448 | while loopDeb==true and mana>0 do wait() rotate=rotate+45 mana=mana-1 | |
449 | computePos(torso.CFrame.p, mouse.Hit.p) torso.CFrame=torso.CFrame+torso.CFrame.lookVector*2 | |
450 | obj.HandleW.C0=CFrame.Angles(math.rad(rotate), 0, 0) | |
451 | local wind=add.Part(model, true, false, "White", .5, Vector3.new(math.random(10, 15), 1, math.random(10, 15)), obj.Handle.CFrame*CFrame.Angles(0, 0, math.rad(90))) | |
452 | local windM=add.Mesh("CylinderMesh", wind, Vector3.new(1, 1, 1), nil, nil) | |
453 | wind.Touched:connect(hit) | |
454 | c(function() | |
455 | for i=.5, 1, .1 do | |
456 | wait() | |
457 | wind.Transparency=i | |
458 | end | |
459 | wind:remove() | |
460 | end) | |
461 | end | |
462 | obj.Blade.Touched:connect(hit):disconnect() | |
463 | tDeb=false | |
464 | loopDeb=false | |
465 | end; | |
466 | ["Rappid"]=function(mouse) human.WalkSpeed=0 | |
467 | for i=0, 1, .1 do | |
468 | wait() | |
469 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0) | |
470 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i) | |
471 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i) | |
472 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
473 | end | |
474 | obj.Blade.Touched:connect(hit) | |
475 | tDeb=true trail(obj.Point, CFrame.new(), "White") | |
476 | while loopDeb2==true and mana>0 do wait() mana=mana-1 play("rbxasset://sounds/swordslash.wav", 1) | |
477 | computePos(torso.CFrame.p, mouse.Hit.p) torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2 | |
478 | body.ArmRightW.C1=CFrame.new(1.5, .5, math.random(-.2, .2))*CFrame.Angles(math.rad(math.random(-45, 45)), 0, math.rad(90)+math.rad(math.random(-45, 45))) | |
479 | end | |
480 | obj.Blade.Touched:connect(hit):disconnect() | |
481 | tDeb=false | |
482 | loopDeb2=false | |
483 | end; | |
484 | ["Charge"]=function() human.WalkSpeed=0 | |
485 | for i=0, 1, .1 do | |
486 | wait() | |
487 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0) | |
488 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, 0, -math.rad(45)*i) | |
489 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i) | |
490 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
491 | end | |
492 | while loopDeb3==true do wait() if mana>=0 and mana<100 then mana=mana+1 end play("http://www.roblox.com/asset/?id=2101137", 1) | |
493 | local aura=add.Part(model, true, false, "Really black", .5, Vector3.new(1, 1, 1), body.Torso.CFrame*CFrame.new(0, -4, 0)*CFrame.Angles(0, math.rad(math.random(-45, 45)), 0)) | |
494 | local auraM=add.Mesh("SpecialMesh", aura, Vector3.new(1, 1, 1), nil, "File") auraM.MeshId="http://www.roblox.com/asset/?id=20329976" | |
495 | local aura2=add.Part(model, true, false, "Really black", .5, Vector3.new(5, 5, 5), body.Torso.CFrame*CFrame.new(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))*CFrame.Angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)))) | |
496 | c(function() | |
497 | for i=0, 3, .2 do wait() | |
498 | auraM.Scale=auraM.Scale+Vector3.new(i, i/2, i) | |
499 | end | |
500 | c(function() | |
501 | for i=.5, 1, .1 do | |
502 | wait() | |
503 | aura.Transparency=i aura2.Transparency=i | |
504 | end | |
505 | end) | |
506 | aura:remove() aura2:remove() | |
507 | end) | |
508 | end | |
509 | for i=1, 0, -.1 do | |
510 | wait() | |
511 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0) | |
512 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(0, 0, -math.rad(45)*i) | |
513 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(135)*i) | |
514 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
515 | end | |
516 | human.WalkSpeed=speed | |
517 | end; | |
518 | ["Catastrophe"]=function() ypcall(function() | |
519 | local range=40 | |
520 | local nChar=nearTorso(torso.CFrame.p, range).Parent | |
521 | if nChar then mana=mana-20 human.WalkSpeed=0 | |
522 | local nTorso=nChar["Torso"] | |
523 | local nTorsoW=add.Weld(nTorso, torso, CFrame.new(0, 0, -range)) | |
524 | for i=0, 1, .1 do wait() | |
525 | body.TorsoW.C1=CFrame.Angles(0, math.rad(45), 0) | |
526 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(135)*i, 0, -math.rad(45)*i) | |
527 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, math.rad(45)*i) | |
528 | end | |
529 | local room=add.Part(model, true, false, "White", .5, Vector3.new(1, 1, 1), torso.CFrame+torso.CFrame.lookVector*range) | |
530 | local dust=add.Part(model, true, false, "White", .5, Vector3.new(1, 1, 1), room.CFrame*CFrame.Angles(math.rad(90), 0, 0)) | |
531 | local dustM=add.Mesh("SpecialMesh", dust, Vector3.new(1, 1, 1), nil, "File") dustM.MeshId="http://www.roblox.com/asset/?id=3270017" | |
532 | local roomM=add.Mesh("SpecialMesh", room, Vector3.new(1, 1, 1), nil, "Sphere") | |
533 | for i=1, 0, -.1 do wait() obj.Ope.Transparency=i end | |
534 | for i=0, 20, 5 do wait() room.Size=Vector3.new(i, i, i) room.CFrame=torso.CFrame+torso.CFrame.lookVector*range dustM.Scale=Vector3.new(i, i, i) dust.CFrame=room.CFrame*CFrame.Angles(math.rad(90), 0, 0) end | |
535 | for i=0, 1, .1 do wait() obj.Ope.Transparency=i end | |
536 | tDeb=true | |
537 | trail(obj.Point, CFrame.new(), "White") | |
538 | for i=0, 1, .1 do wait() | |
539 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i) | |
540 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i) | |
541 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
542 | end | |
543 | for i=0, 1, .1 do wait() | |
544 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(180)*i, 0) | |
545 | end | |
546 | ypcall(function() | |
547 | local nHead=nChar["Head"] | |
548 | local nTorso=nChar["Torso"] | |
549 | local nHumanoid=nChar["Humanoid"] nHumanoid.WalkSpeed=0 | |
550 | local nHeadW=add.Weld(nHead, nTorso, CFrame.new(0, 1.5, 0)) | |
551 | for i=0, 1, .1 do | |
552 | wait() | |
553 | nHeadW.C1=CFrame.new(0, 1.5+i, 0) | |
554 | end | |
555 | for i=0, 1, .1 do | |
556 | wait() | |
557 | nHeadW.C1=CFrame.new(0, 2.5, (range-2)*i) | |
558 | end | |
559 | nHeadW.Part1=body.ArmLeft | |
560 | nHeadW.C1=CFrame.new(0, -2, 0) | |
561 | local bomb=add.Part(model, false, false, "Really black", 0, Vector3.new(1, 1, 1), nil) | |
562 | local bombM=add.Mesh("SpecialMesh", bomb, Vector3.new(1.5, 1.5, 1.5), nil, "Sphere") | |
563 | local bombW=add.Weld(bomb, nTorso, CFrame.new(0, 1.5, 0)) | |
564 | wait(1) | |
565 | local exp=Instance.new("Explosion", bomb) | |
566 | exp.Position=bomb.Position | |
567 | exp.BlastPressure=1 | |
568 | exp.BlastRadius=3 nHumanoid.Health=0 | |
569 | nTorsoW:remove() | |
570 | end) | |
571 | tDeb=false | |
572 | for i=1, 0, -.1 do wait() | |
573 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(180)*i, 0) | |
574 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i) | |
575 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i) | |
576 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
577 | end | |
578 | for i=1, 0, -.05 do wait() dustM.Scale=dustM.Scale*Vector3.new(i, i, i) roomM.Scale=roomM.Scale*Vector3.new(i, i, i) end | |
579 | room:remove() dust:remove() | |
580 | whileDeb=false | |
581 | human.WalkSpeed=speed | |
582 | end end) | |
583 | end; | |
584 | ["Centipede"]=function() | |
585 | end; | |
586 | } | |
587 | ||
588 | bin.Selected:connect(function(mouse) createParts() | |
589 | for i=0, 1, .1 do wait() | |
590 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(45), 0) | |
591 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i) | |
592 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i) | |
593 | body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*CFrame.Angles(0, 0, -math.rad(15)*i) | |
594 | body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*CFrame.Angles(0, 0, math.rad(15)*i) | |
595 | end | |
596 | c(function() | |
597 | while true do | |
598 | wait() | |
599 | clabel.Text="--=="..mana.."==--" | |
600 | charge.Size=UDim2.new(mana/100, 0, 1, 0) | |
601 | end | |
602 | end) | |
603 | human.Running:connect(function(speed) | |
604 | if speed>0 then while whileDeb==true do wait() end | |
605 | for i=0, 1, .1 do wait() | |
606 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(45), 0) | |
607 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i) | |
608 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(math.rad(45)*i, 0, math.rad(45)*i) | |
609 | body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*CFrame.Angles(0, 0, -math.rad(15)*i) | |
610 | body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*CFrame.Angles(0, 0, math.rad(15)*i) | |
611 | end | |
612 | end | |
613 | end) | |
614 | mouse.Button1Down:connect(function() | |
615 | local fakeP=add.Part(workspace, true, false, "White", 0, Vector3.new(2, 2, 2), CFrame.new((torso.CFrame*CFrame.new(0, 0, 1.5)).p, torso.CFrame.p)*CFrame.Angles(math.rad(90), 0, 0)) | |
616 | local mesh=add.Mesh("SpecialMesh", fakeP, Vector3.new(1, 1, 1), nil, "File") mesh.MeshId="http://www.roblox.com/asset/?id=20329976" | |
617 | c(function() | |
618 | for i=0, 1, .1 do | |
619 | wait() | |
620 | fakeP.Mesh.Scale=fakeP.Mesh.Scale+Vector3.new(i, 0, i) | |
621 | fakeP.Transparency=i | |
622 | end | |
623 | fakeP:remove() | |
624 | end) | |
625 | for i, v in pairs(model:getChildren()) do | |
626 | if v:isA("BasePart") then | |
627 | local clone=v:clone() | |
628 | clone.Anchored=true | |
629 | clone.CanCollide=false | |
630 | clone.CFrame=v.CFrame | |
631 | clone.Parent=workspace | |
632 | c(function() | |
633 | for i=0, 1, .1 do | |
634 | wait() | |
635 | clone.Transparency=i | |
636 | end | |
637 | clone:remove() | |
638 | end) | |
639 | end | |
640 | end | |
641 | torso.CFrame=torso.CFrame+torso.CFrame.lookVector*20 | |
642 | end) | |
643 | mouse.KeyDown:connect(function(key) | |
644 | if key=="q" and mana>=50 and keyDeb==false then mana=mana-50 whileDeb=true keyDeb=true Attacks.Room(mouse) keyDeb=false end | |
645 | if key=="e" and mana>=40 and keyDeb==false then mana=mana-40 whileDeb=true keyDeb=true Attacks.Shambles(mouse) keyDeb=false end | |
646 | if key=="r" and mana>=10 and keyDeb==false then mana=mana-10 whileDeb=true keyDeb=true Attacks.Mes(mouse) keyDeb=false end | |
647 | if key=="c" and mana>=20 and keyDeb==false then whileDeb=true keyDeb=true Attacks.Catastrophe(mouse) keyDeb=false end | |
648 | --if key=="v" and mana>=30 and keyDeb==false then whileDeb=true keyDeb=true Attacks.Centipede(mouse) keyDeb=false end | |
649 | if key=="f" and keyDeb==false then whileDeb=true loopDeb=true keyDeb=true Attacks.Shield(mouse) end | |
650 | if key=="x" and keyDeb==false then whileDeb=true loopDeb2=true keyDeb=true Attacks.Rappid(mouse) end | |
651 | if key=="z" and keyDeb==false then whileDeb=true loopDeb3=true keyDeb=true Attacks.Charge() end | |
652 | end) | |
653 | mouse.KeyUp:connect(function(key) | |
654 | if key=="f" and keyDeb==true then keyDeb=false loopDeb=false whileDeb=false tDeb=false | |
655 | for i=1, 0, -.1 do | |
656 | wait() | |
657 | obj.HandleW.C0=CFrame.Angles(0, 0, 0) | |
658 | body.ArmLeftW.C1=CFrame.new(-1.5+(.5*i), .5, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i) | |
659 | body.ArmRightW.C1=CFrame.new(1.5-(.5*i), .5, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i) | |
660 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, math.rad(45)*i) | |
661 | end human.WalkSpeed=speed | |
662 | end | |
663 | if key=="x" and keyDeb==true then keyDeb=false loopDeb2=false whileDeb=false tDeb=false | |
664 | for i=1, 0, -.1 do | |
665 | wait() | |
666 | body.TorsoW.C1=CFrame.Angles(0, -math.rad(90)*i, 0) | |
667 | body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*CFrame.Angles(-math.rad(45)*i, 0, -math.rad(45)*i) | |
668 | body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*CFrame.Angles(0, 0, math.rad(90)*i) | |
669 | obj.HandleW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90)+(-math.rad(90)*i), 0, 0) | |
670 | end human.WalkSpeed=speed | |
671 | end | |
672 | if key=="z" and keyDeb==true then keyDeb=false loopDeb3=false whileDeb=false tDeb=false end | |
673 | end) | |
674 | end) | |
675 | bin.Deselected:connect(function() removeParts() end)--mediafire |