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