SHOW:
|
|
- or go back to the newest paste.
1 | ------------------------------------------------------------------------------------------------ | |
2 | ------------------------ | |
3 | ||
4 | - | Name = "PlayerName" |
4 | + | Name = "iispecialeffects" |
5 | Person = game.Players[Name] | |
6 | Altitude = Vector3.new(0,40,0) | |
7 | ||
8 | if Workspace:findFirstChild("NinjaHouse",true) ~= nil then | |
9 | Workspace:findFirstChild("NinjaHouse",true).Parent = nil | |
10 | end | |
11 | Commands = {"up","down","controls","seat","murder","sleep","front door", "ladder","windowa","dima","dimb","turret","fix","kick","shutdown","destruct"} | |
12 | ||
13 | ||
14 | if (script:findFirstChild("Type") == nil) then | |
15 | Type = Instance.new("StringValue") | |
16 | Type.Parent = script | |
17 | Type.Name = "Type" | |
18 | Type.Value = "House" | |
19 | end | |
20 | ||
21 | if (script.Type.Value == "Missile") then | |
22 | function Explode(Hit) | |
23 | E = Instance.new("Explosion") | |
24 | E.Parent = game.Workspace | |
25 | E.BlastRadius = 10 | |
26 | E.BlastPressure = 1000 | |
27 | E.Position = script.Parent.Position | |
28 | script.Parent:remove() | |
29 | end | |
30 | script.Parent.Touched:connect(Explode) | |
31 | wait(18) | |
32 | script.Parent:remove() | |
33 | end | |
34 | if (script.Type.Value == "House") then | |
35 | if (script.Parent.className ~= "Model") then | |
36 | Model = Instance.new("Model") | |
37 | Model.Parent = game.Workspace | |
38 | Model.Name = "NinjaHouse" | |
39 | script.Parent = Model | |
40 | end | |
41 | Model = script.Parent | |
42 | Turret = true | |
43 | Turreter = nil | |
44 | Controller = nil | |
45 | Controls = true | |
46 | TehList = {Person.Name, "Player"} | |
47 | ||
48 | GrassA = Instance.new("Part") | |
49 | GrassA.Parent = Model | |
50 | GrassA.Name = "GrassA" | |
51 | GrassA.TopSurface = 0 | |
52 | GrassA.BottomSurface = 0 | |
53 | GrassA.CanCollide = true | |
54 | GrassA.Anchored = false | |
55 | GrassA.Locked = true | |
56 | GrassA.BrickColor = BrickColor.new("Bright green") | |
57 | GrassA.formFactor = "Plate" | |
58 | GrassA.Size = Vector3.new(32, 0.4, 20) | |
59 | GrassA:BreakJoints() | |
60 | GrassB = Instance.new("Part") | |
61 | GrassB.Parent = Model | |
62 | GrassB.Name = "GrassB" | |
63 | GrassB.TopSurface = 0 | |
64 | GrassB.BottomSurface = 0 | |
65 | GrassB.CanCollide = true | |
66 | GrassB.Anchored = false | |
67 | GrassB.Locked = true | |
68 | GrassB.BrickColor = BrickColor.new("Bright green") | |
69 | GrassB.formFactor = "Plate" | |
70 | GrassB.Size = Vector3.new(48, 0.4, 14) | |
71 | GrassB:BreakJoints() | |
72 | Weld = Instance.new("Weld") | |
73 | Weld.Parent = GrassA | |
74 | Weld.Part0 = GrassA | |
75 | Weld.Part1 = GrassB | |
76 | Weld.C0 = CFrame.new(20, 0, 17) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
77 | GrassC = Instance.new("Part") | |
78 | GrassC.Parent = Model | |
79 | GrassC.Name = "GrassC" | |
80 | GrassC.TopSurface = 0 | |
81 | GrassC.BottomSurface = 0 | |
82 | GrassC.CanCollide = true | |
83 | GrassC.Anchored = false | |
84 | GrassC.Locked = true | |
85 | GrassC.BrickColor = BrickColor.new("Bright green") | |
86 | GrassC.formFactor = "Plate" | |
87 | GrassC.Size = Vector3.new(24, 0.4, 40) | |
88 | GrassC:BreakJoints() | |
89 | Weld = Instance.new("Weld") | |
90 | Weld.Parent = GrassA | |
91 | Weld.Part0 = GrassA | |
92 | Weld.Part1 = GrassC | |
93 | Weld.C0 = CFrame.new(-4, 0, 40) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
94 | GrassD = Instance.new("Part") | |
95 | GrassD.Parent = Model | |
96 | GrassD.Name = "GrassD" | |
97 | GrassD.TopSurface = 0 | |
98 | GrassD.BottomSurface = 0 | |
99 | GrassD.CanCollide = true | |
100 | GrassD.Anchored = false | |
101 | GrassD.Locked = true | |
102 | GrassD.BrickColor = BrickColor.new("Bright green") | |
103 | GrassD.formFactor = "Plate" | |
104 | GrassD.Size = Vector3.new(22, 0.4, 26) | |
105 | GrassD:BreakJoints() | |
106 | Weld = Instance.new("Weld") | |
107 | Weld.Parent = GrassA | |
108 | Weld.Part0 = GrassA | |
109 | Weld.Part1 = GrassD | |
110 | Weld.C0 = CFrame.new(19, 0, 47) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
111 | GrassE = Instance.new("Part") | |
112 | GrassE.Parent = Model | |
113 | GrassE.Name = "GrassE" | |
114 | GrassE.TopSurface = 0 | |
115 | GrassE.BottomSurface = 0 | |
116 | GrassE.CanCollide = true | |
117 | GrassE.Anchored = false | |
118 | GrassE.Locked = true | |
119 | GrassE.BrickColor = BrickColor.new("Bright green") | |
120 | GrassE.formFactor = "Plate" | |
121 | GrassE.Size = Vector3.new(14, 0.4, 36) | |
122 | GrassE:BreakJoints() | |
123 | Weld = Instance.new("Weld") | |
124 | Weld.Parent = GrassA | |
125 | Weld.Part0 = GrassA | |
126 | Weld.Part1 = GrassE | |
127 | Weld.C0 = CFrame.new(37, 0, 42) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
128 | GrassF = Instance.new("Part") | |
129 | GrassF.Parent = Model | |
130 | GrassF.Name = "GrassF" | |
131 | GrassF.TopSurface = 0 | |
132 | GrassF.BottomSurface = 0 | |
133 | GrassF.CanCollide = true | |
134 | GrassF.Anchored = false | |
135 | GrassF.Locked = true | |
136 | GrassF.BrickColor = BrickColor.new("Bright green") | |
137 | GrassF.formFactor = "Plate" | |
138 | GrassF.Size = Vector3.new(13, 0.4, 14) | |
139 | GrassF:BreakJoints() | |
140 | Weld = Instance.new("Weld") | |
141 | Weld.Parent = GrassA | |
142 | Weld.Part0 = GrassA | |
143 | Weld.Part1 = GrassF | |
144 | Weld.C0 = CFrame.new(50.5, 0, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
145 | --1.1775 | |
146 | SupportA = Instance.new("Part") | |
147 | SupportA.Parent = Model | |
148 | SupportA.Name = "SupportA" | |
149 | SupportA.TopSurface = 0 | |
150 | SupportA.BottomSurface = 0 | |
151 | SupportA.CanCollide = true | |
152 | SupportA.Anchored = false | |
153 | SupportA.Locked = true | |
154 | SupportA.BrickColor = BrickColor.new("Brown") | |
155 | SupportA.formFactor = "Symmetric" | |
156 | SupportA.Size = Vector3.new(32, 1, 20) | |
157 | SupportA:BreakJoints() | |
158 | Weld = Instance.new("Weld") | |
159 | Weld.Parent = GrassA | |
160 | Weld.Part0 = GrassA | |
161 | Weld.Part1 = SupportA | |
162 | Weld.C0 = CFrame.new(0, -0.7, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
163 | SupportB = Instance.new("Part") | |
164 | SupportB.Parent = Model | |
165 | SupportB.Name = "SupportB" | |
166 | SupportB.TopSurface = 0 | |
167 | SupportB.BottomSurface = 0 | |
168 | SupportB.CanCollide = true | |
169 | SupportB.Anchored = false | |
170 | SupportB.Locked = true | |
171 | SupportB.BrickColor = BrickColor.new("Brown") | |
172 | SupportB.formFactor = "Symmetric" | |
173 | SupportB.Size = Vector3.new(1, 18, 1) | |
174 | SupportB:BreakJoints() | |
175 | Weld = Instance.new("Weld") | |
176 | Weld.Parent = GrassA | |
177 | Weld.Part0 = GrassA | |
178 | Weld.Part1 = SupportB | |
179 | Weld.C0 = CFrame.new(0, -7, 4) * CFrame.fromEulerAnglesXYZ(-math.pi/4, 0, 0) | |
180 | SupportC = Instance.new("Part") | |
181 | SupportC.Parent = Model | |
182 | SupportC.Name = "SupportC" | |
183 | SupportC.TopSurface = 0 | |
184 | SupportC.BottomSurface = 0 | |
185 | SupportC.CanCollide = true | |
186 | SupportC.Anchored = false | |
187 | SupportC.Locked = true | |
188 | SupportC.BrickColor = BrickColor.new("Brown") | |
189 | SupportC.formFactor = "Symmetric" | |
190 | SupportC.Size = Vector3.new(1, 18, 1) | |
191 | SupportC:BreakJoints() | |
192 | Weld = Instance.new("Weld") | |
193 | Weld.Parent = GrassA | |
194 | Weld.Part0 = GrassA | |
195 | Weld.Part1 = SupportC | |
196 | Weld.C0 = CFrame.new(10, -7, 4) * CFrame.fromEulerAnglesXYZ(-math.pi/4, 0, 0) | |
197 | SupportD = Instance.new("Part") | |
198 | SupportD.Parent = Model | |
199 | SupportD.Name = "Supportd" | |
200 | SupportD.TopSurface = 0 | |
201 | SupportD.BottomSurface = 0 | |
202 | SupportD.CanCollide = true | |
203 | SupportD.Anchored = false | |
204 | SupportD.Locked = true | |
205 | SupportD.BrickColor = BrickColor.new("Brown") | |
206 | SupportD.formFactor = "Symmetric" | |
207 | SupportD.Size = Vector3.new(1, 18, 1) | |
208 | SupportD:BreakJoints() | |
209 | Weld = Instance.new("Weld") | |
210 | Weld.Parent = GrassA | |
211 | Weld.Part0 = GrassA | |
212 | Weld.Part1 = SupportD | |
213 | Weld.C0 = CFrame.new(-10, -7, 4) * CFrame.fromEulerAnglesXYZ(-math.pi/4, 0, 0) | |
214 | ||
215 | ||
216 | Stairs = Instance.new("Part") | |
217 | Stairs.Parent = Model | |
218 | Stairs.Name = "Stairs" | |
219 | Stairs.TopSurface = 0 | |
220 | Stairs.BottomSurface = 0 | |
221 | Stairs.CanCollide = true | |
222 | Stairs.Anchored = false | |
223 | Stairs.Locked = true | |
224 | Stairs.BrickColor = BrickColor.new("Brown") | |
225 | Stairs.formFactor = "Plate" | |
226 | Stairs.Size = Vector3.new(10, 0.4, 20) | |
227 | Stairs:BreakJoints() | |
228 | Weld = Instance.new("Weld") | |
229 | Weld.Parent = GrassA | |
230 | Weld.Part0 = GrassA | |
231 | Weld.Part1 = Stairs | |
232 | Weld.C0 = CFrame.new(-10, -7, 17) * CFrame.fromEulerAnglesXYZ(math.pi/4, 0, 0) | |
233 | WallA = Instance.new("WedgePart") | |
234 | WallA.Parent = Model | |
235 | WallA.Name = "WallA" | |
236 | WallA.TopSurface = 0 | |
237 | WallA.BottomSurface = 0 | |
238 | WallA.CanCollide = true | |
239 | WallA.Anchored = false | |
240 | WallA.Locked = true | |
241 | WallA.BrickColor = BrickColor.new("Brown") | |
242 | WallA.formFactor = "Symmetric" | |
243 | WallA.Size = Vector3.new(1, 10, 10) | |
244 | WallA:BreakJoints() | |
245 | Weld = Instance.new("Weld") | |
246 | Weld.Parent = GrassA | |
247 | Weld.Part0 = GrassA | |
248 | Weld.Part1 = WallA | |
249 | Weld.C0 = CFrame.new(-4.5, 4.8, 15) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
250 | RoofA = Instance.new("Part") | |
251 | RoofA.Parent = Model | |
252 | RoofA.Name = "RoofA" | |
253 | RoofA.TopSurface = 0 | |
254 | RoofA.BottomSurface = 0 | |
255 | RoofA.CanCollide = true | |
256 | RoofA.Anchored = false | |
257 | RoofA.Locked = true | |
258 | RoofA.BrickColor = BrickColor.new("Brown") | |
259 | RoofA.formFactor = "Plate" | |
260 | RoofA.Size = Vector3.new(12, 0.4, 20) | |
261 | RoofA:BreakJoints() | |
262 | MeshA = Instance.new("BlockMesh") | |
263 | MeshA.Parent = RoofA | |
264 | MeshA.Scale = Vector3.new(1, 1, 1) | |
265 | Weld = Instance.new("Weld") | |
266 | Weld.Parent = GrassA | |
267 | Weld.Part0 = WallA | |
268 | Weld.Part1 = RoofA | |
269 | Weld.C0 = CFrame.new(5.5, -2, -2) * CFrame.fromEulerAnglesXYZ(-(math.pi/4), 0, 0) | |
270 | WallB = Instance.new("WedgePart") | |
271 | WallB.Parent = Model | |
272 | WallB.Name = "WallB" | |
273 | WallB.TopSurface = 0 | |
274 | WallB.BottomSurface = 0 | |
275 | WallB.CanCollide = true | |
276 | WallB.Anchored = false | |
277 | WallB.Locked = true | |
278 | WallB.BrickColor = BrickColor.new("Brown") | |
279 | WallB.formFactor = "Symmetric" | |
280 | WallB.Size = Vector3.new(1, 10, 10) | |
281 | WallB:BreakJoints() | |
282 | Weld = Instance.new("Weld") | |
283 | Weld.Parent = GrassA | |
284 | Weld.Part0 = GrassA | |
285 | Weld.Part1 = WallB | |
286 | Weld.C0 = CFrame.new(-15.5, 4.8, 15) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
287 | Roof = Instance.new("WedgePart") | |
288 | Roof.Parent = Model | |
289 | Roof.Name = "Roof" | |
290 | Roof.TopSurface = 0 | |
291 | Roof.BottomSurface = 0 | |
292 | Roof.CanCollide = true | |
293 | Roof.Anchored = false | |
294 | Roof.Locked = true | |
295 | Roof.BrickColor = BrickColor.new("Brown") | |
296 | Roof.formFactor = "Symmetric" | |
297 | Roof.Size = Vector3.new(10, 1, 1) | |
298 | Roof:BreakJoints() | |
299 | Weld = Instance.new("Weld") | |
300 | Weld.Parent = GrassA | |
301 | Weld.Part0 = GrassA | |
302 | Weld.Part1 = Roof | |
303 | Weld.C0 = CFrame.new(-10, 9.3, 10.5) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
304 | FrontDoor = Instance.new("Part") | |
305 | FrontDoor.Parent = Model | |
306 | FrontDoor.Name = "FrontDoor" | |
307 | FrontDoor.TopSurface = 0 | |
308 | FrontDoor.BottomSurface = 0 | |
309 | FrontDoor.CanCollide = true | |
310 | FrontDoor.Anchored = false | |
311 | FrontDoor.Locked = true | |
312 | FrontDoor.BrickColor = BrickColor.new("Brown") | |
313 | FrontDoor.formFactor = "Symmetric" | |
314 | FrontDoor.Size = Vector3.new(10, 9, 1) | |
315 | FrontDoor:BreakJoints() | |
316 | Status = Instance.new("IntValue") | |
317 | Status.Parent = FrontDoor | |
318 | Status.Name = "Status" | |
319 | Status.Value = 1 | |
320 | Weld = Instance.new("Weld") | |
321 | Weld.Parent = GrassA | |
322 | Weld.Name = "FrontDoorWeld" | |
323 | Weld.Part0 = GrassA | |
324 | Weld.Part1 = FrontDoor | |
325 | Weld.C0 = CFrame.new(-10, -5.7, 10.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
326 | WallC = Instance.new("Part") | |
327 | WallC.Parent = Model | |
328 | WallC.Name = "WallC" | |
329 | WallC.TopSurface = 0 | |
330 | WallC.BottomSurface = 0 | |
331 | WallC.CanCollide = true | |
332 | WallC.Anchored = false | |
333 | WallC.Locked = true | |
334 | WallC.BrickColor = BrickColor.new("Brown") | |
335 | WallC.formFactor = "Symmetric" | |
336 | WallC.Size = Vector3.new(1, 14, 50) | |
337 | WallC:BreakJoints() | |
338 | Weld = Instance.new("Weld") | |
339 | Weld.Parent = GrassA | |
340 | Weld.Part0 = GrassA | |
341 | Weld.Part1 = WallC | |
342 | Weld.C0 = CFrame.new(-15.5, -7.2, 35) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
343 | WallD = Instance.new("Part") | |
344 | WallD.Parent = Model | |
345 | WallD.Name = "WallD" | |
346 | WallD.TopSurface = 0 | |
347 | WallD.BottomSurface = 0 | |
348 | WallD.CanCollide = true | |
349 | WallD.Anchored = false | |
350 | WallD.Locked = true | |
351 | WallD.BrickColor = BrickColor.new("Brown") | |
352 | WallD.formFactor = "Symmetric" | |
353 | WallD.Size = Vector3.new(1, 14, 14) | |
354 | WallD:BreakJoints() | |
355 | Weld = Instance.new("Weld") | |
356 | Weld.Parent = GrassA | |
357 | Weld.Part0 = GrassA | |
358 | Weld.Part1 = WallD | |
359 | Weld.C0 = CFrame.new(-4.5, -7.2, 17) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
360 | FloorA = Instance.new("Part") | |
361 | FloorA.Parent = Model | |
362 | FloorA.Name = "FloorA" | |
363 | FloorA.TopSurface = 0 | |
364 | FloorA.BottomSurface = 0 | |
365 | FloorA.CanCollide = true | |
366 | FloorA.Anchored = false | |
367 | FloorA.Locked = true | |
368 | FloorA.BrickColor = BrickColor.new("Brown") | |
369 | FloorA.formFactor = "Plate" | |
370 | FloorA.Size = Vector3.new(60, 0.4, 50) | |
371 | FloorA:BreakJoints() | |
372 | Weld = Instance.new("Weld") | |
373 | Weld.Parent = GrassA | |
374 | Weld.Part0 = GrassA | |
375 | Weld.Part1 = FloorA | |
376 | Weld.C0 = CFrame.new(14, -14, 35) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
377 | WallE = Instance.new("WedgePart") | |
378 | WallE.Parent = Model | |
379 | WallE.Name = "WallE" | |
380 | WallE.TopSurface = 0 | |
381 | WallE.BottomSurface = 0 | |
382 | WallE.CanCollide = true | |
383 | WallE.Anchored = false | |
384 | WallE.Locked = true | |
385 | WallE.BrickColor = BrickColor.new("Brown") | |
386 | WallE.formFactor = "Symmetric" | |
387 | WallE.Size = Vector3.new(12, 4, 4) | |
388 | WallE:BreakJoints() | |
389 | Weld = Instance.new("Weld") | |
390 | Weld.Parent = GrassA | |
391 | Weld.Part0 = GrassA | |
392 | Weld.Part1 = WallE | |
393 | Weld.C0 = CFrame.new(-10, -2.2, 22) * CFrame.fromEulerAnglesXYZ(math.pi, math.pi, 0) | |
394 | WallF = Instance.new("Part") | |
395 | WallF.Parent = Model | |
396 | WallF.Name = "WallF" | |
397 | WallF.TopSurface = 0 | |
398 | WallF.BottomSurface = 0 | |
399 | WallF.CanCollide = true | |
400 | WallF.Anchored = false | |
401 | WallF.Locked = true | |
402 | WallF.BrickColor = BrickColor.new("Brown") | |
403 | WallF.formFactor = "Symmetric" | |
404 | WallF.Size = Vector3.new(60, 14, 1) | |
405 | WallF:BreakJoints() | |
406 | Weld = Instance.new("Weld") | |
407 | Weld.Parent = GrassA | |
408 | Weld.Part0 = GrassA | |
409 | Weld.Part1 = WallF | |
410 | Weld.C0 = CFrame.new(14, -7.2, 10.5) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
411 | WallG = Instance.new("Part") | |
412 | WallG.Parent = Model | |
413 | WallG.Name = "WallG" | |
414 | WallG.TopSurface = 0 | |
415 | WallG.BottomSurface = 0 | |
416 | WallG.CanCollide = true | |
417 | WallG.Anchored = false | |
418 | WallG.Locked = true | |
419 | WallG.BrickColor = BrickColor.new("Brown") | |
420 | WallG.formFactor = "Symmetric" | |
421 | WallG.Size = Vector3.new(1, 14, 20) | |
422 | WallG:BreakJoints() | |
423 | Weld = Instance.new("Weld") | |
424 | Weld.Parent = GrassA | |
425 | Weld.Part0 = GrassA | |
426 | Weld.Part1 = WallG | |
427 | Weld.C0 = CFrame.new(43.5, -7.2, 20) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
428 | WallH = Instance.new("WedgePart") | |
429 | WallH.Parent = Model | |
430 | WallH.Name = "WallH" | |
431 | WallH.TopSurface = 0 | |
432 | WallH.BottomSurface = 0 | |
433 | WallH.CanCollide = true | |
434 | WallH.Anchored = false | |
435 | WallH.Locked = true | |
436 | WallH.BrickColor = BrickColor.new("Brown") | |
437 | WallH.formFactor = "Symmetric" | |
438 | WallH.Size = Vector3.new(1, 14, 14) | |
439 | WallH:BreakJoints() | |
440 | Weld = Instance.new("Weld") | |
441 | Weld.Parent = GrassA | |
442 | Weld.Part0 = GrassA | |
443 | Weld.Part1 = WallH | |
444 | Weld.C0 = CFrame.new(50, -7.2, 29.5) * CFrame.fromEulerAnglesXYZ(0, -(math.pi/2), math.pi) | |
445 | WindowA = Instance.new("Part") | |
446 | WindowA.Parent = Model | |
447 | WindowA.Name = "WindowA" | |
448 | WindowA.TopSurface = 0 | |
449 | WindowA.BottomSurface = 0 | |
450 | WindowA.CanCollide = true | |
451 | WindowA.Anchored = false | |
452 | WindowA.Locked = true | |
453 | WindowA.BrickColor = BrickColor.new("Medium blue") | |
454 | WindowA.Transparency = 0.5 | |
455 | WindowA.formFactor = "Plate" | |
456 | WindowA.Size = Vector3.new(20, 1, 14) | |
457 | WindowA:BreakJoints() | |
458 | MeshD = Instance.new("BlockMesh") | |
459 | MeshD.Parent = WindowA | |
460 | MeshD.Scale = Vector3.new(0.98, 1, 0.9) | |
461 | Status = Instance.new("IntValue") | |
462 | Status.Parent = WindowA | |
463 | Status.Name = "Status" | |
464 | Status.Value = 1 | |
465 | Weld = Instance.new("Weld") | |
466 | Weld.Parent = GrassA | |
467 | Weld.Name = "WindowAWeld" | |
468 | Weld.Part0 = WallH | |
469 | Weld.Part1 = WindowA | |
470 | F1 = WallH.CFrame * CFrame.new(-6.5, -7, -7) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, math.pi/4) | |
471 | F2 = F1 * CFrame.new(0.2, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
472 | HitPos = WallH.Position | |
473 | CJ = CFrame.new(HitPos) | |
474 | C0 = WallH.CFrame:inverse() *CJ | |
475 | C1 = F2:inverse() * CJ | |
476 | Weld.C0 = C0 | |
477 | Weld.C1 = C1 | |
478 | WallI = Instance.new("WedgePart") | |
479 | WallI.Parent = Model | |
480 | WallI.Name = "WallI" | |
481 | WallI.TopSurface = 0 | |
482 | WallI.BottomSurface = 0 | |
483 | WallI.CanCollide = true | |
484 | WallI.Anchored = false | |
485 | WallI.Locked = true | |
486 | WallI.BrickColor = BrickColor.new("Brown") | |
487 | WallI.formFactor = "Symmetric" | |
488 | WallI.Size = Vector3.new(1, 14, 14) | |
489 | WallI:BreakJoints() | |
490 | Weld = Instance.new("Weld") | |
491 | Weld.Parent = GrassA | |
492 | Weld.Part0 = GrassA | |
493 | Weld.Part1 = WallI | |
494 | Weld.C0 = CFrame.new(50, -7.2, 42.5) * CFrame.fromEulerAnglesXYZ(0, -(math.pi/2), math.pi) | |
495 | WallJ = Instance.new("Part") | |
496 | WallJ.Parent = Model | |
497 | WallJ.Name = "WallJ" | |
498 | WallJ.TopSurface = 0 | |
499 | WallJ.BottomSurface = 0 | |
500 | WallJ.CanCollide = true | |
501 | WallJ.Anchored = false | |
502 | WallJ.Locked = true | |
503 | WallJ.BrickColor = BrickColor.new("Brown") | |
504 | WallJ.formFactor = "Symmetric" | |
505 | WallJ.Size = Vector3.new(1, 14, 18) | |
506 | WallJ:BreakJoints() | |
507 | Weld = Instance.new("Weld") | |
508 | Weld.Parent = GrassA | |
509 | Weld.Part0 = GrassA | |
510 | Weld.Part1 = WallJ | |
511 | Weld.C0 = CFrame.new(43.5, -7.2, 51) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
512 | WallK = Instance.new("Part") | |
513 | WallK.Parent = Model | |
514 | WallK.Name = "WallK" | |
515 | WallK.TopSurface = 0 | |
516 | WallK.BottomSurface = 0 | |
517 | WallK.CanCollide = true | |
518 | WallK.Anchored = false | |
519 | WallK.Locked = true | |
520 | WallK.BrickColor = BrickColor.new("Brown") | |
521 | WallK.formFactor = "Symmetric" | |
522 | WallK.Size = Vector3.new(60, 14, 1) | |
523 | WallK:BreakJoints() | |
524 | Weld = Instance.new("Weld") | |
525 | Weld.Parent = GrassA | |
526 | Weld.Part0 = GrassA | |
527 | Weld.Part1 = WallK | |
528 | Weld.C0 = CFrame.new(14, -7.2, 59.5) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
529 | RoofB = Instance.new("Part") | |
530 | RoofB.Parent = Model | |
531 | RoofB.Name = "RoofB" | |
532 | RoofB.TopSurface = 0 | |
533 | RoofB.BottomSurface = 0 | |
534 | RoofB.CanCollide = true | |
535 | RoofB.Anchored = false | |
536 | RoofB.Locked = true | |
537 | RoofB.BrickColor = BrickColor.new("Brown") | |
538 | RoofB.formFactor = "Plate" | |
539 | RoofB.Size = Vector3.new(14, 0.4, 14) | |
540 | RoofB:BreakJoints() | |
541 | Weld = Instance.new("Weld") | |
542 | Weld.Parent = GrassA | |
543 | Weld.Part0 = GrassA | |
544 | Weld.Part1 = RoofB | |
545 | Weld.C0 = CFrame.new(50, -0.4, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
546 | RoofC = Instance.new("Part") | |
547 | RoofC.Parent = Model | |
548 | RoofC.Name = "RoofC" | |
549 | RoofC.TopSurface = 0 | |
550 | RoofC.BottomSurface = 0 | |
551 | RoofC.CanCollide = true | |
552 | RoofC.Anchored = false | |
553 | RoofC.Locked = true | |
554 | RoofC.BrickColor = BrickColor.new("Brown") | |
555 | RoofC.formFactor = "Plate" | |
556 | RoofC.Size = Vector3.new(14, 0.4, 50) | |
557 | RoofC:BreakJoints() | |
558 | Weld = Instance.new("Weld") | |
559 | Weld.Parent = GrassA | |
560 | Weld.Part0 = GrassA | |
561 | Weld.Part1 = RoofC | |
562 | Weld.C0 = CFrame.new(37, -0.4, 35) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
563 | RoofD = Instance.new("Part") | |
564 | RoofD.Parent = Model | |
565 | RoofD.Name = "RoofD" | |
566 | RoofD.TopSurface = 0 | |
567 | RoofD.BottomSurface = 0 | |
568 | RoofD.CanCollide = true | |
569 | RoofD.Anchored = false | |
570 | RoofD.Locked = true | |
571 | RoofD.BrickColor = BrickColor.new("Brown") | |
572 | RoofD.formFactor = "Plate" | |
573 | RoofD.Size = Vector3.new(48, 0.4, 14) | |
574 | RoofD:BreakJoints() | |
575 | Weld = Instance.new("Weld") | |
576 | Weld.Parent = GrassA | |
577 | Weld.Part0 = GrassA | |
578 | Weld.Part1 = RoofD | |
579 | Weld.C0 = CFrame.new(20, -0.4, 17) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
580 | WallL = Instance.new("WedgePart") | |
581 | WallL.Parent = Model | |
582 | WallL.Name = "WallL" | |
583 | WallL.TopSurface = 0 | |
584 | WallL.BottomSurface = 0 | |
585 | WallL.CanCollide = true | |
586 | WallL.Anchored = false | |
587 | WallL.Locked = true | |
588 | WallL.BrickColor = BrickColor.new("Brown") | |
589 | WallL.formFactor = "Symmetric" | |
590 | WallL.Size = Vector3.new(1, 3, 3) | |
591 | WallL:BreakJoints() | |
592 | Weld = Instance.new("Weld") | |
593 | Weld.Parent = GrassA | |
594 | Weld.Part0 = GrassA | |
595 | Weld.Part1 = WallL | |
596 | Weld.C0 = CFrame.new(29, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, -(math.pi/2), 0) | |
597 | WallM = Instance.new("WedgePart") | |
598 | WallM.Parent = Model | |
599 | WallM.Name = "WallM" | |
600 | WallM.TopSurface = 0 | |
601 | WallM.BottomSurface = 0 | |
602 | WallM.CanCollide = true | |
603 | WallM.Anchored = false | |
604 | WallM.Locked = true | |
605 | WallM.BrickColor = BrickColor.new("Brown") | |
606 | WallM.formFactor = "Symmetric" | |
607 | WallM.Size = Vector3.new(1, 3, 3) | |
608 | WallM:BreakJoints() | |
609 | Weld = Instance.new("Weld") | |
610 | Weld.Parent = GrassA | |
611 | Weld.Part0 = GrassA | |
612 | Weld.Part1 = WallM | |
613 | Weld.C0 = CFrame.new(29, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, -(math.pi/2), 0) | |
614 | WallN = Instance.new("WedgePart") | |
615 | WallN.Parent = Model | |
616 | WallN.Name = "WallN" | |
617 | WallN.TopSurface = 0 | |
618 | WallN.BottomSurface = 0 | |
619 | WallN.CanCollide = true | |
620 | WallN.Anchored = false | |
621 | WallN.Locked = true | |
622 | WallN.BrickColor = BrickColor.new("Brown") | |
623 | WallN.formFactor = "Symmetric" | |
624 | WallN.Size = Vector3.new(1, 3, 3) | |
625 | WallN:BreakJoints() | |
626 | Weld = Instance.new("Weld") | |
627 | Weld.Parent = GrassA | |
628 | Weld.Part0 = GrassA | |
629 | Weld.Part1 = WallN | |
630 | Weld.C0 = CFrame.new(9, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) | |
631 | WallO = Instance.new("WedgePart") | |
632 | WallO.Parent = Model | |
633 | WallO.Name = "WallO" | |
634 | WallO.TopSurface = 0 | |
635 | WallO.BottomSurface = 0 | |
636 | WallO.CanCollide = true | |
637 | WallO.Anchored = false | |
638 | WallO.Locked = true | |
639 | WallO.BrickColor = BrickColor.new("Brown") | |
640 | WallO.formFactor = "Symmetric" | |
641 | WallO.Size = Vector3.new(1, 3, 3) | |
642 | WallO:BreakJoints() | |
643 | Weld = Instance.new("Weld") | |
644 | Weld.Parent = GrassA | |
645 | Weld.Part0 = GrassA | |
646 | Weld.Part1 = WallO | |
647 | Weld.C0 = CFrame.new(9, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) | |
648 | RoofE = Instance.new("Part") | |
649 | RoofE.Parent = Model | |
650 | RoofE.Name = "RoofE" | |
651 | RoofE.TopSurface = 0 | |
652 | RoofE.BottomSurface = 0 | |
653 | RoofE.CanCollide = true | |
654 | RoofE.Anchored = false | |
655 | RoofE.Locked = true | |
656 | RoofE.BrickColor = BrickColor.new("Brown") | |
657 | RoofE.formFactor = "Plate" | |
658 | RoofE.Size = Vector3.new(24, 0.4, 36) | |
659 | RoofE:BreakJoints() | |
660 | Weld = Instance.new("Weld") | |
661 | Weld.Parent = GrassA | |
662 | Weld.Part0 = GrassA | |
663 | Weld.Part1 = RoofE | |
664 | Weld.C0 = CFrame.new(-4, -0.4, 42) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
665 | RoofF = Instance.new("Part") | |
666 | RoofF.Parent = Model | |
667 | RoofF.Name = "RoofF" | |
668 | RoofF.TopSurface = 0 | |
669 | RoofF.BottomSurface = 0 | |
670 | RoofF.CanCollide = true | |
671 | RoofF.Anchored = false | |
672 | RoofF.Locked = true | |
673 | RoofF.BrickColor = BrickColor.new("Brown") | |
674 | RoofF.formFactor = "Plate" | |
675 | RoofF.Size = Vector3.new(22, 0.4, 26) | |
676 | RoofF:BreakJoints() | |
677 | Weld = Instance.new("Weld") | |
678 | Weld.Parent = GrassA | |
679 | Weld.Part0 = GrassA | |
680 | Weld.Part1 = RoofF | |
681 | Weld.C0 = CFrame.new(19, -0.4, 47) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
682 | WallP = Instance.new("Part") | |
683 | WallP.Parent = Model | |
684 | WallP.Name = "WallP" | |
685 | WallP.TopSurface = 0 | |
686 | WallP.BottomSurface = 0 | |
687 | WallP.CanCollide = true | |
688 | WallP.Anchored = false | |
689 | WallP.Locked = true | |
690 | WallP.BrickColor = BrickColor.new("Brown") | |
691 | WallP.formFactor = "Symmetric" | |
692 | WallP.Size = Vector3.new(1, 3, 1) | |
693 | WallP:BreakJoints() | |
694 | Mesh = Instance.new("BlockMesh") | |
695 | Mesh.Parent = WallP | |
696 | Mesh.Scale = Vector3.new(1, 1, 1) | |
697 | Weld = Instance.new("Weld") | |
698 | Weld.Parent = GrassA | |
699 | Weld.Part0 = GrassA | |
700 | Weld.Part1 = WallP | |
701 | Weld.C0 = CFrame.new(27, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
702 | WindowB = Instance.new("Part") | |
703 | WindowB.Parent = Model | |
704 | WindowB.Name = "WindowB" | |
705 | WindowB.TopSurface = 0 | |
706 | WindowB.BottomSurface = 0 | |
707 | WindowB.CanCollide = true | |
708 | WindowB.Anchored = false | |
709 | WindowB.Locked = true | |
710 | WindowB.BrickColor = BrickColor.new("Medium blue") | |
711 | WindowB.Transparency = 0.5 | |
712 | WindowB.formFactor = "Symmetric" | |
713 | WindowB.Size = Vector3.new(3, 3, 1) | |
714 | WindowB:BreakJoints() | |
715 | Mesh = Instance.new("BlockMesh") | |
716 | Mesh.Parent = WindowB | |
717 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
718 | Weld = Instance.new("Weld") | |
719 | Weld.Parent = GrassA | |
720 | Weld.Name = "WindowWeld" | |
721 | Weld.Part0 = GrassA | |
722 | Weld.Part1 = WindowB | |
723 | Weld.C0 = CFrame.new(25, 0.9, 24.25) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
724 | WallQ = Instance.new("Part") | |
725 | WallQ.Parent = Model | |
726 | WallQ.Name = "WallQ" | |
727 | WallQ.TopSurface = 0 | |
728 | WallQ.BottomSurface = 0 | |
729 | WallQ.CanCollide = true | |
730 | WallQ.Anchored = false | |
731 | WallQ.Locked = true | |
732 | WallQ.BrickColor = BrickColor.new("Brown") | |
733 | WallQ.formFactor = "Symmetric" | |
734 | WallQ.Size = Vector3.new(1, 3, 1) | |
735 | WallQ:BreakJoints() | |
736 | Mesh = Instance.new("BlockMesh") | |
737 | Mesh.Parent = WallQ | |
738 | Mesh.Scale = Vector3.new(1, 1, 1) | |
739 | Weld = Instance.new("Weld") | |
740 | Weld.Parent = GrassA | |
741 | Weld.Part0 = GrassA | |
742 | Weld.Part1 = WallQ | |
743 | Weld.C0 = CFrame.new(23, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
744 | WindowC = Instance.new("Part") | |
745 | WindowC.Parent = Model | |
746 | WindowC.Name = "WindowC" | |
747 | WindowC.TopSurface = 0 | |
748 | WindowC.BottomSurface = 0 | |
749 | WindowC.CanCollide = true | |
750 | WindowC.Anchored = false | |
751 | WindowC.Locked = true | |
752 | WindowC.BrickColor = BrickColor.new("Medium blue") | |
753 | WindowC.Transparency = 0.5 | |
754 | WindowC.formFactor = "Symmetric" | |
755 | WindowC.Size = Vector3.new(3, 3, 1) | |
756 | WindowC:BreakJoints() | |
757 | Mesh = Instance.new("BlockMesh") | |
758 | Mesh.Parent = WindowC | |
759 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
760 | Weld = Instance.new("Weld") | |
761 | Weld.Parent = GrassA | |
762 | Weld.Name = "WindowWeld" | |
763 | Weld.Part0 = GrassA | |
764 | Weld.Part1 = WindowC | |
765 | Weld.C0 = CFrame.new(21, 0.9, 24.25) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
766 | WallR = Instance.new("Part") | |
767 | WallR.Parent = Model | |
768 | WallR.Name = "WallR" | |
769 | WallR.TopSurface = 0 | |
770 | WallR.BottomSurface = 0 | |
771 | WallR.CanCollide = true | |
772 | WallR.Anchored = false | |
773 | WallR.Locked = true | |
774 | WallR.BrickColor = BrickColor.new("Brown") | |
775 | WallR.formFactor = "Symmetric" | |
776 | WallR.Size = Vector3.new(1, 3, 1) | |
777 | WallR:BreakJoints() | |
778 | Mesh = Instance.new("BlockMesh") | |
779 | Mesh.Parent = WallR | |
780 | Mesh.Scale = Vector3.new(1, 1, 1) | |
781 | Weld = Instance.new("Weld") | |
782 | Weld.Parent = GrassA | |
783 | Weld.Part0 = GrassA | |
784 | Weld.Part1 = WallR | |
785 | Weld.C0 = CFrame.new(19, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
786 | WindowD = Instance.new("Part") | |
787 | WindowD.Parent = Model | |
788 | WindowD.Name = "WindowD" | |
789 | WindowD.TopSurface = 0 | |
790 | WindowD.BottomSurface = 0 | |
791 | WindowD.CanCollide = true | |
792 | WindowD.Anchored = false | |
793 | WindowD.Locked = true | |
794 | WindowD.BrickColor = BrickColor.new("Medium blue") | |
795 | WindowD.Transparency = 0.5 | |
796 | WindowD.formFactor = "Symmetric" | |
797 | WindowD.Size = Vector3.new(3, 3, 1) | |
798 | WindowD:BreakJoints() | |
799 | Mesh = Instance.new("BlockMesh") | |
800 | Mesh.Parent = WindowD | |
801 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
802 | Weld = Instance.new("Weld") | |
803 | Weld.Parent = GrassA | |
804 | Weld.Name = "WindowWeld" | |
805 | Weld.Part0 = GrassA | |
806 | Weld.Part1 = WindowD | |
807 | Weld.C0 = CFrame.new(17, 0.9, 24.25) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
808 | WallS = Instance.new("Part") | |
809 | WallS.Parent = Model | |
810 | WallS.Name = "WallS" | |
811 | WallS.TopSurface = 0 | |
812 | WallS.BottomSurface = 0 | |
813 | WallS.CanCollide = true | |
814 | WallS.Anchored = false | |
815 | WallS.Locked = true | |
816 | WallS.BrickColor = BrickColor.new("Brown") | |
817 | WallS.formFactor = "Symmetric" | |
818 | WallS.Size = Vector3.new(1, 3, 1) | |
819 | WallS:BreakJoints() | |
820 | Mesh = Instance.new("BlockMesh") | |
821 | Mesh.Parent = WallS | |
822 | Mesh.Scale = Vector3.new(1, 1, 1) | |
823 | Weld = Instance.new("Weld") | |
824 | Weld.Parent = GrassA | |
825 | Weld.Part0 = GrassA | |
826 | Weld.Part1 = WallS | |
827 | Weld.C0 = CFrame.new(15, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
828 | WindowE = Instance.new("Part") | |
829 | WindowE.Parent = Model | |
830 | WindowE.Name = "WindowE" | |
831 | WindowE.TopSurface = 0 | |
832 | WindowE.BottomSurface = 0 | |
833 | WindowE.CanCollide = true | |
834 | WindowE.Anchored = false | |
835 | WindowE.Locked = true | |
836 | WindowE.BrickColor = BrickColor.new("Medium blue") | |
837 | WindowE.Transparency = 0.5 | |
838 | WindowE.formFactor = "Symmetric" | |
839 | WindowE.Size = Vector3.new(3, 3, 1) | |
840 | WindowE:BreakJoints() | |
841 | Mesh = Instance.new("BlockMesh") | |
842 | Mesh.Parent = WindowE | |
843 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
844 | Weld = Instance.new("Weld") | |
845 | Weld.Parent = GrassA | |
846 | Weld.Name = "WindowWeld" | |
847 | Weld.Part0 = GrassA | |
848 | Weld.Part1 = WindowE | |
849 | Weld.C0 = CFrame.new(13, 0.9, 24.25) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
850 | WallT = Instance.new("Part") | |
851 | WallT.Parent = Model | |
852 | WallT.Name = "WallT" | |
853 | WallT.TopSurface = 0 | |
854 | WallT.BottomSurface = 0 | |
855 | WallT.CanCollide = true | |
856 | WallT.Anchored = false | |
857 | WallT.Locked = true | |
858 | WallT.BrickColor = BrickColor.new("Brown") | |
859 | WallT.formFactor = "Symmetric" | |
860 | WallT.Size = Vector3.new(1, 3, 1) | |
861 | WallT:BreakJoints() | |
862 | Mesh = Instance.new("BlockMesh") | |
863 | Mesh.Parent = WallT | |
864 | Mesh.Scale = Vector3.new(1, 1, 1) | |
865 | Weld = Instance.new("Weld") | |
866 | Weld.Parent = GrassA | |
867 | Weld.Part0 = GrassA | |
868 | Weld.Part1 = WallT | |
869 | Weld.C0 = CFrame.new(11, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
870 | WallU = Instance.new("Part") | |
871 | WallU.Parent = Model | |
872 | WallU.Name = "WallU" | |
873 | WallU.TopSurface = 0 | |
874 | WallU.BottomSurface = 0 | |
875 | WallU.CanCollide = true | |
876 | WallU.Anchored = false | |
877 | WallU.Locked = true | |
878 | WallU.BrickColor = BrickColor.new("Brown") | |
879 | WallU.formFactor = "Symmetric" | |
880 | WallU.Size = Vector3.new(1, 3, 1) | |
881 | WallU:BreakJoints() | |
882 | Mesh = Instance.new("BlockMesh") | |
883 | Mesh.Parent = WallU | |
884 | Mesh.Scale = Vector3.new(1, 1, 1) | |
885 | Weld = Instance.new("Weld") | |
886 | Weld.Parent = GrassA | |
887 | Weld.Part0 = GrassA | |
888 | Weld.Part1 = WallU | |
889 | Weld.C0 = CFrame.new(27, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
890 | WindowF = Instance.new("Part") | |
891 | WindowF.Parent = Model | |
892 | WindowF.Name = "WindowF" | |
893 | WindowF.TopSurface = 0 | |
894 | WindowF.BottomSurface = 0 | |
895 | WindowF.CanCollide = true | |
896 | WindowF.Anchored = false | |
897 | WindowF.Locked = true | |
898 | WindowF.BrickColor = BrickColor.new("Medium blue") | |
899 | WindowF.Transparency = 0.5 | |
900 | WindowF.formFactor = "Symmetric" | |
901 | WindowF.Size = Vector3.new(3, 3, 1) | |
902 | WindowF:BreakJoints() | |
903 | Mesh = Instance.new("BlockMesh") | |
904 | Mesh.Parent = WindowF | |
905 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
906 | Weld = Instance.new("Weld") | |
907 | Weld.Parent = GrassA | |
908 | Weld.Name = "WindowWeld" | |
909 | Weld.Part0 = GrassA | |
910 | Weld.Part1 = WindowF | |
911 | Weld.C0 = CFrame.new(25, 0.9, 33.75) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
912 | WallV = Instance.new("Part") | |
913 | WallV.Parent = Model | |
914 | WallV.Name = "WallV" | |
915 | WallV.TopSurface = 0 | |
916 | WallV.BottomSurface = 0 | |
917 | WallV.CanCollide = true | |
918 | WallV.Anchored = false | |
919 | WallV.Locked = true | |
920 | WallV.BrickColor = BrickColor.new("Brown") | |
921 | WallV.formFactor = "Symmetric" | |
922 | WallV.Size = Vector3.new(1, 3, 1) | |
923 | WallV:BreakJoints() | |
924 | Mesh = Instance.new("BlockMesh") | |
925 | Mesh.Parent = WallV | |
926 | Mesh.Scale = Vector3.new(1, 1, 1) | |
927 | Weld = Instance.new("Weld") | |
928 | Weld.Parent = GrassA | |
929 | Weld.Part0 = GrassA | |
930 | Weld.Part1 = WallV | |
931 | Weld.C0 = CFrame.new(23, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
932 | WindowG = Instance.new("Part") | |
933 | WindowG.Parent = Model | |
934 | WindowG.Name = "WindowG" | |
935 | WindowG.TopSurface = 0 | |
936 | WindowG.BottomSurface = 0 | |
937 | WindowG.CanCollide = true | |
938 | WindowG.Anchored = false | |
939 | WindowG.Locked = true | |
940 | WindowG.BrickColor = BrickColor.new("Medium blue") | |
941 | WindowG.Transparency = 0.5 | |
942 | WindowG.formFactor = "Symmetric" | |
943 | WindowG.Size = Vector3.new(3, 3, 1) | |
944 | WindowG:BreakJoints() | |
945 | Mesh = Instance.new("BlockMesh") | |
946 | Mesh.Parent = WindowG | |
947 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
948 | Weld = Instance.new("Weld") | |
949 | Weld.Parent = GrassA | |
950 | Weld.Name = "WindowWeld" | |
951 | Weld.Part0 = GrassA | |
952 | Weld.Part1 = WindowG | |
953 | Weld.C0 = CFrame.new(21, 0.9, 33.75) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
954 | WallW = Instance.new("Part") | |
955 | WallW.Parent = Model | |
956 | WallW.Name = "WallW" | |
957 | WallW.TopSurface = 0 | |
958 | WallW.BottomSurface = 0 | |
959 | WallW.CanCollide = true | |
960 | WallW.Anchored = false | |
961 | WallW.Locked = true | |
962 | WallW.BrickColor = BrickColor.new("Brown") | |
963 | WallW.formFactor = "Symmetric" | |
964 | WallW.Size = Vector3.new(1, 3, 1) | |
965 | WallW:BreakJoints() | |
966 | Mesh = Instance.new("BlockMesh") | |
967 | Mesh.Parent = WallW | |
968 | Mesh.Scale = Vector3.new(1, 1, 1) | |
969 | Weld = Instance.new("Weld") | |
970 | Weld.Parent = GrassA | |
971 | Weld.Part0 = GrassA | |
972 | Weld.Part1 = WallW | |
973 | Weld.C0 = CFrame.new(19, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
974 | WindowH = Instance.new("Part") | |
975 | WindowH.Parent = Model | |
976 | WindowH.Name = "WindowH" | |
977 | WindowH.TopSurface = 0 | |
978 | WindowH.BottomSurface = 0 | |
979 | WindowH.CanCollide = true | |
980 | WindowH.Anchored = false | |
981 | WindowH.Locked = true | |
982 | WindowH.BrickColor = BrickColor.new("Medium blue") | |
983 | WindowH.Transparency = 0.5 | |
984 | WindowH.formFactor = "Symmetric" | |
985 | WindowH.Size = Vector3.new(3, 3, 1) | |
986 | WindowH:BreakJoints() | |
987 | Mesh = Instance.new("BlockMesh") | |
988 | Mesh.Parent = WindowH | |
989 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
990 | Weld = Instance.new("Weld") | |
991 | Weld.Parent = GrassA | |
992 | Weld.Name = "WindowWeld" | |
993 | Weld.Part0 = GrassA | |
994 | Weld.Part1 = WindowH | |
995 | Weld.C0 = CFrame.new(17, 0.9, 33.75) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
996 | WallX = Instance.new("Part") | |
997 | WallX.Parent = Model | |
998 | WallX.Name = "WallX" | |
999 | WallX.TopSurface = 0 | |
1000 | WallX.BottomSurface = 0 | |
1001 | WallX.CanCollide = true | |
1002 | WallX.Anchored = false | |
1003 | WallX.Locked = true | |
1004 | WallX.BrickColor = BrickColor.new("Brown") | |
1005 | WallX.formFactor = "Symmetric" | |
1006 | WallX.Size = Vector3.new(1, 3, 1) | |
1007 | WallX:BreakJoints() | |
1008 | Mesh = Instance.new("BlockMesh") | |
1009 | Mesh.Parent = WallX | |
1010 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1011 | Weld = Instance.new("Weld") | |
1012 | Weld.Parent = GrassA | |
1013 | Weld.Part0 = GrassA | |
1014 | Weld.Part1 = WallX | |
1015 | Weld.C0 = CFrame.new(15, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1016 | WindowI = Instance.new("Part") | |
1017 | WindowI.Parent = Model | |
1018 | WindowI.Name = "WindowI" | |
1019 | WindowI.TopSurface = 0 | |
1020 | WindowI.BottomSurface = 0 | |
1021 | WindowI.CanCollide = true | |
1022 | WindowI.Anchored = false | |
1023 | WindowI.Locked = true | |
1024 | WindowI.BrickColor = BrickColor.new("Medium blue") | |
1025 | WindowI.Transparency = 0.5 | |
1026 | WindowI.formFactor = "Symmetric" | |
1027 | WindowI.Size = Vector3.new(3, 3, 1) | |
1028 | WindowI:BreakJoints() | |
1029 | Mesh = Instance.new("BlockMesh") | |
1030 | Mesh.Parent = WindowI | |
1031 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
1032 | Weld = Instance.new("Weld") | |
1033 | Weld.Parent = GrassA | |
1034 | Weld.Name = "WindowWeld" | |
1035 | Weld.Part0 = GrassA | |
1036 | Weld.Part1 = WindowI | |
1037 | Weld.C0 = CFrame.new(13, 0.9, 33.75) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1038 | WallY = Instance.new("Part") | |
1039 | WallY.Parent = Model | |
1040 | WallY.Name = "WallY" | |
1041 | WallY.TopSurface = 0 | |
1042 | WallY.BottomSurface = 0 | |
1043 | WallY.CanCollide = true | |
1044 | WallY.Anchored = false | |
1045 | WallY.Locked = true | |
1046 | WallY.BrickColor = BrickColor.new("Brown") | |
1047 | WallY.formFactor = "Symmetric" | |
1048 | WallY.Size = Vector3.new(1, 3, 1) | |
1049 | WallY:BreakJoints() | |
1050 | Mesh = Instance.new("BlockMesh") | |
1051 | Mesh.Parent = WallY | |
1052 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1053 | Weld = Instance.new("Weld") | |
1054 | Weld.Parent = GrassA | |
1055 | Weld.Part0 = GrassA | |
1056 | Weld.Part1 = WallY | |
1057 | Weld.C0 = CFrame.new(11, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1058 | RoofG = Instance.new("Part") | |
1059 | RoofG.Parent = Model | |
1060 | RoofG.Name = "RoofG" | |
1061 | RoofG.TopSurface = 0 | |
1062 | RoofG.BottomSurface = 0 | |
1063 | RoofG.CanCollide = true | |
1064 | RoofG.Anchored = false | |
1065 | RoofG.Locked = true | |
1066 | RoofG.BrickColor = BrickColor.new("Brown") | |
1067 | RoofG.formFactor = "Plate" | |
1068 | RoofG.Size = Vector3.new(17, 0.4, 11) | |
1069 | RoofG:BreakJoints() | |
1070 | Weld = Instance.new("Weld") | |
1071 | Weld.Parent = GrassA | |
1072 | Weld.Part0 = GrassA | |
1073 | Weld.Part1 = RoofG | |
1074 | Weld.C0 = CFrame.new(19, 2.6, 29) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1075 | RoofH = Instance.new("Part") | |
1076 | RoofH.Parent = Model | |
1077 | RoofH.Name = "RoofH" | |
1078 | RoofH.TopSurface = 0 | |
1079 | RoofH.BottomSurface = 0 | |
1080 | RoofH.CanCollide = true | |
1081 | RoofH.Anchored = false | |
1082 | RoofH.Locked = true | |
1083 | RoofH.BrickColor = BrickColor.new("Brown") | |
1084 | RoofH.formFactor = "Plate" | |
1085 | RoofH.Size = Vector3.new(4, 0.4, 11) | |
1086 | RoofH:BreakJoints() | |
1087 | Weld = Instance.new("Weld") | |
1088 | Weld.Parent = GrassA | |
1089 | Weld.Part0 = GrassA | |
1090 | Weld.Part1 = RoofH | |
1091 | Weld.C0 = CFrame.new(9.1, 1, 29) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
1092 | RoofI = Instance.new("Part") | |
1093 | RoofI.Parent = Model | |
1094 | RoofI.Name = "RoofI" | |
1095 | RoofI.TopSurface = 0 | |
1096 | RoofI.BottomSurface = 0 | |
1097 | RoofI.CanCollide = true | |
1098 | RoofI.Anchored = false | |
1099 | RoofI.Locked = true | |
1100 | RoofI.BrickColor = BrickColor.new("Brown") | |
1101 | RoofI.formFactor = "Plate" | |
1102 | RoofI.Size = Vector3.new(4, 0.4, 11) | |
1103 | RoofI:BreakJoints() | |
1104 | Weld = Instance.new("Weld") | |
1105 | Weld.Parent = GrassA | |
1106 | Weld.Part0 = GrassA | |
1107 | Weld.Part1 = RoofI | |
1108 | Weld.C0 = CFrame.new(28.9, 1, 29) * CFrame.fromEulerAnglesXYZ(0, 0, -(math.pi/4)) | |
1109 | TableA = Instance.new("Part") | |
1110 | TableA.Parent = Model | |
1111 | TableA.Name = "TableA" | |
1112 | TableA.TopSurface = 0 | |
1113 | TableA.BottomSurface = 0 | |
1114 | TableA.CanCollide = true | |
1115 | TableA.Anchored = false | |
1116 | TableA.Locked = true | |
1117 | TableA.BrickColor = BrickColor.new("Brown") | |
1118 | TableA.formFactor = "Symmetric" | |
1119 | TableA.Size = Vector3.new(2, 2, 2) | |
1120 | TableA:BreakJoints() | |
1121 | Mesh = Instance.new("CylinderMesh") | |
1122 | Mesh.Parent = TableA | |
1123 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1124 | Weld = Instance.new("Weld") | |
1125 | Weld.Parent = GrassA | |
1126 | Weld.Part0 = GrassA | |
1127 | Weld.Part1 = TableA | |
1128 | Weld.C0 = CFrame.new(5, -12.8, 30) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1129 | TableB = Instance.new("Part") | |
1130 | TableB.Parent = Model | |
1131 | TableB.Name = "TableB" | |
1132 | TableB.TopSurface = 0 | |
1133 | TableB.BottomSurface = 0 | |
1134 | TableB.CanCollide = true | |
1135 | TableB.Anchored = false | |
1136 | TableB.Locked = true | |
1137 | TableB.BrickColor = BrickColor.new("Brown") | |
1138 | TableB.formFactor = "Symmetric" | |
1139 | TableB.Size = Vector3.new(2, 2, 2) | |
1140 | TableB:BreakJoints() | |
1141 | Mesh = Instance.new("CylinderMesh") | |
1142 | Mesh.Parent = TableB | |
1143 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1144 | Weld = Instance.new("Weld") | |
1145 | Weld.Parent = GrassA | |
1146 | Weld.Part0 = GrassA | |
1147 | Weld.Part1 = TableB | |
1148 | Weld.C0 = CFrame.new(5, -12.8, 42) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1149 | TableC = Instance.new("Part") | |
1150 | TableC.Parent = Model | |
1151 | TableC.Name = "TableC" | |
1152 | TableC.TopSurface = 0 | |
1153 | TableC.BottomSurface = 0 | |
1154 | TableC.CanCollide = true | |
1155 | TableC.Anchored = false | |
1156 | TableC.Locked = true | |
1157 | TableC.BrickColor = BrickColor.new("Brown") | |
1158 | TableC.formFactor = "Symmetric" | |
1159 | TableC.Size = Vector3.new(2, 2, 2) | |
1160 | TableC:BreakJoints() | |
1161 | Mesh = Instance.new("CylinderMesh") | |
1162 | Mesh.Parent = TableC | |
1163 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1164 | Weld = Instance.new("Weld") | |
1165 | Weld.Parent = GrassA | |
1166 | Weld.Part0 = GrassA | |
1167 | Weld.Part1 = TableC | |
1168 | Weld.C0 = CFrame.new(15, -12.8, 30) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1169 | TableD = Instance.new("Part") | |
1170 | TableD.Parent = Model | |
1171 | TableD.Name = "TableD" | |
1172 | TableD.TopSurface = 0 | |
1173 | TableD.BottomSurface = 0 | |
1174 | TableD.CanCollide = true | |
1175 | TableD.Anchored = false | |
1176 | TableD.Locked = true | |
1177 | TableD.BrickColor = BrickColor.new("Brown") | |
1178 | TableD.formFactor = "Symmetric" | |
1179 | TableD.Size = Vector3.new(2, 2, 2) | |
1180 | TableD:BreakJoints() | |
1181 | Mesh = Instance.new("CylinderMesh") | |
1182 | Mesh.Parent = TableD | |
1183 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1184 | Weld = Instance.new("Weld") | |
1185 | Weld.Parent = GrassA | |
1186 | Weld.Part0 = GrassA | |
1187 | Weld.Part1 = TableD | |
1188 | Weld.C0 = CFrame.new(15, -12.8, 42) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1189 | TableE = Instance.new("Part") | |
1190 | TableE.Parent = Model | |
1191 | TableE.Name = "TableE" | |
1192 | TableE.TopSurface = 0 | |
1193 | TableE.BottomSurface = 0 | |
1194 | TableE.CanCollide = true | |
1195 | TableE.Anchored = false | |
1196 | TableE.Locked = true | |
1197 | TableE.BrickColor = BrickColor.new("Brown") | |
1198 | TableE.formFactor = "Plate" | |
1199 | TableE.Size = Vector3.new(12, 0.4, 14) | |
1200 | TableE:BreakJoints() | |
1201 | Weld = Instance.new("Weld") | |
1202 | Weld.Parent = GrassA | |
1203 | Weld.Part0 = GrassA | |
1204 | Weld.Part1 = TableE | |
1205 | Weld.C0 = CFrame.new(10, -11.6, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1206 | SeatA = Instance.new("Seat") | |
1207 | SeatA.Parent = Model | |
1208 | SeatA.Name = "SeatA" | |
1209 | SeatA.TopSurface = 0 | |
1210 | SeatA.BottomSurface = 0 | |
1211 | SeatA.CanCollide = true | |
1212 | SeatA.Anchored = false | |
1213 | SeatA.Locked = true | |
1214 | SeatA.BrickColor = BrickColor.new("Brown") | |
1215 | SeatA.formFactor = "Plate" | |
1216 | SeatA.Size = Vector3.new(2, 0.8, 2) | |
1217 | SeatA:BreakJoints() | |
1218 | Mesh = Instance.new("CylinderMesh") | |
1219 | Mesh.Parent = SeatA | |
1220 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1221 | Weld = Instance.new("Weld") | |
1222 | Weld.Parent = GrassA | |
1223 | Weld.Part0 = GrassA | |
1224 | Weld.Part1 = SeatA | |
1225 | Weld.C0 = CFrame.new(8, -13.4, 44) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1226 | SeatB = Instance.new("Seat") | |
1227 | SeatB.Parent = Model | |
1228 | SeatB.Name = "SeatB" | |
1229 | SeatB.TopSurface = 0 | |
1230 | SeatB.BottomSurface = 0 | |
1231 | SeatB.CanCollide = true | |
1232 | SeatB.Anchored = false | |
1233 | SeatB.Locked = true | |
1234 | SeatB.BrickColor = BrickColor.new("Brown") | |
1235 | SeatB.formFactor = "Plate" | |
1236 | SeatB.Size = Vector3.new(2, 0.8, 2) | |
1237 | SeatB:BreakJoints() | |
1238 | Mesh = Instance.new("CylinderMesh") | |
1239 | Mesh.Parent = SeatB | |
1240 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1241 | Weld = Instance.new("Weld") | |
1242 | Weld.Parent = GrassA | |
1243 | Weld.Part0 = GrassA | |
1244 | Weld.Part1 = SeatB | |
1245 | Weld.C0 = CFrame.new(13, -13.4, 44) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1246 | SeatC = Instance.new("Seat") | |
1247 | SeatC.Parent = Model | |
1248 | SeatC.Name = "SeatC" | |
1249 | SeatC.TopSurface = 0 | |
1250 | SeatC.BottomSurface = 0 | |
1251 | SeatC.CanCollide = true | |
1252 | SeatC.Anchored = false | |
1253 | SeatC.Locked = true | |
1254 | SeatC.BrickColor = BrickColor.new("Brown") | |
1255 | SeatC.formFactor = "Plate" | |
1256 | SeatC.Size = Vector3.new(2, 0.8, 2) | |
1257 | SeatC:BreakJoints() | |
1258 | Mesh = Instance.new("CylinderMesh") | |
1259 | Mesh.Parent = SeatC | |
1260 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1261 | Weld = Instance.new("Weld") | |
1262 | Weld.Parent = GrassA | |
1263 | Weld.Part0 = GrassA | |
1264 | Weld.Part1 = SeatC | |
1265 | Weld.C0 = CFrame.new(17, -13.4, 37) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) | |
1266 | SeatD = Instance.new("Seat") | |
1267 | SeatD.Parent = Model | |
1268 | SeatD.Name = "SeatD" | |
1269 | SeatD.TopSurface = 0 | |
1270 | SeatD.BottomSurface = 0 | |
1271 | SeatD.CanCollide = true | |
1272 | SeatD.Anchored = false | |
1273 | SeatD.Locked = true | |
1274 | SeatD.BrickColor = BrickColor.new("Brown") | |
1275 | SeatD.formFactor = "Plate" | |
1276 | SeatD.Size = Vector3.new(2, 0.8, 2) | |
1277 | SeatD:BreakJoints() | |
1278 | Mesh = Instance.new("CylinderMesh") | |
1279 | Mesh.Parent = SeatD | |
1280 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1281 | Weld = Instance.new("Weld") | |
1282 | Weld.Parent = GrassA | |
1283 | Weld.Part0 = GrassA | |
1284 | Weld.Part1 = SeatD | |
1285 | Weld.C0 = CFrame.new(17, -13.4, 34) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) | |
1286 | SeatE = Instance.new("Seat") | |
1287 | SeatE.Parent = Model | |
1288 | SeatE.Name = "SeatE" | |
1289 | SeatE.TopSurface = 0 | |
1290 | SeatE.BottomSurface = 0 | |
1291 | SeatE.CanCollide = true | |
1292 | SeatE.Anchored = false | |
1293 | SeatE.Locked = true | |
1294 | SeatE.BrickColor = BrickColor.new("Brown") | |
1295 | SeatE.formFactor = "Plate" | |
1296 | SeatE.Size = Vector3.new(2, 0.8, 2) | |
1297 | SeatE:BreakJoints() | |
1298 | Mesh = Instance.new("CylinderMesh") | |
1299 | Mesh.Parent = SeatE | |
1300 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1301 | Weld = Instance.new("Weld") | |
1302 | Weld.Parent = GrassA | |
1303 | Weld.Part0 = GrassA | |
1304 | Weld.Part1 = SeatE | |
1305 | Weld.C0 = CFrame.new(3, -13.4, 34) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, 0) | |
1306 | SeatF = Instance.new("Seat") | |
1307 | SeatF.Parent = Model | |
1308 | SeatF.Name = "SeatF" | |
1309 | SeatF.TopSurface = 0 | |
1310 | SeatF.BottomSurface = 0 | |
1311 | SeatF.CanCollide = true | |
1312 | SeatF.Anchored = false | |
1313 | SeatF.Locked = true | |
1314 | SeatF.BrickColor = BrickColor.new("Brown") | |
1315 | SeatF.formFactor = "Plate" | |
1316 | SeatF.Size = Vector3.new(2, 0.8, 2) | |
1317 | SeatF:BreakJoints() | |
1318 | Mesh = Instance.new("CylinderMesh") | |
1319 | Mesh.Parent = SeatF | |
1320 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1321 | Weld = Instance.new("Weld") | |
1322 | Weld.Parent = GrassA | |
1323 | Weld.Part0 = GrassA | |
1324 | Weld.Part1 = SeatF | |
1325 | Weld.C0 = CFrame.new(3, -13.4, 40) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, 0) | |
1326 | SeatG = Instance.new("Seat") | |
1327 | SeatG.Parent = Model | |
1328 | SeatG.Name = "SeatG" | |
1329 | SeatG.TopSurface = 0 | |
1330 | SeatG.BottomSurface = 0 | |
1331 | SeatG.CanCollide = true | |
1332 | SeatG.Anchored = false | |
1333 | SeatG.Locked = true | |
1334 | SeatG.BrickColor = BrickColor.new("Brown") | |
1335 | SeatG.formFactor = "Plate" | |
1336 | SeatG.Size = Vector3.new(2, 0.8, 2) | |
1337 | SeatG:BreakJoints() | |
1338 | Mesh = Instance.new("CylinderMesh") | |
1339 | Mesh.Parent = SeatG | |
1340 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1341 | Weld = Instance.new("Weld") | |
1342 | Weld.Parent = GrassA | |
1343 | Weld.Part0 = GrassA | |
1344 | Weld.Part1 = SeatG | |
1345 | Weld.C0 = CFrame.new(10, -13.4, 28) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
1346 | ||
1347 | ||
1348 | BedA = Instance.new("Part") | |
1349 | BedA.Parent = Model | |
1350 | BedA.Name = "BedA" | |
1351 | BedA.TopSurface = 0 | |
1352 | BedA.BottomSurface = 0 | |
1353 | BedA.CanCollide = true | |
1354 | BedA.Anchored = false | |
1355 | BedA.Locked = true | |
1356 | BedA.BrickColor = BrickColor.new("Brown") | |
1357 | BedA.formFactor = "Symmetric" | |
1358 | BedA.Size = Vector3.new(14, 2, 10) | |
1359 | BedA:BreakJoints() | |
1360 | Weld = Instance.new("Weld") | |
1361 | Weld.Parent = GrassA | |
1362 | Weld.Part0 = GrassA | |
1363 | Weld.Part1 = BedA | |
1364 | Weld.C0 = CFrame.new(36.5, -12.8, 54) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1365 | BedB = Instance.new("Part") | |
1366 | BedB.Parent = Model | |
1367 | BedB.Name = "BedB" | |
1368 | BedB.TopSurface = 0 | |
1369 | BedB.BottomSurface = 0 | |
1370 | BedB.CanCollide = true | |
1371 | BedB.Anchored = false | |
1372 | BedB.Locked = true | |
1373 | BedB.BrickColor = BrickColor.new("White") | |
1374 | BedB.formFactor = "Plate" | |
1375 | BedB.Size = Vector3.new(4, 0.4, 10) | |
1376 | BedB:BreakJoints() | |
1377 | Weld = Instance.new("Weld") | |
1378 | Weld.Parent = GrassA | |
1379 | Weld.Part0 = GrassA | |
1380 | Weld.Part1 = BedB | |
1381 | Weld.C0 = CFrame.new(41.5, -11.6, 54) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1382 | BedC = Instance.new("Part") | |
1383 | BedC.Parent = Model | |
1384 | BedC.Name = "BedC" | |
1385 | BedC.TopSurface = 1 | |
1386 | BedC.BottomSurface = 0 | |
1387 | BedC.CanCollide = true | |
1388 | BedC.Anchored = false | |
1389 | BedC.Locked = true | |
1390 | BedC.BrickColor = BrickColor.new("Bright green") | |
1391 | BedC.formFactor = "Plate" | |
1392 | BedC.Size = Vector3.new(10, 0.8, 10) | |
1393 | BedC:BreakJoints() | |
1394 | Weld = Instance.new("Weld") | |
1395 | Weld.Parent = GrassA | |
1396 | Weld.Part0 = GrassA | |
1397 | Weld.Part1 = BedC | |
1398 | Weld.C0 = CFrame.new(34.5, -11.4, 54) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1399 | BedD = Instance.new("Part") | |
1400 | BedD.Parent = Model | |
1401 | BedD.Name = "BedD" | |
1402 | BedD.TopSurface = 0 | |
1403 | BedD.BottomSurface = 0 | |
1404 | BedD.CanCollide = true | |
1405 | BedD.Anchored = false | |
1406 | BedD.Locked = true | |
1407 | BedD.BrickColor = BrickColor.new("White") | |
1408 | BedD.formFactor = "Plate" | |
1409 | BedD.Size = Vector3.new(3, 0.4, 4) | |
1410 | BedD:BreakJoints() | |
1411 | Weld = Instance.new("Weld") | |
1412 | Weld.Parent = GrassA | |
1413 | Weld.Part0 = GrassA | |
1414 | Weld.Part1 = BedD | |
1415 | Weld.C0 = CFrame.new(42, -11.2, 51.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1416 | BedE = Instance.new("Part") | |
1417 | BedE.Parent = Model | |
1418 | BedE.Name = "BedE" | |
1419 | BedE.TopSurface = 0 | |
1420 | BedE.BottomSurface = 0 | |
1421 | BedE.CanCollide = true | |
1422 | BedE.Anchored = false | |
1423 | BedE.Locked = true | |
1424 | BedE.BrickColor = BrickColor.new("White") | |
1425 | BedE.formFactor = "Plate" | |
1426 | BedE.Size = Vector3.new(3, 0.4, 4) | |
1427 | BedE:BreakJoints() | |
1428 | Weld = Instance.new("Weld") | |
1429 | Weld.Parent = GrassA | |
1430 | Weld.Part0 = GrassA | |
1431 | Weld.Part1 = BedE | |
1432 | Weld.C0 = CFrame.new(42, -11.2, 56.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1433 | ||
1434 | ControlPanelA = Instance.new("Part") | |
1435 | ControlPanelA.Parent = Model | |
1436 | ControlPanelA.Name = "ControlPanelA" | |
1437 | ControlPanelA.TopSurface = 0 | |
1438 | ControlPanelA.BottomSurface = 0 | |
1439 | ControlPanelA.CanCollide = true | |
1440 | ControlPanelA.Anchored = false | |
1441 | ControlPanelA.Locked = true | |
1442 | ControlPanelA.BrickColor = BrickColor.new("Bright green") | |
1443 | ControlPanelA.formFactor = "Symmetric" | |
1444 | ControlPanelA.Size = Vector3.new(2, 2, 3) | |
1445 | ControlPanelA:BreakJoints() | |
1446 | Weld = Instance.new("Weld") | |
1447 | Weld.Parent = GrassA | |
1448 | Weld.Part0 = GrassA | |
1449 | Weld.Part1 = ControlPanelA | |
1450 | Weld.C0 = CFrame.new(55.5, 1.2, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1451 | ControlPanelB = Instance.new("Part") | |
1452 | ControlPanelB.Parent = Model | |
1453 | ControlPanelB.Name = "ControlPanelB" | |
1454 | ControlPanelB.TopSurface = 0 | |
1455 | ControlPanelB.BottomSurface = 0 | |
1456 | ControlPanelB.CanCollide = true | |
1457 | ControlPanelB.Anchored = false | |
1458 | ControlPanelB.Locked = true | |
1459 | ControlPanelB.BrickColor = BrickColor.new("Bright green") | |
1460 | ControlPanelB.formFactor = "Symmetric" | |
1461 | ControlPanelB.Size = Vector3.new(2, 2, 3) | |
1462 | ControlPanelB:BreakJoints() | |
1463 | Weld = Instance.new("Weld") | |
1464 | Weld.Parent = GrassA | |
1465 | Weld.Part0 = ControlPanelA | |
1466 | Weld.Part1 = ControlPanelB | |
1467 | Weld.C0 = CFrame.new(-0.5, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
1468 | ||
1469 | ControlPanelC = Instance.new("Part") | |
1470 | ControlPanelC.Parent = Model | |
1471 | ControlPanelC.Name = "ControlPaneC" | |
1472 | ControlPanelC.TopSurface = 0 | |
1473 | ControlPanelC.BottomSurface = 0 | |
1474 | ControlPanelC.CanCollide = true | |
1475 | ControlPanelC.Anchored = false | |
1476 | ControlPanelC.Locked = true | |
1477 | ControlPanelC.BrickColor = BrickColor.new("Bright green") | |
1478 | ControlPanelC.formFactor = "Symmetric" | |
1479 | ControlPanelC.Size = Vector3.new(2, 2, 3) | |
1480 | ControlPanelC:BreakJoints() | |
1481 | Weld = Instance.new("Weld") | |
1482 | Weld.Parent = GrassA | |
1483 | Weld.Part0 = GrassA | |
1484 | Weld.Part1 = ControlPanelC | |
1485 | Weld.C0 = CFrame.new(40, -12.8, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1486 | ControlPanelD = Instance.new("Part") | |
1487 | ControlPanelD.Parent = Model | |
1488 | ControlPanelD.Name = "ControlPanelD" | |
1489 | ControlPanelD.TopSurface = 0 | |
1490 | ControlPanelD.BottomSurface = 0 | |
1491 | ControlPanelD.CanCollide = true | |
1492 | ControlPanelD.Anchored = false | |
1493 | ControlPanelD.Locked = true | |
1494 | ControlPanelD.BrickColor = BrickColor.new("Bright green") | |
1495 | ControlPanelD.formFactor = "Symmetric" | |
1496 | ControlPanelD.Size = Vector3.new(2, 2, 3) | |
1497 | ControlPanelD:BreakJoints() | |
1498 | Weld = Instance.new("Weld") | |
1499 | Weld.Parent = GrassA | |
1500 | Weld.Part0 = ControlPanelC | |
1501 | Weld.Part1 = ControlPanelD | |
1502 | Weld.C0 = CFrame.new(-0.5, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
1503 | LightA = Instance.new("Part") | |
1504 | LightA.Parent = Model | |
1505 | LightA.Name = "LightA" | |
1506 | LightA.TopSurface = 0 | |
1507 | LightA.BottomSurface = 0 | |
1508 | LightA.Reflectance = 0.2 | |
1509 | LightA.CanCollide = true | |
1510 | LightA.Anchored = false | |
1511 | LightA.Locked = true | |
1512 | LightA.BrickColor = BrickColor.new("Bright green") | |
1513 | LightA.formFactor = "Plate" | |
1514 | LightA.Size = Vector3.new(1, 0.4, 1) | |
1515 | LightA:BreakJoints() | |
1516 | Mesh = Instance.new("CylinderMesh") | |
1517 | Mesh.Parent = LightA | |
1518 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1519 | Weld = Instance.new("Weld") | |
1520 | Weld.Parent = GrassA | |
1521 | Weld.Part0 = GrassA | |
1522 | Weld.Part1 = LightA | |
1523 | Weld.C0 = CFrame.new(44.5, 0.4, 42.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1524 | LightB = Instance.new("Part") | |
1525 | LightB.Parent = Model | |
1526 | LightB.Name = "LightB" | |
1527 | LightB.TopSurface = 0 | |
1528 | LightB.BottomSurface = 0 | |
1529 | LightB.Transparency = 0.5 | |
1530 | LightB.CanCollide = true | |
1531 | LightB.Anchored = false | |
1532 | LightB.Locked = true | |
1533 | LightB.BrickColor = BrickColor.new("Bright green") | |
1534 | LightB.formFactor = "Plate" | |
1535 | LightB.Size = Vector3.new(1, 0.4, 1) | |
1536 | LightB:BreakJoints() | |
1537 | Mesh = Instance.new("CylinderMesh") | |
1538 | Mesh.Parent = LightB | |
1539 | Mesh.Scale = Vector3.new(0.9, 1, 0.9) | |
1540 | Weld = Instance.new("Weld") | |
1541 | Weld.Parent = GrassA | |
1542 | Weld.Part0 = GrassA | |
1543 | Weld.Part1 = LightB | |
1544 | Weld.C0 = CFrame.new(44.5, 0.6, 42.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1545 | LightC = Instance.new("Part") | |
1546 | LightC.Parent = Model | |
1547 | LightC.Name = "LightC" | |
1548 | LightC.TopSurface = 0 | |
1549 | LightC.BottomSurface = 0 | |
1550 | LightC.Reflectance = 0.2 | |
1551 | LightC.CanCollide = true | |
1552 | LightC.Anchored = false | |
1553 | LightC.Locked = true | |
1554 | LightC.BrickColor = BrickColor.new("Brigt green") | |
1555 | LightC.formFactor = "Plate" | |
1556 | LightC.Size = Vector3.new(1, 0.4, 1) | |
1557 | LightC:BreakJoints() | |
1558 | Mesh = Instance.new("CylinderMesh") | |
1559 | Mesh.Parent = LightC | |
1560 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1561 | Weld = Instance.new("Weld") | |
1562 | Weld.Parent = GrassA | |
1563 | Weld.Part0 = GrassA | |
1564 | Weld.Part1 = LightC | |
1565 | Weld.C0 = CFrame.new(42.8, -1.1, 42.5) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
1566 | LightD = Instance.new("Part") | |
1567 | LightD.Parent = Model | |
1568 | LightD.Name = "LightD" | |
1569 | LightD.TopSurface = 0 | |
1570 | LightD.BottomSurface = 0 | |
1571 | LightD.Transparency = 0.5 | |
1572 | LightD.CanCollide = true | |
1573 | LightD.Anchored = false | |
1574 | LightD.Locked = true | |
1575 | LightD.BrickColor = BrickColor.new("Bright green") | |
1576 | LightD.formFactor = "Plate" | |
1577 | LightD.Size = Vector3.new(1, 0.4, 1) | |
1578 | LightD:BreakJoints() | |
1579 | Mesh = Instance.new("CylinderMesh") | |
1580 | Mesh.Parent = LightD | |
1581 | Mesh.Scale = Vector3.new(0.9, 1, 0.9) | |
1582 | Weld = Instance.new("Weld") | |
1583 | Weld.Parent = GrassA | |
1584 | Weld.Part0 = LightC | |
1585 | Weld.Part1 = LightD | |
1586 | Weld.C0 = CFrame.new(0, 0.2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1587 | ||
1588 | FurnaceA = Instance.new("Part") | |
1589 | FurnaceA.Parent = Model | |
1590 | FurnaceA.Name = "FurnaceA" | |
1591 | FurnaceA.TopSurface = 0 | |
1592 | FurnaceA.BottomSurface = 0 | |
1593 | FurnaceA.CanCollide = true | |
1594 | FurnaceA.Anchored = false | |
1595 | FurnaceA.Locked = true | |
1596 | FurnaceA.BrickColor = BrickColor.new("Black") | |
1597 | FurnaceA.formFactor = "Symmetric" | |
1598 | FurnaceA.Size = Vector3.new(1, 1, 1) | |
1599 | FurnaceA:BreakJoints() | |
1600 | Mesh = Instance.new("CylinderMesh") | |
1601 | Mesh.Parent = FurnaceA | |
1602 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1603 | Weld = Instance.new("Weld") | |
1604 | Weld.Parent = GrassA | |
1605 | Weld.Part0 = GrassA | |
1606 | Weld.Part1 = FurnaceA | |
1607 | Weld.C0 = CFrame.new(42.5, -13.3, 11.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1608 | FurnaceB = Instance.new("Part") | |
1609 | FurnaceB.Parent = Model | |
1610 | FurnaceB.Name = "FurnaceB" | |
1611 | FurnaceB.TopSurface = 0 | |
1612 | FurnaceB.BottomSurface = 0 | |
1613 | FurnaceB.CanCollide = true | |
1614 | FurnaceB.Anchored = false | |
1615 | FurnaceB.Locked = true | |
1616 | FurnaceB.BrickColor = BrickColor.new("Black") | |
1617 | FurnaceB.formFactor = "Symmetric" | |
1618 | FurnaceB.Size = Vector3.new(1, 1, 1) | |
1619 | FurnaceB:BreakJoints() | |
1620 | Mesh = Instance.new("CylinderMesh") | |
1621 | Mesh.Parent = FurnaceB | |
1622 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1623 | Weld = Instance.new("Weld") | |
1624 | Weld.Parent = GrassA | |
1625 | Weld.Part0 = GrassA | |
1626 | Weld.Part1 = FurnaceB | |
1627 | Weld.C0 = CFrame.new(42.5, -13.3, 16.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1628 | FurnaceC = Instance.new("Part") | |
1629 | FurnaceC.Parent = Model | |
1630 | FurnaceC.Name = "FurnaceC" | |
1631 | FurnaceC.TopSurface = 0 | |
1632 | FurnaceC.BottomSurface = 0 | |
1633 | FurnaceC.CanCollide = true | |
1634 | FurnaceC.Anchored = false | |
1635 | FurnaceC.Locked = true | |
1636 | FurnaceC.BrickColor = BrickColor.new("Black") | |
1637 | FurnaceC.formFactor = "Symmetric" | |
1638 | FurnaceC.Size = Vector3.new(1, 1, 1) | |
1639 | FurnaceC:BreakJoints() | |
1640 | Mesh = Instance.new("CylinderMesh") | |
1641 | Mesh.Parent = FurnaceC | |
1642 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1643 | Weld = Instance.new("Weld") | |
1644 | Weld.Parent = GrassA | |
1645 | Weld.Part0 = GrassA | |
1646 | Weld.Part1 = FurnaceC | |
1647 | Weld.C0 = CFrame.new(35.5, -13.3, 11.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1648 | FurnaceD = Instance.new("Part") | |
1649 | FurnaceD.Parent = Model | |
1650 | FurnaceD.Name = "FurnaceD" | |
1651 | FurnaceD.TopSurface = 0 | |
1652 | FurnaceD.BottomSurface = 0 | |
1653 | FurnaceD.CanCollide = true | |
1654 | FurnaceD.Anchored = false | |
1655 | FurnaceD.Locked = true | |
1656 | FurnaceD.BrickColor = BrickColor.new("Black") | |
1657 | FurnaceD.formFactor = "Symmetric" | |
1658 | FurnaceD.Size = Vector3.new(1, 1, 1) | |
1659 | FurnaceD:BreakJoints() | |
1660 | Mesh = Instance.new("CylinderMesh") | |
1661 | Mesh.Parent = FurnaceD | |
1662 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1663 | Weld = Instance.new("Weld") | |
1664 | Weld.Parent = GrassA | |
1665 | Weld.Part0 = GrassA | |
1666 | Weld.Part1 = FurnaceD | |
1667 | Weld.C0 = CFrame.new(35.5, -13.3, 16.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1668 | FurnaceE = Instance.new("WedgePart") | |
1669 | FurnaceE.Parent = Model | |
1670 | FurnaceE.Name = "FurnaceE" | |
1671 | FurnaceE.TopSurface = 0 | |
1672 | FurnaceE.BottomSurface = 0 | |
1673 | FurnaceE.CanCollide = true | |
1674 | FurnaceE.Anchored = false | |
1675 | FurnaceE.Locked = true | |
1676 | FurnaceE.BrickColor = BrickColor.new("Black") | |
1677 | FurnaceE.formFactor = "Symmetric" | |
1678 | FurnaceE.Size = Vector3.new(6, 4, 4) | |
1679 | FurnaceE:BreakJoints() | |
1680 | Weld = Instance.new("Weld") | |
1681 | Weld.Parent = GrassA | |
1682 | Weld.Part0 = GrassA | |
1683 | Weld.Part1 = FurnaceE | |
1684 | Weld.C0 = CFrame.new(41, -10.8, 14) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, 0) | |
1685 | FurnaceF = Instance.new("WedgePart") | |
1686 | FurnaceF.Parent = Model | |
1687 | FurnaceF.Name = "FurnaceF" | |
1688 | FurnaceF.TopSurface = 0 | |
1689 | FurnaceF.BottomSurface = 0 | |
1690 | FurnaceF.CanCollide = true | |
1691 | FurnaceF.Anchored = false | |
1692 | FurnaceF.Locked = true | |
1693 | FurnaceF.BrickColor = BrickColor.new("Black") | |
1694 | FurnaceF.formFactor = "Symmetric" | |
1695 | FurnaceF.Size = Vector3.new(6, 4, 4) | |
1696 | FurnaceF:BreakJoints() | |
1697 | Weld = Instance.new("Weld") | |
1698 | Weld.Parent = GrassA | |
1699 | Weld.Part0 = GrassA | |
1700 | Weld.Part1 = FurnaceF | |
1701 | Weld.C0 = CFrame.new(37, -10.8, 14) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) | |
1702 | FurnaceG = Instance.new("Part") | |
1703 | FurnaceG.Parent = Model | |
1704 | FurnaceG.Name = "FurnaceG" | |
1705 | FurnaceG.TopSurface = 0 | |
1706 | FurnaceG.BottomSurface = 0 | |
1707 | FurnaceG.CanCollide = true | |
1708 | FurnaceG.Anchored = false | |
1709 | FurnaceG.Locked = true | |
1710 | FurnaceG.BrickColor = BrickColor.new("Bright orange") | |
1711 | FurnaceG.formFactor = "Symmetric" | |
1712 | FurnaceG.Size = Vector3.new(4, 1, 4) | |
1713 | FurnaceG:BreakJoints() | |
1714 | Mesh = Instance.new("BlockMesh") | |
1715 | Mesh.Parent = FurnaceG | |
1716 | Mesh.Scale = Vector3.new(1, 0.02, 1) | |
1717 | Weld = Instance.new("Weld") | |
1718 | Weld.Parent = GrassA | |
1719 | Weld.Part0 = GrassA | |
1720 | Weld.Part1 = FurnaceG | |
1721 | Weld.C0 = CFrame.new(37, -10.8, 14) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
1722 | FurnaceH = Instance.new("Part") | |
1723 | FurnaceH.Parent = Model | |
1724 | FurnaceH.Name = "FurnaceH" | |
1725 | FurnaceH.TopSurface = 0 | |
1726 | FurnaceH.BottomSurface = 0 | |
1727 | FurnaceH.CanCollide = true | |
1728 | FurnaceH.Anchored = false | |
1729 | FurnaceH.Locked = true | |
1730 | FurnaceH.BrickColor = BrickColor.new("Black") | |
1731 | FurnaceH.formFactor = "Symmetric" | |
1732 | FurnaceH.Size = Vector3.new(4, 1, 1) | |
1733 | FurnaceH:BreakJoints() | |
1734 | Mesh = Instance.new("BlockMesh") | |
1735 | Mesh.Parent = FurnaceH | |
1736 | Mesh.Scale = Vector3.new(1, 0.03, 1) | |
1737 | Weld = Instance.new("Weld") | |
1738 | Weld.Parent = GrassA | |
1739 | Weld.Part0 = GrassA | |
1740 | Weld.Part1 = FurnaceH | |
1741 | Weld.C0 = CFrame.new(37, -10.8, 15) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
1742 | FurnaceI = Instance.new("Part") | |
1743 | FurnaceI.Parent = Model | |
1744 | FurnaceI.Name = "FurnaceI" | |
1745 | FurnaceI.TopSurface = 0 | |
1746 | FurnaceI.BottomSurface = 0 | |
1747 | FurnaceI.CanCollide = true | |
1748 | FurnaceI.Anchored = false | |
1749 | FurnaceI.Locked = true | |
1750 | FurnaceI.BrickColor = BrickColor.new("Black") | |
1751 | FurnaceI.formFactor = "Symmetric" | |
1752 | FurnaceI.Size = Vector3.new(4, 1, 1) | |
1753 | FurnaceI:BreakJoints() | |
1754 | Mesh = Instance.new("BlockMesh") | |
1755 | Mesh.Parent = FurnaceI | |
1756 | Mesh.Scale = Vector3.new(1, 0.03, 1) | |
1757 | Weld = Instance.new("Weld") | |
1758 | Weld.Parent = GrassA | |
1759 | Weld.Part0 = GrassA | |
1760 | Weld.Part1 = FurnaceI | |
1761 | Weld.C0 = CFrame.new(37, -10.8, 13) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
1762 | FurnaceJ = Instance.new("Part") | |
1763 | FurnaceJ.Parent = Model | |
1764 | FurnaceJ.Name = "FurnaceJ" | |
1765 | FurnaceJ.TopSurface = 0 | |
1766 | FurnaceJ.BottomSurface = 0 | |
1767 | FurnaceJ.CanCollide = true | |
1768 | FurnaceJ.Anchored = false | |
1769 | FurnaceJ.Locked = true | |
1770 | FurnaceJ.BrickColor = BrickColor.new("Black") | |
1771 | FurnaceJ.formFactor = "Symmetric" | |
1772 | FurnaceJ.Size = Vector3.new(2, 20, 2) | |
1773 | FurnaceJ:BreakJoints() | |
1774 | Mesh = Instance.new("CylinderMesh") | |
1775 | Mesh.Parent = FurnaceJ | |
1776 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1777 | Weld = Instance.new("Weld") | |
1778 | Weld.Parent = GrassA | |
1779 | Weld.Part0 = GrassA | |
1780 | Weld.Part1 = FurnaceJ | |
1781 | Weld.C0 = CFrame.new(41, -2.8, 14) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1782 | FurnaceK = Instance.new("Part") | |
1783 | FurnaceK.Parent = Model | |
1784 | FurnaceK.Name = "FurnaceK" | |
1785 | FurnaceK.TopSurface = 0 | |
1786 | FurnaceK.BottomSurface = 0 | |
1787 | FurnaceK.CanCollide = true | |
1788 | FurnaceK.Anchored = false | |
1789 | FurnaceK.Locked = true | |
1790 | FurnaceK.Transparency = 1 | |
1791 | FurnaceK.BrickColor = BrickColor.new("Black") | |
1792 | FurnaceK.formFactor = "Symmetric" | |
1793 | FurnaceK.Size = Vector3.new(1, 1, 1) | |
1794 | FurnaceK:BreakJoints() | |
1795 | Weld = Instance.new("Weld") | |
1796 | Weld.Parent = GrassA | |
1797 | Weld.Part0 = FurnaceJ | |
1798 | Weld.Part1 = FurnaceK | |
1799 | Weld.C0 = CFrame.new(0, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1800 | Smoke = Instance.new("Smoke") | |
1801 | Smoke.Parent = FurnaceK | |
1802 | Smoke.Enabled = false | |
1803 | Smoke.Size = 10 | |
1804 | Smoke.Opacity = 100 | |
1805 | ||
1806 | DeskA = Instance.new("Part") | |
1807 | DeskA.Parent = Model | |
1808 | DeskA.Name = "DeskA" | |
1809 | DeskA.TopSurface = 0 | |
1810 | DeskA.BottomSurface = 0 | |
1811 | DeskA.CanCollide = true | |
1812 | DeskA.Anchored = false | |
1813 | DeskA.Locked = true | |
1814 | DeskA.BrickColor = BrickColor.new("Brown") | |
1815 | DeskA.formFactor = "Symmetric" | |
1816 | DeskA.Size = Vector3.new(1, 2, 1) | |
1817 | DeskA:BreakJoints() | |
1818 | Mesh = Instance.new("CylinderMesh") | |
1819 | Mesh.Parent = DeskA | |
1820 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1821 | Weld = Instance.new("Weld") | |
1822 | Weld.Parent = GrassA | |
1823 | Weld.Part0 = GrassA | |
1824 | Weld.Part1 = DeskA | |
1825 | Weld.C0 = CFrame.new(5, -12.8, 11.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1826 | DeskB = Instance.new("Part") | |
1827 | DeskB.Parent = Model | |
1828 | DeskB.Name = "DeskB" | |
1829 | DeskB.TopSurface = 0 | |
1830 | DeskB.BottomSurface = 0 | |
1831 | DeskB.CanCollide = true | |
1832 | DeskB.Anchored = false | |
1833 | DeskB.Locked = true | |
1834 | DeskB.BrickColor = BrickColor.new("Brown") | |
1835 | DeskB.formFactor = "Symmetric" | |
1836 | DeskB.Size = Vector3.new(1, 2, 1) | |
1837 | DeskB:BreakJoints() | |
1838 | Mesh = Instance.new("CylinderMesh") | |
1839 | Mesh.Parent = DeskB | |
1840 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1841 | Weld = Instance.new("Weld") | |
1842 | Weld.Parent = GrassA | |
1843 | Weld.Part0 = GrassA | |
1844 | Weld.Part1 = DeskB | |
1845 | Weld.C0 = CFrame.new(15, -12.8, 11.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1846 | DeskC = Instance.new("Part") | |
1847 | DeskC.Parent = Model | |
1848 | DeskC.Name = "DeskC" | |
1849 | DeskC.TopSurface = 0 | |
1850 | DeskC.BottomSurface = 0 | |
1851 | DeskC.CanCollide = true | |
1852 | DeskC.Anchored = false | |
1853 | DeskC.Locked = true | |
1854 | DeskC.BrickColor = BrickColor.new("Brown") | |
1855 | DeskC.formFactor = "Symmetric" | |
1856 | DeskC.Size = Vector3.new(1, 2, 1) | |
1857 | DeskC:BreakJoints() | |
1858 | Mesh = Instance.new("CylinderMesh") | |
1859 | Mesh.Parent = DeskC | |
1860 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1861 | Weld = Instance.new("Weld") | |
1862 | Weld.Parent = GrassA | |
1863 | Weld.Part0 = GrassA | |
1864 | Weld.Part1 = DeskC | |
1865 | Weld.C0 = CFrame.new(15, -12.8, 16.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1866 | DeskD = Instance.new("Part") | |
1867 | DeskD.Parent = Model | |
1868 | DeskD.Name = "DeskD" | |
1869 | DeskD.TopSurface = 0 | |
1870 | DeskD.BottomSurface = 0 | |
1871 | DeskD.CanCollide = true | |
1872 | DeskD.Anchored = false | |
1873 | DeskD.Locked = true | |
1874 | DeskD.BrickColor = BrickColor.new("Brown") | |
1875 | DeskD.formFactor = "Symmetric" | |
1876 | DeskD.Size = Vector3.new(1, 2, 1) | |
1877 | DeskD:BreakJoints() | |
1878 | Mesh = Instance.new("CylinderMesh") | |
1879 | Mesh.Parent = DeskD | |
1880 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1881 | Weld = Instance.new("Weld") | |
1882 | Weld.Parent = GrassA | |
1883 | Weld.Part0 = GrassA | |
1884 | Weld.Part1 = DeskD | |
1885 | Weld.C0 = CFrame.new(5, -12.8, 16.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1886 | DeskE = Instance.new("Part") | |
1887 | DeskE.Parent = Model | |
1888 | DeskE.Name = "DeskE" | |
1889 | DeskE.TopSurface = 0 | |
1890 | DeskE.BottomSurface = 0 | |
1891 | DeskE.CanCollide = true | |
1892 | DeskE.Anchored = false | |
1893 | DeskE.Locked = true | |
1894 | DeskE.BrickColor = BrickColor.new("Brown") | |
1895 | DeskE.formFactor = "Plate" | |
1896 | DeskE.Size = Vector3.new(11, 0.4, 6) | |
1897 | DeskE:BreakJoints() | |
1898 | Weld = Instance.new("Weld") | |
1899 | Weld.Parent = GrassA | |
1900 | Weld.Part0 = GrassA | |
1901 | Weld.Part1 = DeskE | |
1902 | Weld.C0 = CFrame.new(10, -11.6, 14) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1903 | SeatH = Instance.new("Seat") | |
1904 | SeatH.Parent = Model | |
1905 | SeatH.Name = "SeatH" | |
1906 | SeatH.TopSurface = 0 | |
1907 | SeatH.BottomSurface = 0 | |
1908 | SeatH.CanCollide = true | |
1909 | SeatH.Anchored = false | |
1910 | SeatH.Locked = true | |
1911 | SeatH.BrickColor = BrickColor.new("Brown") | |
1912 | SeatH.formFactor = "Plate" | |
1913 | SeatH.Size = Vector3.new(2, 0.8, 2) | |
1914 | SeatH:BreakJoints() | |
1915 | Mesh = Instance.new("CylinderMesh") | |
1916 | Mesh.Parent = SeatH | |
1917 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1918 | Weld = Instance.new("Weld") | |
1919 | Weld.Parent = GrassA | |
1920 | Weld.Part0 = GrassA | |
1921 | Weld.Part1 = SeatH | |
1922 | Weld.C0 = CFrame.new(10, -13.4, 18) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1923 | ||
1924 | LadderA = Instance.new("Part") | |
1925 | LadderA.Parent = Model | |
1926 | LadderA.Name = "LadderA" | |
1927 | LadderA.TopSurface = 0 | |
1928 | LadderA.BottomSurface = 0 | |
1929 | LadderA.CanCollide = true | |
1930 | LadderA.Anchored = false | |
1931 | LadderA.Locked = true | |
1932 | LadderA.BrickColor = BrickColor.new("Brown") | |
1933 | LadderA.formFactor = "Symmetric" | |
1934 | LadderA.Size = Vector3.new(1, 5, 1) | |
1935 | LadderA:BreakJoints() | |
1936 | Mesh = Instance.new("CylinderMesh") | |
1937 | Mesh.Parent = LadderA | |
1938 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1939 | Status = Instance.new("IntValue") | |
1940 | Status.Parent = LadderA | |
1941 | Status.Name = "Status" | |
1942 | Status.Value = 1 | |
1943 | Weld = Instance.new("Weld") | |
1944 | Weld.Parent = GrassA | |
1945 | Weld.Name = "LadderA" | |
1946 | Weld.Part0 = GrassA | |
1947 | Weld.Part1 = LadderA | |
1948 | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
1949 | LadderB = Instance.new("Part") | |
1950 | LadderB.Parent = Model | |
1951 | LadderB.Name = "LadderB" | |
1952 | LadderB.TopSurface = 0 | |
1953 | LadderB.BottomSurface = 0 | |
1954 | LadderB.CanCollide = true | |
1955 | LadderB.Anchored = false | |
1956 | LadderB.Locked = true | |
1957 | LadderB.BrickColor = BrickColor.new("Brown") | |
1958 | LadderB.formFactor = "Symmetric" | |
1959 | LadderB.Size = Vector3.new(1, 5, 1) | |
1960 | LadderB:BreakJoints() | |
1961 | Mesh = Instance.new("CylinderMesh") | |
1962 | Mesh.Parent = LadderB | |
1963 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1964 | Weld = Instance.new("Weld") | |
1965 | Weld.Parent = GrassA | |
1966 | Weld.Name = "LadderB" | |
1967 | Weld.Part0 = GrassA | |
1968 | Weld.Part1 = LadderB | |
1969 | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
1970 | LadderC = Instance.new("Part") | |
1971 | LadderC.Parent = Model | |
1972 | LadderC.Name = "LadderC" | |
1973 | LadderC.TopSurface = 0 | |
1974 | LadderC.BottomSurface = 0 | |
1975 | LadderC.CanCollide = true | |
1976 | LadderC.Anchored = false | |
1977 | LadderC.Locked = true | |
1978 | LadderC.BrickColor = BrickColor.new("Brown") | |
1979 | LadderC.formFactor = "Symmetric" | |
1980 | LadderC.Size = Vector3.new(1, 5, 1) | |
1981 | LadderC:BreakJoints() | |
1982 | Mesh = Instance.new("CylinderMesh") | |
1983 | Mesh.Parent = LadderC | |
1984 | Mesh.Scale = Vector3.new(1, 1, 1) | |
1985 | Weld = Instance.new("Weld") | |
1986 | Weld.Parent = GrassA | |
1987 | Weld.Name = "LadderC" | |
1988 | Weld.Part0 = GrassA | |
1989 | Weld.Part1 = LadderC | |
1990 | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
1991 | LadderD = Instance.new("Part") | |
1992 | LadderD.Parent = Model | |
1993 | LadderD.Name = "LadderD" | |
1994 | LadderD.TopSurface = 0 | |
1995 | LadderD.BottomSurface = 0 | |
1996 | LadderD.CanCollide = true | |
1997 | LadderD.Anchored = false | |
1998 | LadderD.Locked = true | |
1999 | LadderD.BrickColor = BrickColor.new("Brown") | |
2000 | LadderD.formFactor = "Symmetric" | |
2001 | LadderD.Size = Vector3.new(1, 5, 1) | |
2002 | LadderD:BreakJoints() | |
2003 | Mesh = Instance.new("CylinderMesh") | |
2004 | Mesh.Parent = LadderD | |
2005 | Mesh.Scale = Vector3.new(1, 1, 1) | |
2006 | Weld = Instance.new("Weld") | |
2007 | Weld.Parent = GrassA | |
2008 | Weld.Name = "LadderD" | |
2009 | Weld.Part0 = GrassA | |
2010 | Weld.Part1 = LadderD | |
2011 | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2012 | LadderE = Instance.new("Part") | |
2013 | LadderE.Parent = Model | |
2014 | LadderE.Name = "LadderE" | |
2015 | LadderE.TopSurface = 0 | |
2016 | LadderE.BottomSurface = 0 | |
2017 | LadderE.CanCollide = true | |
2018 | LadderE.Anchored = false | |
2019 | LadderE.Locked = true | |
2020 | LadderE.BrickColor = BrickColor.new("Brown") | |
2021 | LadderE.formFactor = "Symmetric" | |
2022 | LadderE.Size = Vector3.new(1, 5, 1) | |
2023 | LadderE:BreakJoints() | |
2024 | Mesh = Instance.new("CylinderMesh") | |
2025 | Mesh.Parent = LadderE | |
2026 | Mesh.Scale = Vector3.new(1, 1, 1) | |
2027 | Weld = Instance.new("Weld") | |
2028 | Weld.Parent = GrassA | |
2029 | Weld.Name = "LadderE" | |
2030 | Weld.Part0 = GrassA | |
2031 | Weld.Part1 = LadderE | |
2032 | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2033 | ||
2034 | TurretA = Instance.new("Part") | |
2035 | TurretA.Parent = Model | |
2036 | TurretA.Name = "TurretA" | |
2037 | TurretA.TopSurface = 0 | |
2038 | TurretA.BottomSurface = 0 | |
2039 | TurretA.CanCollide = true | |
2040 | TurretA.Anchored = false | |
2041 | TurretA.Locked = true | |
2042 | TurretA.BrickColor = BrickColor.new("Dark orange") | |
2043 | TurretA.Reflectance = 0.2 | |
2044 | TurretA.formFactor = "Symmetric" | |
2045 | TurretA.Size = Vector3.new(5, 1, 5) | |
2046 | TurretA:BreakJoints() | |
2047 | Mesh = Instance.new("CylinderMesh") | |
2048 | Mesh.Parent = TurretA | |
2049 | Mesh.Scale = Vector3.new(1, 1, 1) | |
2050 | Weld = Instance.new("Weld") | |
2051 | Weld.Parent = GrassA | |
2052 | Weld.Name = "TurretA" | |
2053 | Weld.Part0 = GrassA | |
2054 | Weld.Part1 = TurretA | |
2055 | Weld.C0 = CFrame.new(20, 0.7, 55) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2056 | TurretB = Instance.new("Part") | |
2057 | TurretB.Parent = Model | |
2058 | TurretB.Name = "TurretB" | |
2059 | TurretB.TopSurface = 0 | |
2060 | TurretB.BottomSurface = 0 | |
2061 | TurretB.CanCollide = true | |
2062 | TurretB.Anchored = false | |
2063 | TurretB.Locked = true | |
2064 | TurretB.BrickColor = BrickColor.new("Dark orange") | |
2065 | TurretB.Reflectance = 0.2 | |
2066 | TurretB.formFactor = "Symmetric" | |
2067 | TurretB.Shape = "Ball" | |
2068 | TurretB.Size = Vector3.new(4, 4, 4) | |
2069 | TurretB:BreakJoints() | |
2070 | Reloading = Instance.new("BoolValue") | |
2071 | Reloading.Parent = TurretB | |
2072 | Reloading.Name = "Reload" | |
2073 | Reloading.Value = false | |
2074 | VX = Instance.new("NumberValue") | |
2075 | VX .Parent = TurretB | |
2076 | VX.Name = "VX" | |
2077 | VX.Value = 0.3 | |
2078 | VY = Instance.new("NumberValue") | |
2079 | VY.Parent = TurretB | |
2080 | VY.Name = "VY" | |
2081 | VY.Value = 0 | |
2082 | Weld = Instance.new("Weld") | |
2083 | Weld.Parent = GrassA | |
2084 | Weld.Name = "TurretB" | |
2085 | Weld.Part0 = TurretA | |
2086 | Weld.Part1 = TurretB | |
2087 | Weld.C0 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.3, 0, 0) | |
2088 | TurretD = Instance.new("Part") | |
2089 | TurretD.Parent = Model | |
2090 | TurretD.Name = "TurretD" | |
2091 | TurretD.TopSurface = 0 | |
2092 | TurretD.BottomSurface = 0 | |
2093 | TurretD.CanCollide = true | |
2094 | TurretD.Anchored = false | |
2095 | TurretD.Locked = true | |
2096 | TurretD.BrickColor = BrickColor.new("Dark orange") | |
2097 | TurretD.Reflectance = 0.2 | |
2098 | TurretD.formFactor = "Symmetric" | |
2099 | TurretD.Size = Vector3.new(1, 1, 1) | |
2100 | TurretD:BreakJoints() | |
2101 | Mesh = Instance.new("CylinderMesh") | |
2102 | Mesh.Parent = TurretD | |
2103 | Mesh.Scale = Vector3.new(1.1, 1, 1.1) | |
2104 | Weld = Instance.new("Weld") | |
2105 | Weld.Parent = GrassA | |
2106 | Weld.Part0 = TurretB | |
2107 | Weld.Part1 = TurretD | |
2108 | Weld.C0 = CFrame.new(0, 0, -1.7) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2109 | TurretE = Instance.new("Part") | |
2110 | TurretE.Parent = Model | |
2111 | TurretE.Name = "TurretE" | |
2112 | TurretE.TopSurface = 0 | |
2113 | TurretE.BottomSurface = 0 | |
2114 | TurretE.CanCollide = true | |
2115 | TurretE.Anchored = false | |
2116 | TurretE.Locked = true | |
2117 | TurretE.BrickColor = BrickColor.new("Really black") | |
2118 | TurretE.formFactor = "Symmetric" | |
2119 | TurretE.Size = Vector3.new(1, 1, 1) | |
2120 | TurretE:BreakJoints() | |
2121 | Mesh = Instance.new("CylinderMesh") | |
2122 | Mesh.Parent = TurretE | |
2123 | Mesh.Scale = Vector3.new(1, 1, 1) | |
2124 | Smoke = Instance.new("Smoke") | |
2125 | Smoke.Parent = TurretE | |
2126 | Smoke.Enabled = false | |
2127 | Smoke.Size = 1 | |
2128 | Smoke.Opacity = 1 | |
2129 | Smoke.RiseVelocity = -25 | |
2130 | Weld = Instance.new("Weld") | |
2131 | Weld.Parent = GrassA | |
2132 | Weld.Part0 = TurretD | |
2133 | Weld.Part1 = TurretE | |
2134 | Weld.C0 = CFrame.new(0, -0.01, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2135 | TurretF = Instance.new("Part") | |
2136 | TurretF.Parent = Model | |
2137 | TurretF.Name = "TurretF" | |
2138 | TurretF.TopSurface = 0 | |
2139 | TurretF.BottomSurface = 0 | |
2140 | TurretF.CanCollide = false | |
2141 | TurretF.Anchored = false | |
2142 | TurretF.Locked = true | |
2143 | TurretF.BrickColor = BrickColor.new("Dark orange") | |
2144 | TurretF.Reflectance = 0.2 | |
2145 | TurretF.formFactor = "Symmetric" | |
2146 | TurretF.Size = Vector3.new(1, 1, 1) | |
2147 | TurretF:BreakJoints() | |
2148 | Mesh = Instance.new("CylinderMesh") | |
2149 | Mesh.Parent = TurretF | |
2150 | Mesh.Scale = Vector3.new(0.2, 1, 0.2) | |
2151 | Weld = Instance.new("Weld") | |
2152 | Weld.Parent = GrassA | |
2153 | Weld.Part0 = TurretD | |
2154 | Weld.Part1 = TurretF | |
2155 | Weld.C0 = CFrame.new(0.4, 0, -0.4) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2156 | TurretG = Instance.new("Part") | |
2157 | TurretG.Parent = Model | |
2158 | TurretG.Name = "TurretG" | |
2159 | TurretG.TopSurface = 0 | |
2160 | TurretG.BottomSurface = 0 | |
2161 | TurretG.CanCollide = false | |
2162 | TurretG.Anchored = false | |
2163 | TurretG.Locked = true | |
2164 | TurretG.BrickColor = BrickColor.new("Bright green") | |
2165 | TurretG.Transparency = 0.5 | |
2166 | TurretG.formFactor = "Symmetric" | |
2167 | TurretG.Size = Vector3.new(1, 1, 1) | |
2168 | TurretG:BreakJoints() | |
2169 | Mesh = Instance.new("CylinderMesh") | |
2170 | Mesh.Parent = TurretG | |
2171 | Mesh.Scale = Vector3.new(0.18, 0.05, 0.18) | |
2172 | Weld = Instance.new("Weld") | |
2173 | Weld.Parent = GrassA | |
2174 | Weld.Part0 = TurretF | |
2175 | Weld.Part1 = TurretG | |
2176 | Weld.C0 = CFrame.new(0, -0.525, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2177 | ||
2178 | ||
2179 | ||
2180 | BP = Instance.new("BodyPosition") | |
2181 | BP.Parent = FloorA | |
2182 | BP.maxForce = Vector3.new(math.huge + math.huge, math.huge + math.huge, math.huge + math.huge) | |
2183 | BP.position = Altitude | |
2184 | BG = Instance.new("BodyGyro") | |
2185 | BG.Parent = FloorA | |
2186 | BG.maxTorque = Vector3.new(math.huge + math.huge, math.huge + math.huge, math.huge + math.huge) | |
2187 | ||
2188 | function Touch(Hit) | |
2189 | if (Controls == true) then | |
2190 | if (Controller == nil) then | |
2191 | if (Hit ~= nil) then | |
2192 | if (Hit.Parent ~= nil) then | |
2193 | if (game.Players:GetPlayerFromCharacter(Hit.Parent) ~= nil) then | |
2194 | Player = game.Players:GetPlayerFromCharacter(Hit.Parent) | |
2195 | if (Player:findFirstChild("PlayerGui") == nil) then | |
2196 | Instance.new("PlayerGui").Parent = Player | |
2197 | end | |
2198 | if (Player.Character:findFirstChild("Humanoid") ~= nil) then | |
2199 | if (Player.Character:findFirstChild("Torso") ~= nil) then | |
2200 | if (Player.Character.Humanoid.Health > 0) then | |
2201 | Controller = Player | |
2202 | Button = nil | |
2203 | X = 0 | |
2204 | Y = 0 | |
2205 | LightB.BrickColor = BrickColor.new("Bright yellow") | |
2206 | LightD.BrickColor = BrickColor.new("Bright yellow") | |
2207 | Player.Character.Humanoid.PlatformStand = true | |
2208 | Weld = Instance.new("Weld") | |
2209 | Weld.Part0 = ControlPanelB | |
2210 | Weld.Part1 = Player.Character.Torso | |
2211 | HitPos = ControlPanelB.Position | |
2212 | CJ = CFrame.new(HitPos) | |
2213 | C0 = ControlPanelB.CFrame:inverse() *CJ | |
2214 | C1 = Player.Character.Torso.CFrame:inverse() * CJ | |
2215 | Weld.C0 = C0 | |
2216 | Weld.C1 = C1 | |
2217 | Weld.Parent = ControlPanelB | |
2218 | G = Instance.new("GuiMain") | |
2219 | G.Parent = Player.PlayerGui | |
2220 | G.Name = "MahGoey" | |
2221 | F = Instance.new("Frame") | |
2222 | F.Parent = G | |
2223 | F.Size = UDim2.new(0, 160, 0, 160) | |
2224 | F.Position = UDim2.new(0, 100, 0, 150) | |
2225 | F.BorderSizePixel = 0 | |
2226 | F.BackgroundColor3 = Color3.new(0, 0, 0) | |
2227 | F.BackgroundTransparency = 0.3 | |
2228 | Close = Instance.new("TextButton") | |
2229 | Close.Parent = F | |
2230 | Close.Name = "Close" | |
2231 | Close.Text = "X" | |
2232 | Close.Size = UDim2.new(0, 20, 0, 20) | |
2233 | Close.Position = UDim2.new(0, 0, 0, 160) | |
2234 | Close.BorderSizePixel = 0 | |
2235 | Close.BackgroundColor3 = Color3.new(0, 0, 0) | |
2236 | Close.TextColor3 = Color3.new(1, 1, 1) | |
2237 | Close.BackgroundTransparency = 0.3 | |
2238 | Close.MouseButton1Click:connect(function() | |
2239 | Weld:remove() | |
2240 | end) | |
2241 | T = Instance.new("TextButton") | |
2242 | T.Parent = F | |
2243 | T.Name = "Label" | |
2244 | T.Text = "Controls" | |
2245 | T.AutoButtonColor = false | |
2246 | T.Size = UDim2.new(0, 140, 0, 20) | |
2247 | T.Position = UDim2.new(0, 20, 0, 160) | |
2248 | T.BorderSizePixel = 0 | |
2249 | T.BackgroundColor3 = Color3.new(0, 0, 0) | |
2250 | T.TextColor3 = Color3.new(1, 1, 1) | |
2251 | T.BackgroundTransparency = 0.3 | |
2252 | T.MouseButton1Down:connect(function(IntX, IntY) | |
2253 | Button = T | |
2254 | X = IntX | |
2255 | Y = IntY | |
2256 | Yc = IntY - (160 + F.Position.Y.Offset) | |
2257 | Xc = IntX - (160 + F.Position.X.Offset) | |
2258 | while true do | |
2259 | if (Button ~= T) then | |
2260 | break | |
2261 | end | |
2262 | F.Position = UDim2.new(0, (X - 160) - Xc, 0, (Y - 160) - Yc) | |
2263 | wait(0.0) | |
2264 | end | |
2265 | end) | |
2266 | T.MouseButton1Up:connect(function() | |
2267 | Button = nil | |
2268 | end) | |
2269 | T.MouseLeave:connect(function() | |
2270 | Button = nil | |
2271 | end) | |
2272 | T.MouseMoved:connect(function(IntX, IntY) | |
2273 | X = IntX | |
2274 | Y = IntY | |
2275 | end) | |
2276 | Minus = Instance.new("TextButton") | |
2277 | Minus.Parent = F | |
2278 | Minus.Name = "Minus" | |
2279 | Minus.Text = "-" | |
2280 | Minus.Size = UDim2.new(0, 40, 0, 40) | |
2281 | Minus.Position = UDim2.new(0, 10, 0, 10) | |
2282 | Minus.BorderSizePixel = 0 | |
2283 | Minus.BackgroundColor3 = Color3.new(0, 0, 0) | |
2284 | Minus.TextColor3 = Color3.new(1, 1, 1) | |
2285 | Minus.MouseButton1Down:connect(function() | |
2286 | Button = Minus | |
2287 | LightB.BrickColor = BrickColor.new("Bright red") | |
2288 | LightD.BrickColor = BrickColor.new("Bright red") | |
2289 | FurnaceK.Smoke.Enabled = true | |
2290 | while true do | |
2291 | if (Button ~= Minus) then | |
2292 | break | |
2293 | end | |
2294 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x, FloorA.BodyPosition.position.y - 1, FloorA.BodyPosition.position.z) | |
2295 | wait(0.0) | |
2296 | end | |
2297 | FurnaceK.Smoke.Enabled = false | |
2298 | LightB.BrickColor = BrickColor.new("Bright yellow") | |
2299 | LightD.BrickColor = BrickColor.new("Bright yellow") | |
2300 | end) | |
2301 | Minus.MouseButton1Up:connect(function() | |
2302 | Button = nil | |
2303 | end) | |
2304 | Minus.MouseLeave:connect(function() | |
2305 | Button = nil | |
2306 | end) | |
2307 | Up = Instance.new("ImageButton") | |
2308 | Up.Parent = F | |
2309 | Up.Name = "Up" | |
2310 | Up.Image = "http://www.roblox.com/asset/?id=30390203" | |
2311 | Up.Size = UDim2.new(0, 40, 0, 40) | |
2312 | Up.Position = UDim2.new(0, 60, 0, 10) | |
2313 | Up.BorderSizePixel = 0 | |
2314 | Up.BackgroundColor3 = Color3.new(0, 0, 0) | |
2315 | Up.MouseButton1Down:connect(function() | |
2316 | Button = Up | |
2317 | LightB.BrickColor = BrickColor.new("Bright red") | |
2318 | LightD.BrickColor = BrickColor.new("Bright red") | |
2319 | FurnaceK.Smoke.Enabled = true | |
2320 | while true do | |
2321 | if (Button ~= Up) then | |
2322 | break | |
2323 | end | |
2324 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x + 1, FloorA.BodyPosition.position.y, FloorA.BodyPosition.position.z) | |
2325 | wait(0.0) | |
2326 | end | |
2327 | FurnaceK.Smoke.Enabled = false | |
2328 | LightB.BrickColor = BrickColor.new("Bright yellow") | |
2329 | LightD.BrickColor = BrickColor.new("Bright yellow") | |
2330 | end) | |
2331 | Up.MouseButton1Up:connect(function() | |
2332 | Button = nil | |
2333 | end) | |
2334 | Up.MouseLeave:connect(function() | |
2335 | Button = nil | |
2336 | end) | |
2337 | Plus = Instance.new("TextButton") | |
2338 | Plus.Parent = F | |
2339 | Plus.Name = "Plus" | |
2340 | Plus.Text = "+" | |
2341 | Plus.Size = UDim2.new(0, 40, 0, 40) | |
2342 | Plus.Position = UDim2.new(0, 110, 0, 10) | |
2343 | Plus.BorderSizePixel = 0 | |
2344 | Plus.BackgroundColor3 = Color3.new(0, 0, 0) | |
2345 | Plus.TextColor3 = Color3.new(1, 1, 1) | |
2346 | Plus.MouseButton1Down:connect(function() | |
2347 | Button = Plus | |
2348 | LightB.BrickColor = BrickColor.new("Bright red") | |
2349 | LightD.BrickColor = BrickColor.new("Bright red") | |
2350 | FurnaceK.Smoke.Enabled = true | |
2351 | while true do | |
2352 | if (Button ~= Plus) then | |
2353 | break | |
2354 | end | |
2355 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x, FloorA.BodyPosition.position.y + 1, FloorA.BodyPosition.position.z) | |
2356 | wait(0.0) | |
2357 | end | |
2358 | FurnaceK.Smoke.Enabled = false | |
2359 | LightB.BrickColor = BrickColor.new("Bright yellow") | |
2360 | LightD.BrickColor = BrickColor.new("Bright yellow") | |
2361 | end) | |
2362 | Plus.MouseButton1Up:connect(function() | |
2363 | Button = nil | |
2364 | end) | |
2365 | Plus.MouseLeave:connect(function() | |
2366 | Button = nil | |
2367 | end) | |
2368 | Left = Instance.new("ImageButton") | |
2369 | Left.Parent = F | |
2370 | Left.Name = "Left" | |
2371 | Left.Image = "http://www.roblox.com/asset/?id=30390075" | |
2372 | Left.Size = UDim2.new(0, 40, 0, 40) | |
2373 | Left.Position = UDim2.new(0, 10, 0, 60) | |
2374 | Left.BorderSizePixel = 0 | |
2375 | Left.BackgroundColor3 = Color3.new(0, 0, 0) | |
2376 | Left.MouseButton1Down:connect(function() | |
2377 | Button = Left | |
2378 | LightB.BrickColor = BrickColor.new("Bright red") | |
2379 | LightD.BrickColor = BrickColor.new("Bright red") | |
2380 | FurnaceK.Smoke.Enabled = true | |
2381 | while true do | |
2382 | if (Button ~= Left) then | |
2383 | break | |
2384 | end | |
2385 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x, FloorA.BodyPosition.position.y, FloorA.BodyPosition.position.z - 1) | |
2386 | wait(0.0) | |
2387 | end | |
2388 | FurnaceK.Smoke.Enabled = false | |
2389 | LightB.BrickColor = BrickColor.new("Bright yellow") | |
2390 | LightD.BrickColor = BrickColor.new("Bright yellow") | |
2391 | end) | |
2392 | Left.MouseButton1Up:connect(function() | |
2393 | Button = nil | |
2394 | end) | |
2395 | Left.MouseLeave:connect(function() | |
2396 | Button = nil | |
2397 | end) | |
2398 | Right = Instance.new("ImageButton") | |
2399 | Right.Parent = F | |
2400 | Right.Name = "Right" | |
2401 | Right.Image = "http://www.roblox.com/asset/?id=30390056" | |
2402 | Right.Size = UDim2.new(0, 40, 0, 40) | |
2403 | Right.Position = UDim2.new(0, 110, 0, 60) | |
2404 | Right.BorderSizePixel = 0 | |
2405 | Right.BackgroundColor3 = Color3.new(0, 0, 0) | |
2406 | Right.MouseButton1Down:connect(function() | |
2407 | Button = Right | |
2408 | LightB.BrickColor = BrickColor.new("Bright red") | |
2409 | LightD.BrickColor = BrickColor.new("Bright red") | |
2410 | FurnaceK.Smoke.Enabled = true | |
2411 | while true do | |
2412 | if (Button ~= Right) then | |
2413 | break | |
2414 | end | |
2415 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x, FloorA.BodyPosition.position.y, FloorA.BodyPosition.position.z + 1) | |
2416 | wait(0.0) | |
2417 | end | |
2418 | FurnaceK.Smoke.Enabled = false | |
2419 | LightB.BrickColor = BrickColor.new("Bright yellow") | |
2420 | LightD.BrickColor = BrickColor.new("Bright yellow") | |
2421 | end) | |
2422 | Right.MouseButton1Up:connect(function() | |
2423 | Button = nil | |
2424 | end) | |
2425 | Right.MouseLeave:connect(function() | |
2426 | Button = nil | |
2427 | end) | |
2428 | Down = Instance.new("ImageButton") | |
2429 | Down.Parent = F | |
2430 | Down.Name = "Down" | |
2431 | Down.Image = "http://www.roblox.com/asset/?id=30390064" | |
2432 | Down.Size = UDim2.new(0, 40, 0, 40) | |
2433 | Down.Position = UDim2.new(0, 60, 0, 110) | |
2434 | Down.BorderSizePixel = 0 | |
2435 | Down.BackgroundColor3 = Color3.new(0, 0, 0) | |
2436 | Down.MouseButton1Down:connect(function() | |
2437 | Button = Down | |
2438 | LightB.BrickColor = BrickColor.new("Bright red") | |
2439 | LightD.BrickColor = BrickColor.new("Bright red") | |
2440 | FurnaceK.Smoke.Enabled = true | |
2441 | while true do | |
2442 | if (Button ~= Down) then | |
2443 | break | |
2444 | end | |
2445 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x - 1, FloorA.BodyPosition.position.y, FloorA.BodyPosition.position.z) | |
2446 | wait(0.0) | |
2447 | end | |
2448 | FurnaceK.Smoke.Enabled = false | |
2449 | LightB.BrickColor = BrickColor.new("Bright yellow") | |
2450 | LightD.BrickColor = BrickColor.new("Bright yellow") | |
2451 | end) | |
2452 | Down.MouseButton1Up:connect(function() | |
2453 | Button = nil | |
2454 | end) | |
2455 | Down.MouseLeave:connect(function() | |
2456 | Button = nil | |
2457 | end) | |
2458 | while true do | |
2459 | if (Player == nil) then | |
2460 | break | |
2461 | end | |
2462 | if (Player.Parent == nil) then | |
2463 | break | |
2464 | end | |
2465 | if (Player.Character == nil) then | |
2466 | break | |
2467 | end | |
2468 | if (Player.Character.Parent == nil) then | |
2469 | break | |
2470 | end | |
2471 | if (Player.Character:findFirstChild("Humanoid") == nil) then | |
2472 | break | |
2473 | end | |
2474 | if (Player.Character:findFirstChild("Torso") == nil) then | |
2475 | break | |
2476 | end | |
2477 | if (Player.Character.Humanoid.Health < 0.01) then | |
2478 | break | |
2479 | end | |
2480 | if (Weld == nil) then | |
2481 | break | |
2482 | end | |
2483 | if (Weld.Parent == nil) then | |
2484 | break | |
2485 | end | |
2486 | if (Controls == false) then | |
2487 | break | |
2488 | end | |
2489 | Player.Character.Humanoid.PlatformStand = true | |
2490 | wait() | |
2491 | end | |
2492 | if (Player ~= nil) then | |
2493 | if (Player.Parent ~= nil) then | |
2494 | if (Player.Character ~= nil) then | |
2495 | if (Player.Character.Parent ~= nil) then | |
2496 | if (Player.Character:findFirstChild("Humanoid") ~= nil) then | |
2497 | Player.Character.Humanoid.PlatformStand = false | |
2498 | end | |
2499 | end | |
2500 | end | |
2501 | end | |
2502 | end | |
2503 | if (Weld ~= nil) then | |
2504 | Weld:remove() | |
2505 | end | |
2506 | Button = nil | |
2507 | G:remove() | |
2508 | LightB.BrickColor = BrickColor.new("Bright green") | |
2509 | LightD.BrickColor = BrickColor.new("Bright green") | |
2510 | wait(2) | |
2511 | Controller = nil | |
2512 | ||
2513 | end | |
2514 | end | |
2515 | end | |
2516 | end | |
2517 | end | |
2518 | end | |
2519 | end | |
2520 | end | |
2521 | end | |
2522 | ControlPanelB.Touched:connect(Touch) | |
2523 | ControlPanelC.Touched:connect(Touch) | |
2524 | function TurretControl(Hit) | |
2525 | if (Turret == true) then | |
2526 | if (Turreter == nil) then | |
2527 | if (Hit ~= nil) then | |
2528 | if (Hit.Parent ~= nil) then | |
2529 | if (game.Players:GetPlayerFromCharacter(Hit.Parent) ~= nil) then | |
2530 | PlayerB = game.Players:GetPlayerFromCharacter(Hit.Parent) | |
2531 | if (PlayerB:findFirstChild("PlayerGui") == nil) then | |
2532 | Instance.new("PlayerGui").Parent = PlayerB | |
2533 | end | |
2534 | if (PlayerB.Character:findFirstChild("Humanoid") ~= nil) then | |
2535 | if (PlayerB.Character:findFirstChild("Torso") ~= nil) then | |
2536 | if (PlayerB.Character.Humanoid.Health > 0) then | |
2537 | Turreter = PlayerB | |
2538 | ButtonB = nil | |
2539 | CloseBool = false | |
2540 | XB = 0 | |
2541 | YB = 0 | |
2542 | TurretG.BrickColor = BrickColor.new("Bright yellow") | |
2543 | GB = Instance.new("GuiMain") | |
2544 | GB.Parent = PlayerB.PlayerGui | |
2545 | GB.Name = "MahGoey" | |
2546 | Fram = Instance.new("Frame") | |
2547 | Fram.Parent = GB | |
2548 | Fram.Size = UDim2.new(0, 160, 0, 160) | |
2549 | Fram.Position = UDim2.new(0, 100, 0, 150) | |
2550 | Fram.BorderSizePixel = 0 | |
2551 | Fram.BackgroundColor3 = Color3.new(0, 0, 0) | |
2552 | Fram.BackgroundTransparency = 0.3 | |
2553 | CloseB = Instance.new("TextButton") | |
2554 | CloseB.Parent = Fram | |
2555 | CloseB.Name = "Close" | |
2556 | CloseB.Text = "X" | |
2557 | CloseB.Size = UDim2.new(0, 20, 0, 20) | |
2558 | CloseB.Position = UDim2.new(0, 0, 0, 160) | |
2559 | CloseB.BorderSizePixel = 0 | |
2560 | CloseB.BackgroundColor3 = Color3.new(0, 0, 0) | |
2561 | CloseB.TextColor3 = Color3.new(1, 1, 1) | |
2562 | CloseB.BackgroundTransparency = 0.3 | |
2563 | CloseB.MouseButton1Click:connect(function() | |
2564 | CloseBool = true | |
2565 | end) | |
2566 | TitleTurret = Instance.new("TextButton") | |
2567 | TitleTurret.Parent = Fram | |
2568 | TitleTurret.Name = "Label" | |
2569 | TitleTurret.Text = "Turret" | |
2570 | TitleTurret.AutoButtonColor = false | |
2571 | TitleTurret.Size = UDim2.new(0, 140, 0, 20) | |
2572 | TitleTurret.Position = UDim2.new(0, 20, 0, 160) | |
2573 | TitleTurret.BorderSizePixel = 0 | |
2574 | TitleTurret.BackgroundColor3 = Color3.new(0, 0, 0) | |
2575 | TitleTurret.TextColor3 = Color3.new(1, 1, 1) | |
2576 | TitleTurret.BackgroundTransparency = 0.3 | |
2577 | TitleTurret.MouseButton1Down:connect(function(IntXB, IntYB) | |
2578 | ButtonB = TitleTurret | |
2579 | XB = IntXB | |
2580 | YB = IntYB | |
2581 | YcB = IntYB - (160 + Fram.Position.Y.Offset) | |
2582 | XcB = IntXB - (160 + Fram.Position.X.Offset) | |
2583 | while true do | |
2584 | if (ButtonB ~= TitleTurret) then | |
2585 | break | |
2586 | end | |
2587 | Fram.Position = UDim2.new(0, (XB - 160) - XcB, 0, (YB - 160) - YcB) | |
2588 | wait(0.0) | |
2589 | end | |
2590 | end) | |
2591 | TitleTurret.MouseButton1Up:connect(function() | |
2592 | ButtonB = nil | |
2593 | end) | |
2594 | TitleTurret.MouseLeave:connect(function() | |
2595 | ButtonB = nil | |
2596 | end) | |
2597 | TitleTurret.MouseMoved:connect(function(IntXB, IntYB) | |
2598 | XB = IntXB | |
2599 | YB = IntYB | |
2600 | end) | |
2601 | MoveUp = Instance.new("ImageButton") | |
2602 | MoveUp.Parent = Fram | |
2603 | MoveUp.Name = "Up" | |
2604 | MoveUp.Image = "http://www.roblox.com/asset/?id=30390203" | |
2605 | MoveUp.Size = UDim2.new(0, 40, 0, 40) | |
2606 | MoveUp.Position = UDim2.new(0, 60, 0, 10) | |
2607 | MoveUp.BorderSizePixel = 0 | |
2608 | MoveUp.BackgroundColor3 = Color3.new(0, 0, 0) | |
2609 | MoveUp.MouseButton1Down:connect(function() | |
2610 | ButtonB = MoveUp | |
2611 | while true do | |
2612 | if (ButtonB ~= MoveUp) then | |
2613 | break | |
2614 | end | |
2615 | TurretB.VX.Value = TurretB.VX.Value + 0.1 | |
2616 | if (TurretB.VX.Value > 1.5) then | |
2617 | TurretB.VX.Value = 1.5 | |
2618 | end | |
2619 | GrassA.TurretB.C0 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(TurretB.VX.Value, 0, 0) | |
2620 | wait(0.0) | |
2621 | end | |
2622 | end) | |
2623 | MoveUp.MouseButton1Up:connect(function() | |
2624 | ButtonB = nil | |
2625 | end) | |
2626 | MoveUp.MouseLeave:connect(function() | |
2627 | ButtonB = nil | |
2628 | end) | |
2629 | TurnLeft = Instance.new("ImageButton") | |
2630 | TurnLeft.Parent = Fram | |
2631 | TurnLeft.Name = "Left" | |
2632 | TurnLeft.Image = "http://www.roblox.com/asset/?id=30390075" | |
2633 | TurnLeft.Size = UDim2.new(0, 40, 0, 40) | |
2634 | TurnLeft.Position = UDim2.new(0, 10, 0, 60) | |
2635 | TurnLeft.BorderSizePixel = 0 | |
2636 | TurnLeft.BackgroundColor3 = Color3.new(0, 0, 0) | |
2637 | TurnLeft.MouseButton1Down:connect(function() | |
2638 | ButtonB = TurnLeft | |
2639 | while true do | |
2640 | if (ButtonB ~= TurnLeft) then | |
2641 | break | |
2642 | end | |
2643 | TurretB.VY.Value = TurretB.VY.Value + 0.1 | |
2644 | GrassA.TurretA.C0 = CFrame.new(20, 0.7, 55) * CFrame.fromEulerAnglesXYZ(0, TurretB.VY.Value, 0) | |
2645 | wait(0.0) | |
2646 | end | |
2647 | end) | |
2648 | TurnLeft.MouseButton1Up:connect(function() | |
2649 | ButtonB = nil | |
2650 | end) | |
2651 | TurnLeft.MouseLeave:connect(function() | |
2652 | ButtonB = nil | |
2653 | end) | |
2654 | Fire = Instance.new("TextButton") | |
2655 | Fire.Parent = Fram | |
2656 | Fire.Name = "Fire" | |
2657 | Fire.Text = "Fire" | |
2658 | Fire.Size = UDim2.new(0, 40, 0, 40) | |
2659 | Fire.Position = UDim2.new(0, 60, 0, 60) | |
2660 | Fire.BorderSizePixel = 0 | |
2661 | Fire.BackgroundColor3 = Color3.new(0, 0, 0) | |
2662 | Fire.TextColor3 = Color3.new(1, 1, 1) | |
2663 | Fire.MouseButton1Click:connect(function() | |
2664 | if (TurretB.Reload.Value == false) then | |
2665 | TurretB.Reload.Value = true | |
2666 | TurretG.BrickColor = BrickColor.new("Bright red") | |
2667 | Missile = Instance.new("Part") | |
2668 | Missile.Parent = game.Workspace | |
2669 | Missile.Name = "Missile" | |
2670 | Missile.TopSurface = 0 | |
2671 | Missile.BottomSurface = 0 | |
2672 | Missile.CanCollide = true | |
2673 | Missile.Anchored = false | |
2674 | Missile.Locked = true | |
2675 | Missile.BrickColor = BrickColor.new("Black") | |
2676 | Missile.formFactor = "Symmetric" | |
2677 | Missile.Size = Vector3.new(1, 2, 1) | |
2678 | Missile:BreakJoints() | |
2679 | Mesh = Instance.new("CylinderMesh") | |
2680 | Mesh.Parent = Missile | |
2681 | Mesh.Scale = Vector3.new(1, 1, 1) | |
2682 | Missile.CFrame = TurretG.CFrame * CFrame.new(0, -2, 0) | |
2683 | BV = Instance.new("BodyVelocity") | |
2684 | BV.Parent = Missile | |
2685 | BV.maxForce = Vector3.new(1e+999, 1e+999, 1e+999) | |
2686 | Frame = Missile.CFrame * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
2687 | BV.velocity = Frame.lookVector * 100 | |
2688 | MissileScript = script:clone() | |
2689 | MissileScript.Type.Value = "Missile" | |
2690 | MissileScript.Parent = Missile | |
2691 | TurretE.Smoke.Enabled = true | |
2692 | wait(0.1) | |
2693 | TurretE.Smoke.Enabled = false | |
2694 | wait(7.9) | |
2695 | TurretB.Reload.Value = false | |
2696 | if (Turreter ~= nil) then | |
2697 | TurretG.BrickColor = BrickColor.new("Bright yellow") | |
2698 | end | |
2699 | end | |
2700 | end) | |
2701 | ||
2702 | TurnRight = Instance.new("ImageButton") | |
2703 | TurnRight.Parent = Fram | |
2704 | TurnRight.Name = "Right" | |
2705 | TurnRight.Image = "http://www.roblox.com/asset/?id=30390056" | |
2706 | TurnRight.Size = UDim2.new(0, 40, 0, 40) | |
2707 | TurnRight.Position = UDim2.new(0, 110, 0, 60) | |
2708 | TurnRight.BorderSizePixel = 0 | |
2709 | TurnRight.BackgroundColor3 = Color3.new(0, 0, 0) | |
2710 | TurnRight.MouseButton1Down:connect(function() | |
2711 | ButtonB = TurnRight | |
2712 | while true do | |
2713 | if (ButtonB ~= TurnRight) then | |
2714 | break | |
2715 | end | |
2716 | TurretB.VY.Value = TurretB.VY.Value - 0.1 | |
2717 | GrassA.TurretA.C0 = CFrame.new(20, 0.7, 55) * CFrame.fromEulerAnglesXYZ(0, TurretB.VY.Value, 0) | |
2718 | wait(0.0) | |
2719 | end | |
2720 | end) | |
2721 | TurnRight.MouseButton1Up:connect(function() | |
2722 | ButtonB = nil | |
2723 | end) | |
2724 | TurnRight.MouseLeave:connect(function() | |
2725 | ButtonB = nil | |
2726 | end) | |
2727 | MoveDown = Instance.new("ImageButton") | |
2728 | MoveDown.Parent = Fram | |
2729 | MoveDown.Name = "Down" | |
2730 | MoveDown.Image = "http://www.roblox.com/asset/?id=30390064" | |
2731 | MoveDown.Size = UDim2.new(0, 40, 0, 40) | |
2732 | MoveDown.Position = UDim2.new(0, 60, 0, 110) | |
2733 | MoveDown.BorderSizePixel = 0 | |
2734 | MoveDown.BackgroundColor3 = Color3.new(0, 0, 0) | |
2735 | MoveDown.MouseButton1Down:connect(function() | |
2736 | ButtonB = MoveDown | |
2737 | while true do | |
2738 | if (ButtonB ~= MoveDown) then | |
2739 | break | |
2740 | end | |
2741 | TurretB.VX.Value = TurretB.VX.Value - 0.1 | |
2742 | if (TurretB.VX.Value < 0.3) then | |
2743 | TurretB.VX.Value = 0.3 | |
2744 | end | |
2745 | GrassA.TurretB.C0 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(TurretB.VX.Value, 0, 0) | |
2746 | wait(0.0) | |
2747 | end | |
2748 | end) | |
2749 | MoveDown.MouseButton1Up:connect(function() | |
2750 | ButtonB = nil | |
2751 | end) | |
2752 | MoveDown.MouseLeave:connect(function() | |
2753 | ButtonB = nil | |
2754 | end) | |
2755 | while true do | |
2756 | if (PlayerB == nil) then | |
2757 | break | |
2758 | end | |
2759 | if (PlayerB.Parent == nil) then | |
2760 | break | |
2761 | end | |
2762 | if (PlayerB.Character == nil) then | |
2763 | break | |
2764 | end | |
2765 | if (PlayerB.Character.Parent == nil) then | |
2766 | break | |
2767 | end | |
2768 | if (PlayerB.Character:findFirstChild("Humanoid") == nil) then | |
2769 | break | |
2770 | end | |
2771 | if (PlayerB.Character:findFirstChild("Torso") == nil) then | |
2772 | break | |
2773 | end | |
2774 | if (Turreter.Character.Humanoid.Health < 0.01) then | |
2775 | break | |
2776 | end | |
2777 | if ((Turreter.Character.Torso.Position - TurretB.Position).magnitude > 50) then | |
2778 | break | |
2779 | end | |
2780 | if (CloseBool == true) then | |
2781 | break | |
2782 | end | |
2783 | if (Turret == false) then | |
2784 | break | |
2785 | end | |
2786 | wait() | |
2787 | end | |
2788 | ButtonB = nil | |
2789 | GB:remove() | |
2790 | TurretG.BrickColor = BrickColor.new("Bright green") | |
2791 | wait(2) | |
2792 | Turreter = nil | |
2793 | end | |
2794 | end | |
2795 | end | |
2796 | end | |
2797 | end | |
2798 | end | |
2799 | end | |
2800 | end | |
2801 | end | |
2802 | TurretB.Touched:connect(TurretControl) | |
2803 | function SeatManagement(Char, Seat) | |
2804 | while true do | |
2805 | if (Char == nil) then | |
2806 | break | |
2807 | end | |
2808 | if (Seat == nil) then | |
2809 | break | |
2810 | end | |
2811 | if (Char.Parent == nil) then | |
2812 | break | |
2813 | end | |
2814 | if (Seat.Parent == nil) then | |
2815 | break | |
2816 | end | |
2817 | if (Seat:findFirstChild("SeatWeld") == nil) then | |
2818 | break | |
2819 | end | |
2820 | if (Char:findFirstChild("Humanoid") == nil) then | |
2821 | break | |
2822 | end | |
2823 | if (Char:findFirstChild("Torso") == nil) then | |
2824 | break | |
2825 | end | |
2826 | if (Char.Humanoid.Health < 0.01) then | |
2827 | break | |
2828 | end | |
2829 | if (Char.Humanoid.Jump == true) then | |
2830 | break | |
2831 | end | |
2832 | if (Char.Humanoid.Sit == false) then | |
2833 | --break | |
2834 | end | |
2835 | if (Char.Humanoid.PlatformStand == false) then | |
2836 | --break | |
2837 | end | |
2838 | wait() | |
2839 | end | |
2840 | if (Seat ~= nil) then | |
2841 | if (Seat.Parent ~= nil) then | |
2842 | if (Seat:findFirstChild("SeatWeld") ~= nil) then | |
2843 | Seat.SeatWeld:remove() | |
2844 | end | |
2845 | end | |
2846 | end | |
2847 | ||
2848 | ||
2849 | ||
2850 | end | |
2851 | ||
2852 | ||
2853 | ||
2854 | ||
2855 | ||
2856 | ||
2857 | ||
2858 | ||
2859 | ||
2860 | ||
2861 | ||
2862 | ||
2863 | ||
2864 | ||
2865 | ----Begin chat---- | |
2866 | ||
2867 | ||
2868 | ||
2869 | ||
2870 | ||
2871 | ||
2872 | function Chat(Words, Player) | |
2873 | OrigWords = Words | |
2874 | Words = Words:lower() | |
2875 | if (Player.Name == Person.Name) then | |
2876 | if (Words == "destruct") then | |
2877 | Model:remove() | |
2878 | script:remove() | |
2879 | end | |
2880 | end | |
2881 | ||
2882 | if (string.find(Words, "cmds") ~= nil) then | |
2883 | for i = 1, #Commands do | |
2884 | if not game:service("Workspace"):findFirstChild("CMDmsg") then | |
2885 | cmd = Instance.new("Hint", Workspace) | |
2886 | cmd.Name = "CMDmsg" | |
2887 | cmd.Text = Commands[i].."" | |
2888 | wait(1) | |
2889 | cmd:remove() | |
2890 | end | |
2891 | end | |
2892 | end | |
2893 | ||
2894 | if (string.find(Words, "turret") ~= nil) then | |
2895 | Turret = not Turret | |
2896 | end | |
2897 | ||
2898 | if (string.find(Words, "windowa") ~= nil) then | |
2899 | if (WindowA.Status.Value == 1) then | |
2900 | WindowA.Status.Value = 0 | |
2901 | F1 = WallH.CFrame * CFrame.new(-6.5, -7, -7) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, math.pi/4) | |
2902 | J = (math.pi/4)/50 | |
2903 | for I = 1, 50 do | |
2904 | F1 = F1 * CFrame.fromEulerAnglesXYZ(0, 0, J) | |
2905 | F2 = F1 * CFrame.new(0.2, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
2906 | HitPos = WallH.Position | |
2907 | CJ = CFrame.new(HitPos) | |
2908 | C0 = WallH.CFrame:inverse() *CJ | |
2909 | C1 = F2:inverse() * CJ | |
2910 | GrassA.WindowAWeld.Part0 = WallH | |
2911 | GrassA.WindowAWeld.C0 = C0 | |
2912 | GrassA.WindowAWeld.C1 = C1 | |
2913 | wait(0.01) | |
2914 | end | |
2915 | WindowA.Status.Value = 2 | |
2916 | elseif (WindowA.Status.Value == 2) then | |
2917 | WindowA.Status.Value = 0 | |
2918 | F1 = WallH.CFrame * CFrame.new(-6.5, -7, -7) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, (math.pi/4) * 2) | |
2919 | J = (math.pi/4)/50 | |
2920 | for I = 1, 50 do | |
2921 | F1 = F1 * CFrame.fromEulerAnglesXYZ(0, 0, -J) | |
2922 | F2 = F1 * CFrame.new(0.2, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
2923 | HitPos = WallH.Position | |
2924 | CJ = CFrame.new(HitPos) | |
2925 | C0 = WallH.CFrame:inverse() *CJ | |
2926 | C1 = F2:inverse() * CJ | |
2927 | GrassA.WindowAWeld.Part0 = WallH | |
2928 | GrassA.WindowAWeld.C0 = C0 | |
2929 | GrassA.WindowAWeld.C1 = C1 | |
2930 | wait(0.01) | |
2931 | end | |
2932 | WindowA.Status.Value = 1 | |
2933 | end | |
2934 | end | |
2935 | ||
2936 | if (string.find(Words, "ladder") ~= nil) then | |
2937 | if (LadderA.Status.Value == 1) then | |
2938 | LadderA.Status.Value = 0 | |
2939 | for I = 1, 20 do | |
2940 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2941 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
2942 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
2943 | GrassA.LadderD.C0 = GrassA.LadderA.C0 | |
2944 | GrassA.LadderE.C0 = GrassA.LadderA.C0 | |
2945 | wait(0.01) | |
2946 | end | |
2947 | for I = 1, 20 do | |
2948 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2949 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
2950 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
2951 | GrassA.LadderD.C0 = GrassA.LadderA.C0 | |
2952 | wait(0.01) | |
2953 | end | |
2954 | for I = 1, 20 do | |
2955 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2956 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
2957 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
2958 | wait(0.01) | |
2959 | end | |
2960 | for I = 1, 20 do | |
2961 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2962 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
2963 | wait(0.01) | |
2964 | end | |
2965 | for I = 1, 20 do | |
2966 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2967 | wait(0.01) | |
2968 | end | |
2969 | LadderA.Status.Value = 2 | |
2970 | elseif (LadderA.Status.Value == 2) then | |
2971 | LadderA.Status.Value = 0 | |
2972 | for I = 1, 20 do | |
2973 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2974 | wait(0.01) | |
2975 | end | |
2976 | for I = 1, 20 do | |
2977 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2978 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
2979 | wait(0.01) | |
2980 | end | |
2981 | for I = 1, 20 do | |
2982 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2983 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
2984 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
2985 | wait(0.01) | |
2986 | end | |
2987 | for I = 1, 20 do | |
2988 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2989 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
2990 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
2991 | GrassA.LadderD.C0 = GrassA.LadderA.C0 | |
2992 | wait(0.01) | |
2993 | end | |
2994 | for I = 1, 20 do | |
2995 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
2996 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
2997 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
2998 | GrassA.LadderD.C0 = GrassA.LadderA.C0 | |
2999 | GrassA.LadderE.C0 = GrassA.LadderA.C0 | |
3000 | wait(0.01) | |
3001 | end | |
3002 | LadderA.Status.Value = 1 | |
3003 | end | |
3004 | end | |
3005 | ||
3006 | if (string.find(Words, "front door") ~= nil) then | |
3007 | if (FrontDoor.Status.Value == 1) then | |
3008 | FrontDoor.Status.Value = 0 | |
3009 | for I = 1, 100 do | |
3010 | GrassA.FrontDoorWeld.C0 = CFrame.new(-10, (-5.7) + (0.1 * I), 10.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
3011 | wait(0.01) | |
3012 | end | |
3013 | FrontDoor.Status.Value = 2 | |
3014 | elseif (FrontDoor.Status.Value == 2) then | |
3015 | FrontDoor.Status.Value = 0 | |
3016 | for I = 1, 120 do | |
3017 | GrassA.FrontDoorWeld.C0 = CFrame.new(-10, 4.3 - (0.1 * I), 10.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
3018 | wait(0.01) | |
3019 | end | |
3020 | FrontDoor.Status.Value = 1 | |
3021 | end | |
3022 | end | |
3023 | ||
3024 | if (string.find(Words, "controls") ~= nil) then | |
3025 | if (Controls == true) then | |
3026 | Controls = false | |
3027 | ControlPanelA.Transparency = 1 | |
3028 | ControlPanelA.CanCollide = false | |
3029 | ControlPanelB.Transparency = 1 | |
3030 | ControlPanelB.CanCollide = false | |
3031 | ControlPanelC.Transparency = 1 | |
3032 | ControlPanelC.CanCollide = false | |
3033 | ControlPanelD.Transparency = 1 | |
3034 | ControlPanelD.CanCollide = false | |
3035 | else | |
3036 | Controls = true | |
3037 | ControlPanelA.Transparency = 0 | |
3038 | ControlPanelA.CanCollide = true | |
3039 | ControlPanelB.Transparency = 0 | |
3040 | ControlPanelB.CanCollide = true | |
3041 | ControlPanelC.Transparency = 0 | |
3042 | ControlPanelC.CanCollide = true | |
3043 | ControlPanelD.Transparency = 0 | |
3044 | ControlPanelD.CanCollide = true | |
3045 | end | |
3046 | end | |
3047 | ||
3048 | if (string.sub(Words, 1, 2) == "up") then | |
3049 | Mess = string.sub(Words, 4) | |
3050 | V = game.Players:GetChildren() | |
3051 | for I, E in pairs(V) do | |
3052 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
3053 | if (E.Character ~= nil) then | |
3054 | if (E.Character:findFirstChild("Torso") ~= nil) then | |
3055 | E.Character.Torso.CFrame = FloorA.CFrame * CFrame.new(-20, 5, 0) | |
3056 | end | |
3057 | end | |
3058 | end | |
3059 | end | |
3060 | end | |
3061 | ||
3062 | if (string.sub(Words,1,4) == "kick") then | |
3063 | Mess = string.sub(Words, 6) | |
3064 | V = game.Players:GetChildren() | |
3065 | for I, E in pairs(V) do | |
3066 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
3067 | pcall(function() | |
3068 | E:Remove() | |
3069 | end) | |
3070 | S = Instance.new("Hint", Workspace) | |
3071 | S.Text = "[Kick] "..v.Name.." Removed." | |
3072 | wait(3) | |
3073 | S:remove() | |
3074 | end | |
3075 | end | |
3076 | ||
3077 | if (string.find(Words, "shutdown") ~= nil) then | |
3078 | for i = 5, 0, -1 do | |
3079 | x = Instance.new("Hint", Workspace) | |
3080 | x.Text = "Shutting Down:" ..i wait(1) | |
3081 | x:remove() | |
3082 | end | |
3083 | for _,v in pairs(game.Players:GetPlayers()) do | |
3084 | v:remove() | |
3085 | end | |
3086 | end | |
3087 | end | |
3088 | ||
3089 | if (string.find(Words, "infuse") ~= nil) then | |
3090 | Tab = {string.find(Words, "infuse")} | |
3091 | print(Tab[2]) | |
3092 | Name1 = string.sub(Words, 1, Tab[1] - 2) | |
3093 | Name2 = string.sub(Words, Tab[2] + 2, string.len(Words)) | |
3094 | Player1 = nil | |
3095 | Player2 = nil | |
3096 | L = game.Players:GetChildren() | |
3097 | for Q, A in pairs(L) do | |
3098 | if (string.sub(A.Name:lower(), 1, string.len(Name1)) == Name1) then | |
3099 | Player1 = A | |
3100 | end | |
3101 | if (string.sub(A.Name:lower(), 1, string.len(Name2)) == Name2) then | |
3102 | Player2 = A | |
3103 | end | |
3104 | end | |
3105 | if (Player1 ~= nil) then | |
3106 | if (Player2 ~= nil) then | |
3107 | if (Player2.Character ~= nil) then | |
3108 | Player1.Character = Player2.Character | |
3109 | end | |
3110 | end | |
3111 | end | |
3112 | end | |
3113 | ||
3114 | if (string.sub(Words, 1, 4) == "seat") then | |
3115 | Mess = string.sub(Words, 6) | |
3116 | V = game.Players:GetChildren() | |
3117 | for I, E in pairs(V) do | |
3118 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
3119 | if (E.Character ~= nil) then | |
3120 | if (E.Character:findFirstChild("Humanoid") ~= nil) then | |
3121 | if (E.Character:findFirstChild("Torso") ~= nil) then | |
3122 | Seats = {SeatA, SeatB, SeatC, SeatD, SeatE, SeatF, SeatG, SeatH} | |
3123 | for F, D in pairs(Seats) do | |
3124 | if (D:findFirstChild("SeatWeld") == nil) then | |
3125 | E.Character.Torso.CFrame = D.CFrame * CFrame.new(0, 5, 0) | |
3126 | E.Character.Humanoid.Sit = true | |
3127 | SeatWeld = Instance.new("Weld") | |
3128 | SeatWeld.Parent = D | |
3129 | SeatWeld.Name = "SeatWeld" | |
3130 | SeatWeld.Part0 = D | |
3131 | SeatWeld.Part1 = E.Character.Torso | |
3132 | SeatWeld.C0 = CFrame.new(0, 0.4, 0) | |
3133 | SeatWeld.C1 = CFrame.new(0, -1.5, 0) | |
3134 | coroutine.resume(coroutine.create(SeatManagement), E.Character, D) | |
3135 | break | |
3136 | end | |
3137 | end | |
3138 | ||
3139 | end | |
3140 | end | |
3141 | end | |
3142 | end | |
3143 | end | |
3144 | end | |
3145 | if (string.sub(Words, 1, 6) == "murder") then | |
3146 | Mess = string.sub(Words, 8) | |
3147 | V = game.Players:GetChildren() | |
3148 | for I, E in pairs(V) do | |
3149 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
3150 | if (E.Character ~= nil) then | |
3151 | E.Character:BreakJoints() | |
3152 | end | |
3153 | end | |
3154 | end | |
3155 | end | |
3156 | if (string.sub(Words, 1, 4) == "down") then | |
3157 | Mess = string.sub(Words, 6) | |
3158 | V = game.Players:GetChildren() | |
3159 | for I, E in pairs(V) do | |
3160 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
3161 | if (E.Character ~= nil) then | |
3162 | if (E.Character:findFirstChild("Torso") ~= nil) then | |
3163 | E.Character.Torso.CFrame = CFrame.new(0, 5, 0) | |
3164 | end | |
3165 | end | |
3166 | end | |
3167 | end | |
3168 | end | |
3169 | ||
3170 | if (string.find(Words, "sleep") ~= nil) then | |
3171 | Player.Character.Humanoid.PlatformStand = not Player.Character.Humanoid.PlatformStand | |
3172 | end | |
3173 | if (string.find(Words, "dima") ~= nil) then | |
3174 | if (WindowA.Transparency == 0.5) then | |
3175 | for I = 1, 3 do | |
3176 | wait(0.1) | |
3177 | WindowA.Transparency = WindowA.Transparency - 0.1 | |
3178 | end | |
3179 | WindowA.BrickColor = BrickColor.new("Brown") | |
3180 | for I = 1, 2 do | |
3181 | wait(0.1) | |
3182 | WindowA.Transparency = WindowA.Transparency - 0.1 | |
3183 | end | |
3184 | else | |
3185 | for I = 1, 3 do | |
3186 | wait(0.1) | |
3187 | WindowA.Transparency = WindowA.Transparency + 0.1 | |
3188 | end | |
3189 | WindowA.BrickColor = BrickColor.new("Medium blue") | |
3190 | for I = 1, 2 do | |
3191 | wait(0.1) | |
3192 | WindowA.Transparency = WindowA.Transparency + 0.1 | |
3193 | end | |
3194 | end | |
3195 | end | |
3196 | ||
3197 | ||
3198 | if (string.find(Words, "dimb") ~= nil) then | |
3199 | if (WindowB.Transparency == 0.5) then | |
3200 | for I = 1, 3 do | |
3201 | wait(0.1) | |
3202 | WindowB.Transparency = WindowB.Transparency - 0.1 | |
3203 | WindowC.Transparency = WindowC.Transparency - 0.1 | |
3204 | WindowD.Transparency = WindowD.Transparency - 0.1 | |
3205 | WindowE.Transparency = WindowE.Transparency - 0.1 | |
3206 | WindowF.Transparency = WindowF.Transparency - 0.1 | |
3207 | WindowG.Transparency = WindowG.Transparency - 0.1 | |
3208 | WindowH.Transparency = WindowH.Transparency - 0.1 | |
3209 | WindowI.Transparency = WindowI.Transparency - 0.1 | |
3210 | end | |
3211 | WindowB.BrickColor = BrickColor.new("Brown") | |
3212 | WindowC.BrickColor = BrickColor.new("Brown") | |
3213 | WindowD.BrickColor = BrickColor.new("Brown") | |
3214 | WindowE.BrickColor = BrickColor.new("Brown") | |
3215 | WindowF.BrickColor = BrickColor.new("Brown") | |
3216 | WindowG.BrickColor = BrickColor.new("Brown") | |
3217 | WindowH.BrickColor = BrickColor.new("Brown") | |
3218 | WindowI.BrickColor = BrickColor.new("Brown") | |
3219 | for I = 1, 2 do | |
3220 | wait(0.1) | |
3221 | WindowB.Transparency = WindowB.Transparency - 0.1 | |
3222 | WindowC.Transparency = WindowC.Transparency - 0.1 | |
3223 | WindowD.Transparency = WindowD.Transparency - 0.1 | |
3224 | WindowE.Transparency = WindowE.Transparency - 0.1 | |
3225 | WindowF.Transparency = WindowF.Transparency - 0.1 | |
3226 | WindowG.Transparency = WindowG.Transparency - 0.1 | |
3227 | WindowH.Transparency = WindowH.Transparency - 0.1 | |
3228 | WindowI.Transparency = WindowI.Transparency - 0.1 | |
3229 | end | |
3230 | else | |
3231 | for I = 1, 3 do | |
3232 | wait(0.1) | |
3233 | WindowB.Transparency = WindowB.Transparency + 0.1 | |
3234 | WindowC.Transparency = WindowC.Transparency + 0.1 | |
3235 | WindowD.Transparency = WindowD.Transparency + 0.1 | |
3236 | WindowE.Transparency = WindowE.Transparency + 0.1 | |
3237 | WindowF.Transparency = WindowF.Transparency + 0.1 | |
3238 | WindowG.Transparency = WindowG.Transparency + 0.1 | |
3239 | WindowH.Transparency = WindowH.Transparency + 0.1 | |
3240 | WindowI.Transparency = WindowI.Transparency + 0.1 | |
3241 | end | |
3242 | WindowB.BrickColor = BrickColor.new("Medium blue") | |
3243 | WindowC.BrickColor = BrickColor.new("Medium blue") | |
3244 | WindowD.BrickColor = BrickColor.new("Medium blue") | |
3245 | WindowE.BrickColor = BrickColor.new("Medium blue") | |
3246 | WindowF.BrickColor = BrickColor.new("Medium blue") | |
3247 | WindowG.BrickColor = BrickColor.new("Medium blue") | |
3248 | WindowH.BrickColor = BrickColor.new("Medium blue") | |
3249 | WindowI.BrickColor = BrickColor.new("Medium blue") | |
3250 | for I = 1, 2 do | |
3251 | wait(0.1) | |
3252 | WindowB.Transparency = WindowB.Transparency + 0.1 | |
3253 | WindowC.Transparency = WindowC.Transparency + 0.1 | |
3254 | WindowD.Transparency = WindowD.Transparency + 0.1 | |
3255 | WindowE.Transparency = WindowE.Transparency + 0.1 | |
3256 | WindowF.Transparency = WindowF.Transparency + 0.1 | |
3257 | WindowG.Transparency = WindowG.Transparency + 0.1 | |
3258 | WindowH.Transparency = WindowH.Transparency + 0.1 | |
3259 | WindowI.Transparency = WindowI.Transparency + 0.1 | |
3260 | end | |
3261 | end | |
3262 | end | |
3263 | ||
3264 | if (Words == "fix") then | |
3265 | Model.Parent = game.Workspace | |
3266 | for I, E in pairs(Parts) do | |
3267 | E.Parent = Model | |
3268 | end | |
3269 | for V, C in pairs(Welds) do | |
3270 | C.Parent = GrassA | |
3271 | end | |
3272 | end | |
3273 | end | |
3274 | ||
3275 | function Check(Property, Player) | |
3276 | if (Property == "Character") then | |
3277 | if (Player.Character ~= nil) then | |
3278 | Spawn(Player) | |
3279 | end | |
3280 | end | |
3281 | end | |
3282 | ||
3283 | function Spawn(Player) | |
3284 | wait(0.1) | |
3285 | Player.Character.Torso.CFrame = FloorA.CFrame * CFrame.new(-20, 5, 0) | |
3286 | end | |
3287 | ||
3288 | function List(Table, Value) | |
3289 | Results = false | |
3290 | for I, E in pairs(Table) do | |
3291 | if (E:lower() == Value:lower()) then | |
3292 | Results = true | |
3293 | end | |
3294 | end | |
3295 | return Results | |
3296 | end | |
3297 | ||
3298 | function Ban() | |
3299 | local L = game.Players:GetChildren() | |
3300 | for I, E in pairs(L) do | |
3301 | if (List(Banned, E.Name) == true) then | |
3302 | E:remove() | |
3303 | local Hint = Instance.new("Hint") | |
3304 | Hint.Parent = game.Workspace | |
3305 | Hint.Text = "Removed "..E | |
3306 | wait(2) | |
3307 | Hint:remove() | |
3308 | end | |
3309 | end | |
3310 | end | |
3311 | end | |
3312 | ||
3313 | function Enter(Player) | |
3314 | if (List(TehList, Player.Name) == true) then | |
3315 | Player.Chatted:connect(function(msg) Chat(msg, Player) end) | |
3316 | Player.Changed:connect(function(Property) Check(Property, Player) end) | |
3317 | end | |
3318 | end | |
3319 | ||
3320 | game.Players.PlayerAdded:connect(function(v) | |
3321 | Enter(v) | |
3322 | end) | |
3323 | ||
3324 | ||
3325 | for i,v in pairs(Game.Players:GetPlayers()) do | |
3326 | Enter(v) | |
3327 | end |