SHOW:
|
|
- or go back to the newest paste.
1 | ------------------mediafire gtfo password----------------------------------------------------------------------- | |
2 | ||
3 | ||
4 | - | Person = game.Players.rejcar123456 |
4 | + | Person = game.Players.jassm11 |
5 | if (script.Parent.className ~= "HopperBin") then | |
6 | Tool = Instance.new("HopperBin") | |
7 | Tool.Parent = Person.Backpack | |
8 | Tool.Name = "Tool" | |
9 | script.Parent = Tool | |
10 | G = Instance.new("GuiMain") | |
11 | G.Parent = Person.PlayerGui | |
12 | G.Name = "MahGoey" | |
13 | F = Instance.new("Frame") | |
14 | F.Parent = G | |
15 | T = Instance.new("TextLabel") | |
16 | T.Parent = F | |
17 | T.Name = "Tool" | |
18 | T.Text = "Blade" | |
19 | T.Size = UDim2.new(0, 100, 0, 40) | |
20 | T.Position = UDim2.new(0, 0, 0, 150) | |
21 | T.BorderSizePixel = 0 | |
22 | T.BackgroundColor3 = Color3.new(0, 0, 0) | |
23 | T.TextColor3 = Color3.new(1, 1, 1) | |
24 | T.BackgroundTransparency = 0.3 | |
25 | M = Instance.new("TextLabel") | |
26 | M.Parent = F | |
27 | M.Name = "Mode" | |
28 | M.Text = "Standard" | |
29 | M.Size = UDim2.new(0, 100, 0, 40) | |
30 | M.Position = UDim2.new(0, 0, 0, 190) | |
31 | M.BorderSizePixel = 0 | |
32 | M.BackgroundColor3 = Color3.new(0, 0, 0) | |
33 | M.TextColor3 = Color3.new(1, 1, 1) | |
34 | M.BackgroundTransparency = 0.3 | |
35 | end | |
36 | ---------------------------------------------------------------------------------------------------------------------------------------------Variables | |
37 | Bin = script.Parent | |
38 | Grabbed = nil | |
39 | Debounce = false | |
40 | BladeOut = false | |
41 | Hold = false | |
42 | Suit = true | |
43 | Limbs = {Person.Character["Right Arm"], Person.Character["Left Arm"], Person.Character["Right Leg"], Person.Character["Left Leg"]} | |
44 | Joints = {Person.Character.Torso["Right Shoulder"], Person.Character.Torso["Left Shoulder"], Person.Character.Torso["Right Hip"], Person.Character.Torso["Left Hip"]} | |
45 | NewJoints = {nil, nil, nil, nil} | |
46 | ModeList = {{"Standard", "Breaker"}, {"Main"}, {"Death", "Ban", "Sleep", "Explosion"}} | |
47 | Tools = {"Blade", "Bomb", "Wand"} | |
48 | List = {} | |
49 | Mode = 1 | |
50 | Tool = 1 | |
51 | PreferredHand = 1 | |
52 | PreferredFoot = 3 | |
53 | UnPreferredHand = 0 | |
54 | UnPreferredFoot = 0 | |
55 | if (PreferredHand == 1) then | |
56 | UnPreferredHand = 2 | |
57 | else | |
58 | UnPreferredHand = 1 | |
59 | end | |
60 | if (PreferredFoot == 3) then | |
61 | UnPreferredFoot = 4 | |
62 | else | |
63 | UnPreferredFoot = 3 | |
64 | end | |
65 | ---------------------------------------------------------------------------------------------------------------------------------------------Suit | |
66 | if (Person.Character:findFirstChild("Suit") ~= nil) then | |
67 | Person.Character.Suit:remove() | |
68 | end | |
69 | Suit = Instance.new("Model") | |
70 | Suit.Parent = Person.Character | |
71 | Suit.Name = "Suit" | |
72 | if (Person.Character:findFirstChild("Body Colors") ~= nil) then | |
73 | Person.Character["Body Colors"]:remove() | |
74 | end | |
75 | if (Person.Character.Torso:findFirstChild("roblox") ~= nil) then | |
76 | Person.Character.Torso.roblox:remove() | |
77 | end | |
78 | Person.Character.Torso.BrickColor = BrickColor.new("Really black") | |
79 | Limbs[4].BrickColor = Person.Character.Head.BrickColor | |
80 | Limbs[3].BrickColor = Person.Character.Head.BrickColor | |
81 | Limbs[2].BottomSurface = 0 | |
82 | Limbs[1].BottomSurface = 0 | |
83 | LeftBoot = Instance.new("Part") | |
84 | LeftBoot.Parent = Suit | |
85 | LeftBoot.Name = "LeftBoot" | |
86 | LeftBoot.CanCollide = false | |
87 | LeftBoot.BrickColor = BrickColor.new("Really black") | |
88 | LeftBoot.TopSurface = 0 | |
89 | LeftBoot.BottomSurface = 0 | |
90 | LeftBoot.formFactor = "Symmetric" | |
91 | LeftBoot.Size = Vector3.new(1, 1, 1) | |
92 | Mesh = Instance.new("BlockMesh") | |
93 | Mesh.Parent = LeftBoot | |
94 | Mesh.Scale = Vector3.new(1.02, 0.8, 1.02) | |
95 | LeftBoot:BreakJoints() | |
96 | Weld = Instance.new("Weld") | |
97 | Weld.Parent = LeftBoot | |
98 | Weld.Part0 = Limbs[4] | |
99 | Weld.Part1 = LeftBoot | |
100 | Weld.C0 = CFrame.new(0, -0.61, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
101 | RightBoot = Instance.new("Part") | |
102 | RightBoot.Parent = Suit | |
103 | RightBoot.Name = "RightBoot" | |
104 | RightBoot.CanCollide = false | |
105 | RightBoot.BrickColor = BrickColor.new("Really black") | |
106 | RightBoot.TopSurface = 0 | |
107 | RightBoot.BottomSurface = 0 | |
108 | RightBoot.formFactor = "Symmetric" | |
109 | RightBoot.Size = Vector3.new(1, 1, 1) | |
110 | Mesh = Instance.new("BlockMesh") | |
111 | Mesh.Parent = RightBoot | |
112 | Mesh.Scale = Vector3.new(1.02, 0.8, 1.02) | |
113 | RightBoot:BreakJoints() | |
114 | Weld = Instance.new("Weld") | |
115 | Weld.Parent = RightBoot | |
116 | Weld.Part0 = Limbs[3] | |
117 | Weld.Part1 = RightBoot | |
118 | Weld.C0 = CFrame.new(0, -0.61, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
119 | TunicA = Instance.new("Part") | |
120 | TunicA.Parent = Suit | |
121 | TunicA.Name = "TunicA" | |
122 | TunicA.CanCollide = false | |
123 | TunicA.BrickColor = BrickColor.new("Bright red") | |
124 | TunicA.TopSurface = 0 | |
125 | TunicA.BottomSurface = 0 | |
126 | TunicA.formFactor = "Symmetric" | |
127 | TunicA.Size = Vector3.new(1, 1, 1) | |
128 | Mesh = Instance.new("BlockMesh") | |
129 | Mesh.Parent = TunicA | |
130 | Mesh.Scale = Vector3.new(2.02, 0.5, 1.02) | |
131 | TunicA:BreakJoints() | |
132 | Weld = Instance.new("Weld") | |
133 | Weld.Parent = TunicA | |
134 | Weld.Part0 = Person.Character.Torso | |
135 | Weld.Part1 = TunicA | |
136 | Weld.C0 = CFrame.new(0, -1.25, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
137 | TunicB = Instance.new("Part") | |
138 | TunicB.Parent = Suit | |
139 | TunicB.Name = "TunicB" | |
140 | TunicB.CanCollide = false | |
141 | TunicB.BrickColor = BrickColor.new("Bright red") | |
142 | TunicB.TopSurface = 0 | |
143 | TunicB.BottomSurface = 0 | |
144 | TunicB.formFactor = "Symmetric" | |
145 | TunicB.Size = Vector3.new(1, 1, 1) | |
146 | Mesh = Instance.new("BlockMesh") | |
147 | Mesh.Parent = TunicB | |
148 | Mesh.Scale = Vector3.new(1.02, 0.5, 1.02) | |
149 | TunicB:BreakJoints() | |
150 | Weld = Instance.new("Weld") | |
151 | Weld.Parent = TunicB | |
152 | Weld.Part0 = Limbs[4] | |
153 | Weld.Part1 = TunicB | |
154 | Weld.C0 = CFrame.new(0, 0.75, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
155 | TunicC = Instance.new("Part") | |
156 | TunicC.Parent = Suit | |
157 | TunicC.Name = "TunicC" | |
158 | TunicC.CanCollide = false | |
159 | TunicC.BrickColor = BrickColor.new("Bright red") | |
160 | TunicC.TopSurface = 0 | |
161 | TunicC.BottomSurface = 0 | |
162 | TunicC.formFactor = "Symmetric" | |
163 | TunicC.Size = Vector3.new(1, 1, 1) | |
164 | Mesh = Instance.new("BlockMesh") | |
165 | Mesh.Parent = TunicC | |
166 | Mesh.Scale = Vector3.new(1.02, 0.5, 1.02) | |
167 | TunicC:BreakJoints() | |
168 | Weld = Instance.new("Weld") | |
169 | Weld.Parent = TunicC | |
170 | Weld.Part0 = Limbs[3] | |
171 | Weld.Part1 = TunicC | |
172 | Weld.C0 = CFrame.new(0, 0.75, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
173 | TunicD = Instance.new("Part") | |
174 | TunicD.Parent = Suit | |
175 | TunicD.Name = "TunicD" | |
176 | TunicD.CanCollide = false | |
177 | TunicD.BrickColor = BrickColor.new("Bright red") | |
178 | TunicD.TopSurface = 0 | |
179 | TunicD.BottomSurface = 0 | |
180 | TunicD.formFactor = "Symmetric" | |
181 | TunicD.Size = Vector3.new(1, 1, 1) | |
182 | Mesh = Instance.new("BlockMesh") | |
183 | Mesh.Parent = TunicD | |
184 | Mesh.Scale = Vector3.new(2.02, 1.01, 1.02) | |
185 | TunicD:BreakJoints() | |
186 | Weld = Instance.new("Weld") | |
187 | Weld.Parent = TunicD | |
188 | Weld.Part0 = Person.Character.Torso | |
189 | Weld.Part1 = TunicD | |
190 | Weld.C0 = CFrame.new(0, -0.501, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
191 | TunicE = Instance.new("Part") | |
192 | TunicE.Parent = Suit | |
193 | TunicE.Name = "TunicE" | |
194 | TunicE.CanCollide = false | |
195 | TunicE.BrickColor = BrickColor.new("Bright red") | |
196 | TunicE.TopSurface = 0 | |
197 | TunicE.BottomSurface = 0 | |
198 | TunicE.formFactor = "Symmetric" | |
199 | TunicE.Size = Vector3.new(1, 1, 1) | |
200 | Mesh = Instance.new("SpecialMesh") | |
201 | Mesh.Parent = TunicE | |
202 | Mesh.MeshType = "Wedge" | |
203 | Mesh.Scale = Vector3.new(1.02, 1.01, 0.5) | |
204 | TunicE:BreakJoints() | |
205 | Weld = Instance.new("Weld") | |
206 | Weld.Parent = TunicE | |
207 | Weld.Part0 = Person.Character.Torso | |
208 | Weld.Part1 = TunicE | |
209 | Weld.C0 = CFrame.new(0.25, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) | |
210 | TunicF = Instance.new("Part") | |
211 | TunicF.Parent = Suit | |
212 | TunicF.Name = "TunicF" | |
213 | TunicF.CanCollide = false | |
214 | TunicF.BrickColor = BrickColor.new("Bright red") | |
215 | TunicF.TopSurface = 0 | |
216 | TunicF.BottomSurface = 0 | |
217 | TunicF.formFactor = "Symmetric" | |
218 | TunicF.Size = Vector3.new(1, 1, 1) | |
219 | Mesh = Instance.new("SpecialMesh") | |
220 | Mesh.Parent = TunicF | |
221 | Mesh.MeshType = "Wedge" | |
222 | Mesh.Scale = Vector3.new(1.02, 1.01, 0.5) | |
223 | TunicF:BreakJoints() | |
224 | Weld = Instance.new("Weld") | |
225 | Weld.Parent = TunicF | |
226 | Weld.Part0 = Person.Character.Torso | |
227 | Weld.Part1 = TunicF | |
228 | Weld.C0 = CFrame.new(-0.25, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, 0) | |
229 | TunicG = Instance.new("Part") | |
230 | TunicG.Parent = Suit | |
231 | TunicG.Name = "TunicG" | |
232 | TunicG.CanCollide = false | |
233 | TunicG.BrickColor = BrickColor.new("Bright red") | |
234 | TunicG.TopSurface = 0 | |
235 | TunicG.BottomSurface = 0 | |
236 | TunicG.formFactor = "Symmetric" | |
237 | TunicG.Size = Vector3.new(1, 1, 1) | |
238 | Mesh = Instance.new("BlockMesh") | |
239 | Mesh.Parent = TunicG | |
240 | Mesh.Scale = Vector3.new(0.51, 1.01, 1.02) | |
241 | TunicG:BreakJoints() | |
242 | Weld = Instance.new("Weld") | |
243 | Weld.Parent = TunicG | |
244 | Weld.Part0 = Person.Character.Torso | |
245 | Weld.Part1 = TunicG | |
246 | Weld.C0 = CFrame.new(0.751, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
247 | TunicH = Instance.new("Part") | |
248 | TunicH.Parent = Suit | |
249 | TunicH.Name = "TunicH" | |
250 | TunicH.CanCollide = false | |
251 | TunicH.BrickColor = BrickColor.new("Bright red") | |
252 | TunicH.TopSurface = 0 | |
253 | TunicH.BottomSurface = 0 | |
254 | TunicH.formFactor = "Symmetric" | |
255 | TunicH.Size = Vector3.new(1, 1, 1) | |
256 | Mesh = Instance.new("BlockMesh") | |
257 | Mesh.Parent = TunicH | |
258 | Mesh.Scale = Vector3.new(0.51, 1.01, 1.02) | |
259 | TunicH:BreakJoints() | |
260 | Weld = Instance.new("Weld") | |
261 | Weld.Parent = TunicH | |
262 | Weld.Part0 = Person.Character.Torso | |
263 | Weld.Part1 = TunicH | |
264 | Weld.C0 = CFrame.new(-0.751, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
265 | TunicI = Instance.new("Part") | |
266 | TunicI.Parent = Suit | |
267 | TunicI.Name = "TunicI" | |
268 | TunicI.CanCollide = false | |
269 | TunicI.BrickColor = BrickColor.new("Bright red") | |
270 | TunicI.TopSurface = 0 | |
271 | TunicI.BottomSurface = 0 | |
272 | TunicI.formFactor = "Symmetric" | |
273 | TunicI.Size = Vector3.new(1, 1, 1) | |
274 | Mesh = Instance.new("SpecialMesh") | |
275 | Mesh.Parent = TunicI | |
276 | Mesh.MeshType = "Wedge" | |
277 | Mesh.Scale = Vector3.new(1.02, 1.01, 0.51) | |
278 | TunicI:BreakJoints() | |
279 | Weld = Instance.new("Weld") | |
280 | Weld.Parent = TunicI | |
281 | Weld.Part0 = Limbs[2] | |
282 | Weld.Part1 = TunicI | |
283 | Weld.C0 = CFrame.new(0.251, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, math.pi) | |
284 | TunicJ = Instance.new("Part") | |
285 | TunicJ.Parent = Suit | |
286 | TunicJ.Name = "TunicJ" | |
287 | TunicJ.CanCollide = false | |
288 | TunicJ.BrickColor = BrickColor.new("Bright red") | |
289 | TunicJ.TopSurface = 0 | |
290 | TunicJ.BottomSurface = 0 | |
291 | TunicJ.formFactor = "Symmetric" | |
292 | TunicJ.Size = Vector3.new(1, 1, 1) | |
293 | Mesh = Instance.new("SpecialMesh") | |
294 | Mesh.Parent = TunicJ | |
295 | Mesh.MeshType = "Wedge" | |
296 | Mesh.Scale = Vector3.new(1.02, 1.01, 0.51) | |
297 | TunicJ:BreakJoints() | |
298 | Weld = Instance.new("Weld") | |
299 | Weld.Parent = TunicJ | |
300 | Weld.Part0 = Limbs[1] | |
301 | Weld.Part1 = TunicJ | |
302 | Weld.C0 = CFrame.new(-0.251, 0.501, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, math.pi) | |
303 | TunicK = Instance.new("Part") | |
304 | TunicK.Parent = Suit | |
305 | TunicK.Name = "TunicK" | |
306 | TunicK.CanCollide = false | |
307 | TunicK.BrickColor = BrickColor.new("Really black") | |
308 | TunicK.TopSurface = 0 | |
309 | TunicK.BottomSurface = 0 | |
310 | TunicK.formFactor = "Symmetric" | |
311 | TunicK.Size = Vector3.new(1, 1, 1) | |
312 | Mesh = Instance.new("BlockMesh") | |
313 | Mesh.Parent = TunicK | |
314 | Mesh.Scale = Vector3.new(1.01, 1.505, 1.01) | |
315 | TunicK:BreakJoints() | |
316 | Weld = Instance.new("Weld") | |
317 | Weld.Parent = TunicK | |
318 | Weld.Part0 = Limbs[2] | |
319 | Weld.Part1 = TunicK | |
320 | Weld.C0 = CFrame.new(0, 0.2505, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
321 | TunicL = Instance.new("Part") | |
322 | TunicL.Parent = Suit | |
323 | TunicL.Name = "TunicL" | |
324 | TunicL.CanCollide = false | |
325 | TunicL.BrickColor = BrickColor.new("Really black") | |
326 | TunicL.TopSurface = 0 | |
327 | TunicL.BottomSurface = 0 | |
328 | TunicL.formFactor = "Symmetric" | |
329 | TunicL.Size = Vector3.new(1, 1, 1) | |
330 | Mesh = Instance.new("BlockMesh") | |
331 | Mesh.Parent = TunicL | |
332 | Mesh.Scale = Vector3.new(1.01, 1.505, 1.01) | |
333 | TunicL:BreakJoints() | |
334 | Weld = Instance.new("Weld") | |
335 | Weld.Parent = TunicL | |
336 | Weld.Part0 = Limbs[1] | |
337 | Weld.Part1 = TunicL | |
338 | Weld.C0 = CFrame.new(0, 0.2505, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
339 | TunicM = Instance.new("Part") | |
340 | TunicM.Parent = Suit | |
341 | TunicM.Name = "TunicM" | |
342 | TunicM.CanCollide = false | |
343 | TunicM.BrickColor = BrickColor.new("Bright red") | |
344 | TunicM.TopSurface = 0 | |
345 | TunicM.BottomSurface = 0 | |
346 | TunicM.formFactor = "Symmetric" | |
347 | TunicM.Size = Vector3.new(1, 1, 1) | |
348 | Mesh = Instance.new("BlockMesh") | |
349 | Mesh.Parent = TunicM | |
350 | Mesh.Scale = Vector3.new(2.02, 1.01, 0.51) | |
351 | TunicM:BreakJoints() | |
352 | Weld = Instance.new("Weld") | |
353 | Weld.Parent = TunicM | |
354 | Weld.Part0 = Person.Character.Torso | |
355 | Weld.Part1 = TunicM | |
356 | Weld.C0 = CFrame.new(0, 0.501, 0.251) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
357 | ||
358 | ||
359 | Belt = Instance.new("Part") | |
360 | Belt.Parent = Suit | |
361 | Belt.Name = "Belt" | |
362 | Belt.CanCollide = false | |
363 | Belt.BrickColor = BrickColor.new("Really black") | |
364 | Belt.TopSurface = 0 | |
365 | Belt.BottomSurface = 0 | |
366 | Belt.formFactor = "Symmetric" | |
367 | Belt.Size = Vector3.new(1, 1, 1) | |
368 | Mesh = Instance.new("BlockMesh") | |
369 | Mesh.Parent = Belt | |
370 | Mesh.Scale = Vector3.new(2.04, 0.2, 1.04) | |
371 | Belt:BreakJoints() | |
372 | Weld = Instance.new("Weld") | |
373 | Weld.Parent = Belt | |
374 | Weld.Part0 = Person.Character.Torso | |
375 | Weld.Part1 = Belt | |
376 | Weld.C0 = CFrame.new(0, -0.9, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
377 | ---------------------------------------------------------------------------------------------------------------------------------------------Blade | |
378 | Blade = Instance.new("Model") | |
379 | Blade.Parent = Suit | |
380 | Blade.Name = "Blade" | |
381 | BandA = Instance.new("Part") | |
382 | BandA.Parent = Blade | |
383 | BandA.Name = "BandA" | |
384 | BandA.CanCollide = false | |
385 | BandA.BrickColor = BrickColor.new("Dark stone gray") | |
386 | BandA.TopSurface = 0 | |
387 | BandA.BottomSurface = 0 | |
388 | BandA.formFactor = "Symmetric" | |
389 | BandA.Size = Vector3.new(1, 1, 1) | |
390 | MeshA = Instance.new("BlockMesh") | |
391 | MeshA.Parent = BandA | |
392 | MeshA.Scale = Vector3.new(1.02, 0.1, 1.02) | |
393 | BandA:BreakJoints() | |
394 | Weld = Instance.new("Weld") | |
395 | Weld.Parent = BandA | |
396 | Weld.Part0 = Limbs[PreferredHand] | |
397 | Weld.Part1 = BandA | |
398 | Weld.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
399 | BandB = Instance.new("Part") | |
400 | BandB.Parent = Blade | |
401 | BandB.Name = "BandB" | |
402 | BandB.CanCollide = false | |
403 | BandB.BrickColor = BrickColor.new("Dark stone gray") | |
404 | BandB.TopSurface = 0 | |
405 | BandB.BottomSurface = 0 | |
406 | BandB.formFactor = "Symmetric" | |
407 | BandB.Size = Vector3.new(1, 1, 1) | |
408 | MeshB = Instance.new("BlockMesh") | |
409 | MeshB.Parent = BandB | |
410 | MeshB.Scale = Vector3.new(1.02, 0.1, 1.02) | |
411 | BandB:BreakJoints() | |
412 | Weld = Instance.new("Weld") | |
413 | Weld.Parent = BandB | |
414 | Weld.Part0 = Limbs[PreferredHand] | |
415 | Weld.Part1 = BandB | |
416 | Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
417 | SlotA = Instance.new("Part") | |
418 | SlotA.Parent = Blade | |
419 | SlotA.Name = "SlotA" | |
420 | SlotA.CanCollide = false | |
421 | SlotA.BrickColor = BrickColor.new("Dark stone grey") | |
422 | SlotA.TopSurface = 0 | |
423 | SlotA.BottomSurface = 0 | |
424 | SlotA.formFactor = "Symmetric" | |
425 | SlotA.Size = Vector3.new(1, 1, 1) | |
426 | MeshA = Instance.new("BlockMesh") | |
427 | MeshA.Parent = SlotA | |
428 | MeshA.Scale = Vector3.new(0.1, 1, 0.3) | |
429 | SlotA:BreakJoints() | |
430 | Weld = Instance.new("Weld") | |
431 | Weld.Parent = SlotA | |
432 | Weld.Part0 = Limbs[PreferredHand] | |
433 | Weld.Part1 = SlotA | |
434 | if (PreferredHand == 1) then | |
435 | Weld.C0 = CFrame.new(0.55, -0.4, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
436 | else | |
437 | Weld.C0 = CFrame.new(-0.55, -0.4, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
438 | end | |
439 | ---------------------------------------------------------------------------------------------------------------------------------------------Wand | |
440 | ||
441 | ||
442 | ---------------------------------------------------------------------------------------------------------------------------------------------Functions | |
443 | function DisableLimb(Limb) | |
444 | NJoint = Instance.new("Motor") | |
445 | NJoint.Parent = Person.Character.Torso | |
446 | NJoint.Name = Joints[Limb].Name | |
447 | NJoint.Part0 = Joints[Limb].Part0 | |
448 | NJoint.Part1 = Joints[Limb].Part1 | |
449 | NJoint.MaxVelocity = Joints[Limb].MaxVelocity | |
450 | NJoint.C0 = Joints[Limb].C0 | |
451 | NJoint.C1 = Joints[Limb].C1 | |
452 | Joints[Limb].Parent = nil | |
453 | NewJoints[Limb] = NJoint | |
454 | end | |
455 | function EnableLimb(Limb) | |
456 | Joints[Limb].Parent = Person.Character.Torso | |
457 | NewJoints[Limb]:remove() | |
458 | NewJoints[Limb] = nil | |
459 | end | |
460 | ||
461 | ||
462 | function Check(Table, Value) | |
463 | Results = false | |
464 | for W, V in pairs(Table) do | |
465 | if (V == Value) then | |
466 | Results = true | |
467 | end | |
468 | end | |
469 | return Results | |
470 | end | |
471 | ||
472 | function WeldOn(X, Y) | |
473 | Weld = Instance.new("Weld") | |
474 | Weld.Part0 = X | |
475 | Weld.Part1 = Y | |
476 | ||
477 | HitPos = X.Position | |
478 | CJ = CFrame.new(HitPos) | |
479 | C0 = X.CFrame:inverse() *CJ | |
480 | C1 = Y.CFrame:inverse() * CJ | |
481 | Weld.C0 = C0 | |
482 | Weld.C1 = C1 | |
483 | Weld.Parent = X | |
484 | end | |
485 | function TimeDelete(Object, Time) | |
486 | wait(Time) | |
487 | Object:remove() | |
488 | end | |
489 | function Touch(Hit, Missile) | |
490 | if (Hit ~= nil) then | |
491 | if (Hit.Parent ~= nil) then | |
492 | if (Check(List, Missile) == false) then | |
493 | Bool = Person.Character:IsAncestorOf(Hit) | |
494 | if (Bool == false) then | |
495 | if (Mode == 2) then | |
496 | Hit:BreakJoints() | |
497 | end | |
498 | if (Missile:findFirstChild("ArmWeld") == nil) then | |
499 | WeldOn(Missile, Hit) | |
500 | end | |
501 | if (Hit.Parent:findFirstChild("Humanoid") ~= nil) then | |
502 | if (Hit.Parent.Humanoid.Health > 0) then | |
503 | if (Mode == 1) then | |
504 | Hit.Parent:BreakJoints() | |
505 | end | |
506 | end | |
507 | end | |
508 | end | |
509 | end | |
510 | end | |
511 | end | |
512 | end | |
513 | function ChangeWeapon(Weapon, PrevWeapon) | |
514 | Hold = false | |
515 | if (PrevWeapon == 1) then | |
516 | if (BladeOut == true) then | |
517 | BladeOut = false | |
518 | if (Person.Character.Suit.Blade:findFirstChild("Blade") ~= nil) then | |
519 | if (Person.Character.Suit.Blade.Blade:findFirstChild("BladeA") ~= nil) then | |
520 | Num = 1.4 | |
521 | for I = 1, 5 do | |
522 | if (PreferredHand == 1) then | |
523 | Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
524 | else | |
525 | Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
526 | end | |
527 | Num = Num - 0.1 | |
528 | wait(0.01) | |
529 | end | |
530 | end | |
531 | Person.Character.Suit.Blade.Blade:remove() | |
532 | end | |
533 | end | |
534 | end | |
535 | if (PrevWeapon == 3) then | |
536 | Person.Character.Wand:remove() | |
537 | end | |
538 | ||
539 | if (Weapon == 3) then | |
540 | WandA = Instance.new("Part") | |
541 | WandA.Parent = Person.Character | |
542 | WandA.Name = "Wand" | |
543 | WandA.CanCollide = false | |
544 | WandA.Transparency = 1 | |
545 | WandA.BrickColor = BrickColor.new("Brown") | |
546 | WandA.TopSurface = 0 | |
547 | WandA.BottomSurface = 0 | |
548 | WandA.formFactor = "Symmetric" | |
549 | WandA.Size = Vector3.new(1, 1, 1) | |
550 | Mesh = Instance.new("CylinderMesh") | |
551 | Mesh.Parent = WandA | |
552 | Mesh.Scale = Vector3.new(0.1, 1.2, 0.1) | |
553 | Weld = Instance.new("Weld") | |
554 | Weld.Parent = WandA | |
555 | Weld.Part0 = Limbs[PreferredHand] | |
556 | Weld.Part1 = WandA | |
557 | if (PreferredHand == 1) then | |
558 | Weld.C0 = CFrame.new(0, -1.2, -0.9) * CFrame.fromEulerAnglesXYZ(math.pi/4, 0, 0) | |
559 | else | |
560 | Weld.C0 = CFrame.new(0, -1.2, -0.9) * CFrame.fromEulerAnglesXYZ(math.pi + (math.pi/4), 0, 0) | |
561 | end | |
562 | end | |
563 | ||
564 | ||
565 | ||
566 | ||
567 | end | |
568 | ||
569 | ||
570 | ||
571 | function GrabFunction(Part) | |
572 | Grabbed = Part.Parent | |
573 | PlatformStand = Part.Parent.Humanoid.PlatformStand | |
574 | Part.Parent.Humanoid.PlatformStand = true | |
575 | Part.Parent.Torso.DraggingV1 = true | |
576 | Val = math.pi/2 | |
577 | if (PreferredHand == 2) then | |
578 | Val = -math.pi/2 | |
579 | end | |
580 | Part.Parent.Torso.CFrame = Limbs[PreferredHand].CFrame * CFrame.new(0, -1.4, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2, math.pi, -math.pi/2) | |
581 | while true do | |
582 | if (Hold == false) then | |
583 | break | |
584 | end | |
585 | if (Part.Parent.Parent == nil) then | |
586 | break | |
587 | end | |
588 | if (Part.Parent:findFirstChild("Torso") == nil) then | |
589 | break | |
590 | end | |
591 | if (Part.Parent:findFirstChild("Humanoid") == nil) then | |
592 | break | |
593 | end | |
594 | if (Part.Parent.Humanoid.Health < 0.001) then | |
595 | break | |
596 | end | |
597 | Part.Parent.Humanoid.PlatformStand = true | |
598 | Part.Parent.Torso.CFrame = Limbs[PreferredHand].CFrame * CFrame.new(0, -1.4, 0) * CFrame.fromEulerAnglesXYZ(math.pi/2, math.pi, math.pi/2) | |
599 | wait(0.0) | |
600 | end | |
601 | if (Part.Parent:findFirstChild("Humanoid") ~= nil) then | |
602 | Part.Parent.Humanoid.PlatformStand = PlatformStand | |
603 | end | |
604 | if (Part.Parent:findFirstChild("Torso") ~= nil) then | |
605 | Part.Parent.Torso.DraggingV1 = false | |
606 | end | |
607 | Debounce = false | |
608 | Grabbed = nil | |
609 | end | |
610 | ||
611 | function Grab(Hit) | |
612 | if (Grabbed == nil) then | |
613 | if (Hit ~= nil) then | |
614 | if (Hit.Parent ~= nil) then | |
615 | if (Hit.Parent:findFirstChild("Humanoid") ~= nil) then | |
616 | if (Hit.Parent.Humanoid.Health > 0) then | |
617 | if (Hit.Parent:findFirstChild("Torso") ~= nil) then | |
618 | GrabFunction(Hit) | |
619 | end | |
620 | end | |
621 | end | |
622 | end | |
623 | end | |
624 | end | |
625 | end | |
626 | function Del(Object) | |
627 | for I = 1, 10 do | |
628 | wait(0.001) | |
629 | Object.Mesh.Scale = Vector3.new(Object.Mesh.Scale.x - 0.1, Object.Mesh.Scale.y - 0.1, Object.Mesh.Scale.z - 0.1) | |
630 | end | |
631 | Object:remove() | |
632 | end | |
633 | ||
634 | ||
635 | ---------------------------------------------------------------------------------------------------------------------------------------------Click | |
636 | function Click(mouse) | |
637 | Hold = true | |
638 | if (Tool == 1) then | |
639 | DisableLimb(PreferredHand) | |
640 | Val = -math.pi/2 | |
641 | if (PreferredHand == 2) then | |
642 | Val = math.pi/2 | |
643 | end | |
644 | while true do | |
645 | if (Hold == false) then | |
646 | break | |
647 | end | |
648 | Place0 = Person.Character.Torso.CFrame | |
649 | Place0 = Place0 + ((Place0 * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector * 0.5) + (Place0 * CFrame.fromEulerAnglesXYZ(0, Val, 0)).lookVector | |
650 | Place1 = Place0 + ((Place0.p - mouse.Hit.p).unit * - 2) | |
651 | Place2 = CFrame.new((Place0.p + Place1.p)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(-(math.pi/2), Val, 0) | |
652 | HitPos = Person.Character.Torso.Position | |
653 | CJ = CFrame.new(HitPos) | |
654 | C0 = Person.Character.Torso.CFrame:inverse() *CJ | |
655 | C1 = Place2:inverse() * CJ | |
656 | NewJoints[PreferredHand].C0 = C0 | |
657 | NewJoints[PreferredHand].C1 = C1 | |
658 | wait(0.0) | |
659 | end | |
660 | EnableLimb(PreferredHand) | |
661 | end | |
662 | ||
663 | ||
664 | if (Tool == 3) then | |
665 | B = Instance.new("BillboardGui") | |
666 | B.Parent = Person.PlayerGui | |
667 | B.Name = "Indicator" | |
668 | B.Adornee = nil | |
669 | B.Size = UDim2.new(0, 1, 0, 1) | |
670 | T = Instance.new("ImageLabel") | |
671 | T.Image = "http://www.roblox.com/asset/?id=24838770" | |
672 | T.BackgroundTransparency = 1 | |
673 | T.Parent = B | |
674 | T.Size = UDim2.new(0, 200, 0, 200) | |
675 | T.Position = UDim2.new(0, -100, 0 , -100) | |
676 | DisableLimb(PreferredHand) | |
677 | Val = -math.pi/2 | |
678 | if (PreferredHand == 2) then | |
679 | Val = math.pi/2 | |
680 | end | |
681 | while true do | |
682 | if (Hold == false) then | |
683 | break | |
684 | end | |
685 | if (mouse.Target == nil) then | |
686 | B.Adornee = nil | |
687 | else | |
688 | if (mouse.Target.Parent == nil) then | |
689 | B.Adornee = nil | |
690 | else | |
691 | if (mouse.Target.Parent:findFirstChild("Humanoid") == nil) then | |
692 | B.Adornee = nil | |
693 | else | |
694 | if (mouse.Target.Parent:findFirstChild("Torso") == nil) then | |
695 | B.Adornee = nil | |
696 | else | |
697 | if (mouse.Target.Parent.Humanoid.Health < 0.01) then | |
698 | B.Adornee = nil | |
699 | elseif (mouse.Target.Parent.Humanoid.Health > 0) then | |
700 | if (mouse.Target.Parent.Torso ~= B.Adornee) then | |
701 | B.Adornee = mouse.Target.Parent.Torso | |
702 | end | |
703 | end | |
704 | end | |
705 | end | |
706 | end | |
707 | end | |
708 | Point = mouse.Hit | |
709 | if (B.Adornee ~= nil) then | |
710 | Point = B.Adornee.CFrame | |
711 | end | |
712 | ||
713 | Place0 = Person.Character.Torso.CFrame | |
714 | Place0 = Place0 + ((Place0 * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector * 0.5) + (Place0 * CFrame.fromEulerAnglesXYZ(0, Val, 0)).lookVector | |
715 | Place1 = Place0 + ((Place0.p - Point.p).unit * - 2) | |
716 | Place2 = CFrame.new((Place0.p + Place1.p)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(-math.pi/2, math.pi, 0) | |
717 | HitPos = Person.Character.Torso.Position | |
718 | CJ = CFrame.new(HitPos) | |
719 | C0 = Person.Character.Torso.CFrame:inverse() *CJ | |
720 | C1 = Place2:inverse() * CJ | |
721 | NewJoints[PreferredHand].C0 = C0 | |
722 | NewJoints[PreferredHand].C1 = C1 | |
723 | wait(0.0) | |
724 | end | |
725 | B:remove() | |
726 | EnableLimb(PreferredHand) | |
727 | end | |
728 | ||
729 | ||
730 | ||
731 | end | |
732 | ||
733 | function Release(mouse) | |
734 | Hold = false | |
735 | end | |
736 | ---------------------------------------------------------------------------------------------------------------------------------------------Key | |
737 | function PressKey(key, mouse) | |
738 | if (Tool == 1) then | |
739 | if (key == "g") then | |
740 | if (Hold == true) then | |
741 | if (BladeOut == false) then | |
742 | if (Debounce == false) then | |
743 | Debounce = true | |
744 | Connection = Limbs[PreferredHand].Touched:connect(Grab) | |
745 | for I = 1, 3000 do | |
746 | if (Hold == false) then | |
747 | break | |
748 | end | |
749 | if (BladeOut == true) then | |
750 | break | |
751 | end | |
752 | wait(0.001) | |
753 | end | |
754 | if (Grabbed == nil) then | |
755 | Debounce = false | |
756 | end | |
757 | Connection:disconnect() | |
758 | end | |
759 | end | |
760 | end | |
761 | end | |
762 | if (key == "f") then | |
763 | if (Hold == true) then | |
764 | if (BladeOut == true) then | |
765 | if (Debounce == false) then | |
766 | Debounce = true | |
767 | Person.Character.Suit.Blade.Blade.BladeA.ArmWeld:remove() | |
768 | Person.Character.Suit.Blade.Blade.BladeA.CanCollide = true | |
769 | BV = Instance.new("BodyVelocity") | |
770 | BV.Parent = Person.Character.Suit.Blade.Blade.BladeA | |
771 | BV.maxForce = Vector3.new(1e+010, 1e+010, 1e+010) | |
772 | BV.velocity = Person.Character.Suit.Blade.Blade.BladeA.CFrame.lookVector * 60 | |
773 | BG = Instance.new("BodyGyro") | |
774 | BG.Parent = Person.Character.Suit.Blade.Blade.BladeA | |
775 | BG.maxTorque = Vector3.new(4e+030, 4e+030, 4e+030) | |
776 | BG.cframe = Person.Character.Suit.Blade.Blade.BladeA.CFrame | |
777 | coroutine.resume(coroutine.create(TimeDelete), Person.Character.Suit.Blade.Blade, 8) | |
778 | Person.Character.Suit.Blade.Blade.Parent = game.Workspace | |
779 | wait(3) | |
780 | Mod = Instance.new("Model") | |
781 | Mod.Parent = Blade | |
782 | Mod.Name = "Blade" | |
783 | BladeA = Instance.new("Part") | |
784 | BladeA.Parent = Mod | |
785 | BladeA.Name = "BladeA" | |
786 | BladeA.CanCollide = false | |
787 | BladeA.Transparency = 1 | |
788 | BladeA.TopSurface = 0 | |
789 | BladeA.BottomSurface = 0 | |
790 | BladeA.formFactor = "Symmetric" | |
791 | BladeA.Size = Vector3.new(1, 1, 1) | |
792 | BladeA:BreakJoints() | |
793 | Weld = Instance.new("Weld") | |
794 | Weld.Parent = BladeA | |
795 | Weld.Name = "ArmWeld" | |
796 | Weld.Part0 = Limbs[PreferredHand] | |
797 | Weld.Part1 = BladeA | |
798 | if (PreferredHand == 1) then | |
799 | Weld.C0 = CFrame.new(0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
800 | else | |
801 | Weld.C0 = CFrame.new(-0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
802 | end | |
803 | BladeB = Instance.new("Part") | |
804 | BladeB.Parent = Mod | |
805 | BladeB.Name = "BladeB" | |
806 | BladeB.CanCollide = false | |
807 | BladeB.Reflectance = 0.1 | |
808 | BladeB.BrickColor = BrickColor.new("Medium stone grey") | |
809 | BladeB.TopSurface = 0 | |
810 | BladeB.BottomSurface = 0 | |
811 | BladeB.formFactor = "Symmetric" | |
812 | BladeB.Size = Vector3.new(1, 1, 1) | |
813 | MeshB = Instance.new("SpecialMesh") | |
814 | MeshB.Parent = BladeB | |
815 | MeshB.MeshType = "Wedge" | |
816 | MeshB.Scale = Vector3.new(0.05, 1, 0.1) | |
817 | BladeB:BreakJoints() | |
818 | Weld = Instance.new("Weld") | |
819 | Weld.Parent = BladeB | |
820 | Weld.Part0 = BladeA | |
821 | Weld.Part1 = BladeB | |
822 | Weld.C0 = CFrame.new(0, -0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
823 | BladeC = Instance.new("Part") | |
824 | BladeC.Parent = Mod | |
825 | BladeC.Name = "BladeC" | |
826 | BladeC.CanCollide = false | |
827 | BladeC.Reflectance = 0.1 | |
828 | BladeC.BrickColor = BrickColor.new("Medium stone grey") | |
829 | BladeC.TopSurface = 0 | |
830 | BladeC.BottomSurface = 0 | |
831 | BladeC.formFactor = "Symmetric" | |
832 | BladeC.Size = Vector3.new(1, 1, 1) | |
833 | MeshC = Instance.new("SpecialMesh") | |
834 | MeshC.Parent = BladeC | |
835 | MeshC.MeshType = "Wedge" | |
836 | MeshC.Scale = Vector3.new(0.05, 1, 0.1) | |
837 | BladeC:BreakJoints() | |
838 | Weld = Instance.new("Weld") | |
839 | Weld.Parent = BladeC | |
840 | Weld.Part0 = BladeA | |
841 | Weld.Part1 = BladeC | |
842 | Weld.C0 = CFrame.new(0, 0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, math.pi, 0) | |
843 | BladeA.Touched:connect(function(Hit) Touch(Hit, BladeA) end) | |
844 | Num = 1 | |
845 | for I = 1, 5 do | |
846 | if (PreferredHand == 1) then | |
847 | BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
848 | else | |
849 | BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
850 | end | |
851 | Num = Num + 0.1 | |
852 | wait(0.01) | |
853 | end | |
854 | Debounce = false | |
855 | end | |
856 | end | |
857 | end | |
858 | end | |
859 | if (key == "r") then | |
860 | if (Debounce == false) then | |
861 | if (BladeOut == false) then | |
862 | BladeOut = true | |
863 | Mod = Instance.new("Model") | |
864 | Mod.Parent = Blade | |
865 | Mod.Name = "Blade" | |
866 | BladeA = Instance.new("Part") | |
867 | BladeA.Parent = Mod | |
868 | BladeA.Name = "BladeA" | |
869 | BladeA.CanCollide = false | |
870 | BladeA.Transparency = 1 | |
871 | BladeA.TopSurface = 0 | |
872 | BladeA.BottomSurface = 0 | |
873 | BladeA.formFactor = "Symmetric" | |
874 | BladeA.Size = Vector3.new(1, 1, 1) | |
875 | BladeA:BreakJoints() | |
876 | Weld = Instance.new("Weld") | |
877 | Weld.Parent = BladeA | |
878 | Weld.Name = "ArmWeld" | |
879 | Weld.Part0 = Limbs[PreferredHand] | |
880 | Weld.Part1 = BladeA | |
881 | if (PreferredHand == 1) then | |
882 | Weld.C0 = CFrame.new(0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
883 | else | |
884 | Weld.C0 = CFrame.new(-0.55, -1.4, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
885 | end | |
886 | BladeB = Instance.new("Part") | |
887 | BladeB.Parent = Mod | |
888 | BladeB.Name = "BladeB" | |
889 | BladeB.CanCollide = false | |
890 | BladeB.Reflectance = 0.1 | |
891 | BladeB.BrickColor = BrickColor.new("Medium stone grey") | |
892 | BladeB.TopSurface = 0 | |
893 | BladeB.BottomSurface = 0 | |
894 | BladeB.formFactor = "Symmetric" | |
895 | BladeB.Size = Vector3.new(1, 1, 1) | |
896 | MeshB = Instance.new("SpecialMesh") | |
897 | MeshB.Parent = BladeB | |
898 | MeshB.MeshType = "Wedge" | |
899 | MeshB.Scale = Vector3.new(0.05, 1, 0.1) | |
900 | BladeB:BreakJoints() | |
901 | Weld = Instance.new("Weld") | |
902 | Weld.Parent = BladeB | |
903 | Weld.Part0 = BladeA | |
904 | Weld.Part1 = BladeB | |
905 | Weld.C0 = CFrame.new(0, -0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
906 | BladeC = Instance.new("Part") | |
907 | BladeC.Parent = Mod | |
908 | BladeC.Name = "BladeC" | |
909 | BladeC.CanCollide = false | |
910 | BladeC.Reflectance = 0.1 | |
911 | BladeC.BrickColor = BrickColor.new("Medium stone grey") | |
912 | BladeC.TopSurface = 0 | |
913 | BladeC.BottomSurface = 0 | |
914 | BladeC.formFactor = "Symmetric" | |
915 | BladeC.Size = Vector3.new(1, 1, 1) | |
916 | MeshC = Instance.new("SpecialMesh") | |
917 | MeshC.Parent = BladeC | |
918 | MeshC.MeshType = "Wedge" | |
919 | MeshC.Scale = Vector3.new(0.05, 1, 0.1) | |
920 | BladeC:BreakJoints() | |
921 | Weld = Instance.new("Weld") | |
922 | Weld.Parent = BladeC | |
923 | Weld.Part0 = BladeA | |
924 | Weld.Part1 = BladeC | |
925 | Weld.C0 = CFrame.new(0, 0.05, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, math.pi, 0) | |
926 | BladeA.Touched:connect(function(Hit) Touch(Hit, BladeA) end) | |
927 | Num = 1 | |
928 | for I = 1, 5 do | |
929 | if (PreferredHand == 1) then | |
930 | BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
931 | else | |
932 | BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
933 | end | |
934 | Num = Num + 0.1 | |
935 | wait(0.01) | |
936 | end | |
937 | else | |
938 | BladeOut = false | |
939 | ||
940 | if (Person.Character.Suit.Blade:findFirstChild("Blade") ~= nil) then | |
941 | if (Person.Character.Suit.Blade.Blade:findFirstChild("BladeA") ~= nil) then | |
942 | Num = 1.4 | |
943 | for I = 1, 5 do | |
944 | if (PreferredHand == 1) then | |
945 | Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
946 | else | |
947 | Person.Character.Suit.Blade.Blade.BladeA.ArmWeld.C0 = CFrame.new(-0.55, -Num, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
948 | end | |
949 | Num = Num - 0.1 | |
950 | wait(0.01) | |
951 | end | |
952 | end | |
953 | Person.Character.Suit.Blade.Blade:remove() | |
954 | end | |
955 | ||
956 | ||
957 | end | |
958 | end | |
959 | end | |
960 | end | |
961 | if (Tool == 3) then | |
962 | if (key == "f") then | |
963 | if (Debounce == false) then | |
964 | if (Hold == true) then | |
965 | if (Person.PlayerGui:findFirstChild("Indicator") ~= nil) then | |
966 | if (Person.PlayerGui.Indicator.Adornee ~= nil) then | |
967 | Player = Person.PlayerGui.Indicator.Adornee.Parent | |
968 | if (Mode == 1) then | |
969 | Orb = Instance.new("Part") | |
970 | Orb.Parent = Person.Character | |
971 | Orb.Name = "Orb" | |
972 | Orb.CanCollide = false | |
973 | Orb.BrickColor = BrickColor.new("Black") | |
974 | Orb.Transparency = 0.5 | |
975 | Orb.TopSurface = 0 | |
976 | Orb.BottomSurface = 0 | |
977 | Orb.formFactor = "Symmetric" | |
978 | Orb.Size = Vector3.new(1, 1, 1) | |
979 | Mesh = Instance.new("SpecialMesh") | |
980 | Mesh.Parent = Orb | |
981 | Mesh.MeshType = "Sphere" | |
982 | Mesh.Scale = Vector3.new(1, 1, 1) | |
983 | Orb:BreakJoints() | |
984 | Weld = Instance.new("Weld") | |
985 | Weld.Parent = Orb | |
986 | Weld.Part0 = Person.Character.Wand | |
987 | Weld.Part1 = Orb | |
988 | Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
989 | Player:BreakJoints() | |
990 | Del(Orb) | |
991 | end | |
992 | if (Mode == 2) then | |
993 | if (game.Players:GetPlayerFromCharacter(Player) ~= nil) then | |
994 | Orb = Instance.new("Part") | |
995 | Orb.Parent = Person.Character | |
996 | Orb.Name = "Orb" | |
997 | Orb.CanCollide = false | |
998 | Orb.BrickColor = BrickColor.new("Bright violet") | |
999 | Orb.Transparency = 0.5 | |
1000 | Orb.TopSurface = 0 | |
1001 | Orb.BottomSurface = 0 | |
1002 | Orb.formFactor = "Symmetric" | |
1003 | Orb.Size = Vector3.new(1, 1, 1) | |
1004 | Mesh = Instance.new("SpecialMesh") | |
1005 | Mesh.Parent = Orb | |
1006 | Mesh.MeshType = "Sphere" | |
1007 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1008 | Orb:BreakJoints() | |
1009 | Weld = Instance.new("Weld") | |
1010 | Weld.Parent = Orb | |
1011 | Weld.Part0 = Person.Character.Wand | |
1012 | Weld.Part1 = Orb | |
1013 | Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1014 | game.Players:GetPlayerFromCharacter(Player):remove() | |
1015 | Del(Orb) | |
1016 | end | |
1017 | end | |
1018 | if (Mode == 3) then | |
1019 | Orb = Instance.new("Part") | |
1020 | Orb.Parent = Person.Character | |
1021 | Orb.Name = "Orb" | |
1022 | Orb.CanCollide = false | |
1023 | Orb.BrickColor = BrickColor.new("Teal") | |
1024 | Orb.Transparency = 0.5 | |
1025 | Orb.TopSurface = 0 | |
1026 | Orb.BottomSurface = 0 | |
1027 | Orb.formFactor = "Symmetric" | |
1028 | Orb.Size = Vector3.new(1, 1, 1) | |
1029 | Mesh = Instance.new("SpecialMesh") | |
1030 | Mesh.Parent = Orb | |
1031 | Mesh.MeshType = "Sphere" | |
1032 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1033 | Orb:BreakJoints() | |
1034 | Weld = Instance.new("Weld") | |
1035 | Weld.Parent = Orb | |
1036 | Weld.Part0 = Person.Character.Wand | |
1037 | Weld.Part1 = Orb | |
1038 | Weld.C0 = CFrame.new(0, 0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1039 | Player.Humanoid.PlatformStand = not Player.Humanoid.PlatformStand | |
1040 | Del(Orb) | |
1041 | end | |
1042 | ||
1043 | ||
1044 | else | |
1045 | ||
1046 | end | |
1047 | if (Mode == 4) then | |
1048 | Orb = Instance.new("Part") | |
1049 | Orb.Parent = Person.Character | |
1050 | Orb.Name = "Orb" | |
1051 | Orb.CanCollide = false | |
1052 | Orb.BrickColor = BrickColor.new("Bright orange") | |
1053 | Orb.Transparency = 0.5 | |
1054 | Orb.TopSurface = 0 | |
1055 | Orb.BottomSurface = 0 | |
1056 | Orb.formFactor = "Symmetric" | |
1057 | Orb.Size = Vector3.new(-1, -1, -1) | |
1058 | Mesh = Instance.new("SpecialMesh") | |
1059 | Mesh.Parent = Orb | |
1060 | Mesh.MeshType = "Sphere" | |
1061 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1062 | Orb:BreakJoints() | |
1063 | Weld = Instance.new("Weld") | |
1064 | Weld.Parent = Orb | |
1065 | Weld.Part0 = Person.Character.Wand | |
1066 | Weld.Part1 = Orb | |
1067 | Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1068 | Ex = Instance.new("Explosion") | |
1069 | Ex.Parent = game.Workspace | |
1070 | Ex.BlastRadius = 5 | |
1071 | Ex.Position = mouse.Hit.p | |
1072 | Ex.BlastPressure = 1000 | |
1073 | Del(Orb) | |
1074 | end | |
1075 | ||
1076 | end | |
1077 | end | |
1078 | end | |
1079 | end | |
1080 | ||
1081 | end | |
1082 | ||
1083 | ||
1084 | if (key == "e") then | |
1085 | Mode = Mode + 1 | |
1086 | Table = ModeList[Tool] | |
1087 | if (Mode > #Table) then | |
1088 | Mode = 1 | |
1089 | end | |
1090 | Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode] | |
1091 | end | |
1092 | if (key == "q") then | |
1093 | Mode = Mode - 1 | |
1094 | Table = ModeList[Tool] | |
1095 | if (Mode < 1) then | |
1096 | Mode = #Table | |
1097 | end | |
1098 | Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode] | |
1099 | end | |
1100 | if (key == "v") then | |
1101 | if (Debounce == false) then | |
1102 | Tool = Tool + 1 | |
1103 | if (Tool > #Tools) then | |
1104 | Tool = 1 | |
1105 | end | |
1106 | Person.PlayerGui.MahGoey.Frame.Tool.Text = Tools[Tool] | |
1107 | Mode = 1 | |
1108 | Table = ModeList[Tool] | |
1109 | Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode] | |
1110 | ChangeWeapon(Tool, Tool - 1) | |
1111 | end | |
1112 | end | |
1113 | if (key == "c") then | |
1114 | if (Debounce == false) then | |
1115 | Tool = Tool - 1 | |
1116 | if (Tool < 1) then | |
1117 | Tool = #Tools | |
1118 | end | |
1119 | Person.PlayerGui.MahGoey.Frame.Tool.Text = Tools[Tool] | |
1120 | Mode = 1 | |
1121 | Table = ModeList[Tool] | |
1122 | Person.PlayerGui.MahGoey.Frame.Mode.Text = Table[Mode] | |
1123 | ChangeWeapon(Tool, Tool + 1) | |
1124 | end | |
1125 | end | |
1126 | if (key == "p") then | |
1127 | Person.Character:BreakJoints() | |
1128 | end | |
1129 | if (key == "0") then | |
1130 | Person.Character.Humanoid.WalkSpeed = 50 | |
1131 | end | |
1132 | end | |
1133 | ||
1134 | function UpKey(key, mouse) | |
1135 | if (key == "0") then | |
1136 | Person.Character.Humanoid.WalkSpeed = 16 | |
1137 | end | |
1138 | end | |
1139 | ---------------------------------------------------------------------------------------------------------------------------------------------Select | |
1140 | function Select(mouse) | |
1141 | mouse.Button1Down:connect(function() Click(mouse) end) | |
1142 | mouse.Button1Up:connect(function() Release(mouse) end) | |
1143 | mouse.KeyDown:connect(function(key) PressKey(key, mouse) end) | |
1144 | mouse.KeyUp:connect(function(key) UpKey(key, mouse) end) | |
1145 | end | |
1146 | ||
1147 | function Deselect(mouse) | |
1148 | Hold = false | |
1149 | end | |
1150 | ||
1151 | Bin.Selected:connect(Select) | |
1152 | Bin.Deselected:connect(Deselect) | |
1153 | --lego |