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