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