SHOW:
|
|
- or go back to the newest paste.
1 | --Converted with ttyyuu12345's model to script plugin v4 | |
2 | function sandbox(var,func) | |
3 | local env = getfenv(func) | |
4 | local newenv = setmetatable({},{ | |
5 | __index = function(self,k) | |
6 | if k=="script" then | |
7 | return var | |
8 | else | |
9 | return env[k] | |
10 | end | |
11 | end, | |
12 | }) | |
13 | setfenv(func,newenv) | |
14 | return func | |
15 | end | |
16 | cors = {} | |
17 | mas = Instance.new("Model",game:GetService("Lighting")) | |
18 | local chil = workspace:GetChildren() | |
19 | for i,v in pairs(chil) do | |
20 | if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then | |
21 | v:Destroy() | |
22 | end | |
23 | end | |
24 | Model0 = Instance.new("Model") | |
25 | Part1 = Instance.new("Part") | |
26 | BlockMesh2 = Instance.new("BlockMesh") | |
27 | Decal3 = Instance.new("Decal") | |
28 | ManualWeld4 = Instance.new("ManualWeld") | |
29 | Part5 = Instance.new("Part") | |
30 | BlockMesh6 = Instance.new("BlockMesh") | |
31 | Decal7 = Instance.new("Decal") | |
32 | Part8 = Instance.new("Part") | |
33 | CylinderMesh9 = Instance.new("CylinderMesh") | |
34 | Part10 = Instance.new("Part") | |
35 | CylinderMesh11 = Instance.new("CylinderMesh") | |
36 | Part12 = Instance.new("Part") | |
37 | BlockMesh13 = Instance.new("BlockMesh") | |
38 | Decal14 = Instance.new("Decal") | |
39 | ManualWeld15 = Instance.new("ManualWeld") | |
40 | ManualWeld16 = Instance.new("ManualWeld") | |
41 | ManualWeld17 = Instance.new("ManualWeld") | |
42 | ManualWeld18 = Instance.new("ManualWeld") | |
43 | ManualWeld19 = Instance.new("ManualWeld") | |
44 | ManualWeld20 = Instance.new("ManualWeld") | |
45 | ManualWeld21 = Instance.new("ManualWeld") | |
46 | ManualWeld22 = Instance.new("ManualWeld") | |
47 | Part23 = Instance.new("Part") | |
48 | BlockMesh24 = Instance.new("BlockMesh") | |
49 | Decal25 = Instance.new("Decal") | |
50 | ManualWeld26 = Instance.new("ManualWeld") | |
51 | ManualWeld27 = Instance.new("ManualWeld") | |
52 | Part28 = Instance.new("Part") | |
53 | CylinderMesh29 = Instance.new("CylinderMesh") | |
54 | ManualWeld30 = Instance.new("ManualWeld") | |
55 | Part31 = Instance.new("Part") | |
56 | CylinderMesh32 = Instance.new("CylinderMesh") | |
57 | Part33 = Instance.new("Part") | |
58 | CylinderMesh34 = Instance.new("CylinderMesh") | |
59 | ClickDetector35 = Instance.new("ClickDetector") | |
60 | Part36 = Instance.new("Part") | |
61 | CylinderMesh37 = Instance.new("CylinderMesh") | |
62 | Script38 = Instance.new("Script") | |
63 | Part39 = Instance.new("Part") | |
64 | Part40 = Instance.new("Part") | |
65 | CylinderMesh41 = Instance.new("CylinderMesh") | |
66 | Part42 = Instance.new("Part") | |
67 | SpecialMesh43 = Instance.new("SpecialMesh") | |
68 | Sound44 = Instance.new("Sound") | |
69 | Part45 = Instance.new("Part") | |
70 | Model0.Name = "BassCannon" | |
71 | Model0.Parent = mas | |
72 | Part1.Name = "LeftBass" | |
73 | Part1.Parent = Model0 | |
74 | Part1.BrickColor = BrickColor.new("Really black") | |
75 | Part1.Rotation = Vector3.new(0, 90, 0) | |
76 | Part1.FormFactor = Enum.FormFactor.Custom | |
77 | Part1.Size = Vector3.new(0.200000003, 1.59999967, 1.59999967) | |
78 | Part1.CFrame = CFrame.new(0.799989522, 1.40001047, -1.89999044, 2.66693897e-14, 0, 1, 0, 1, 0, -1, 0, -2.66693897e-14) | |
79 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
80 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
81 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
82 | Part1.Position = Vector3.new(0.799989522, 1.40001047, -1.89999044) | |
83 | Part1.Orientation = Vector3.new(0, 90, 0) | |
84 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
85 | BlockMesh2.Parent = Part1 | |
86 | Decal3.Parent = Part1 | |
87 | Decal3.Texture = "http://www.roblox.com/asset/?id=38644934" | |
88 | Decal3.Face = Enum.NormalId.Right | |
89 | ManualWeld4.Name = "Part-to-Part Strong Joint" | |
90 | ManualWeld4.Parent = Part1 | |
91 | ManualWeld4.C0 = CFrame.new(0.100000001, -0.799999833, -0.799999833, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
92 | ManualWeld4.C1 = CFrame.new(0.0999999046, -0.800000191, 0.800000548, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
93 | ManualWeld4.Part0 = Part1 | |
94 | ManualWeld4.Part1 = Part5 | |
95 | Part5.Name = "RightBass" | |
96 | Part5.Parent = Model0 | |
97 | Part5.BrickColor = BrickColor.new("Really black") | |
98 | Part5.Rotation = Vector3.new(0, 90, 0) | |
99 | Part5.FormFactor = Enum.FormFactor.Custom | |
100 | Part5.Size = Vector3.new(0.200000003, 1.59999967, 1.59999967) | |
101 | Part5.CFrame = CFrame.new(-0.80001086, 1.40001094, -1.89999044, 3.39263394e-14, 0, 1, 0, 1, 0, -1, 0, -3.39263394e-14) | |
102 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
103 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
104 | Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
105 | Part5.Position = Vector3.new(-0.80001086, 1.40001094, -1.89999044) | |
106 | Part5.Orientation = Vector3.new(0, 90, 0) | |
107 | Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
108 | BlockMesh6.Parent = Part5 | |
109 | Decal7.Parent = Part5 | |
110 | Decal7.Texture = "http://www.roblox.com/asset/?id=38644934" | |
111 | Decal7.Face = Enum.NormalId.Right | |
112 | Part8.Parent = Model0 | |
113 | Part8.BrickColor = BrickColor.new("Black") | |
114 | Part8.Rotation = Vector3.new(-90, 0, 90) | |
115 | Part8.FormFactor = Enum.FormFactor.Custom | |
116 | Part8.Size = Vector3.new(1.39999998, 0.200000003, 1.39999998) | |
117 | Part8.CFrame = CFrame.new(-1.70001042, 0.700011134, -1.09999049, 4.1183284e-14, -1, 0, 0, 0, 1, -1, 4.1183284e-14, -0) | |
118 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
119 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
120 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
121 | Part8.Position = Vector3.new(-1.70001042, 0.700011134, -1.09999049) | |
122 | Part8.Orientation = Vector3.new(-90, 90, 0) | |
123 | Part8.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
124 | CylinderMesh9.Parent = Part8 | |
125 | Part10.Parent = Model0 | |
126 | Part10.BrickColor = BrickColor.new("Black") | |
127 | Part10.Rotation = Vector3.new(-90, 0, 90) | |
128 | Part10.FormFactor = Enum.FormFactor.Custom | |
129 | Part10.Size = Vector3.new(1.39999998, 0.200000003, 1.39999998) | |
130 | Part10.CFrame = CFrame.new(1.69998932, 0.700011134, -1.09999049, 4.1183284e-14, -1, 0, 0, 0, 1, -1, 4.1183284e-14, -0) | |
131 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
132 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
133 | Part10.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
134 | Part10.Position = Vector3.new(1.69998932, 0.700011134, -1.09999049) | |
135 | Part10.Orientation = Vector3.new(-90, 90, 0) | |
136 | Part10.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
137 | CylinderMesh11.Parent = Part10 | |
138 | Part12.Parent = Model0 | |
139 | Part12.BrickColor = BrickColor.new("Really black") | |
140 | Part12.Rotation = Vector3.new(0, 90, 0) | |
141 | Part12.FormFactor = Enum.FormFactor.Custom | |
142 | Part12.Size = Vector3.new(3.20000005, 3.20000005, 3.20000005) | |
143 | Part12.CFrame = CFrame.new(-1.07615815e-05, 2.20001078, -0.199990511, 4.1183284e-14, 0, 1, 0, 1, 0, -1, -0, -4.1183284e-14) | |
144 | Part12.BackSurface = Enum.SurfaceType.Weld | |
145 | Part12.BottomSurface = Enum.SurfaceType.Weld | |
146 | Part12.FrontSurface = Enum.SurfaceType.Weld | |
147 | Part12.LeftSurface = Enum.SurfaceType.Weld | |
148 | Part12.RightSurface = Enum.SurfaceType.Weld | |
149 | Part12.TopSurface = Enum.SurfaceType.Weld | |
150 | Part12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
151 | Part12.Position = Vector3.new(-1.07615815e-05, 2.20001078, -0.199990511) | |
152 | Part12.Orientation = Vector3.new(0, 90, 0) | |
153 | Part12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
154 | BlockMesh13.Parent = Part12 | |
155 | Decal14.Parent = Part12 | |
156 | Decal14.Texture = "http://www.roblox.com/asset/?id=78307463" | |
157 | Decal14.Face = Enum.NormalId.Right | |
158 | ManualWeld15.Name = "Part-to-Part Strong Joint" | |
159 | ManualWeld15.Parent = Part12 | |
160 | ManualWeld15.C0 = CFrame.new(1.60000002, -1.60000002, -1.60000002, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
161 | ManualWeld15.C1 = CFrame.new(0.700000048, -0.0999996662, -0.100000381, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
162 | ManualWeld15.Part0 = Part12 | |
163 | ManualWeld15.Part1 = Part8 | |
164 | ManualWeld16.Name = "Part-to-Part Strong Joint" | |
165 | ManualWeld16.Parent = Part12 | |
166 | ManualWeld16.C0 = CFrame.new(-1.60000002, -1.60000002, 1.60000002, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
167 | ManualWeld16.C1 = CFrame.new(-2.5, 0.100000024, -0.100000381, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
168 | ManualWeld16.Part0 = Part12 | |
169 | ManualWeld16.Part1 = Part10 | |
170 | ManualWeld17.Name = "Part-to-Part Strong Joint" | |
171 | ManualWeld17.Parent = Part12 | |
172 | ManualWeld17.C0 = CFrame.new(1.60000002, -1.60000002, 1.60000002, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
173 | ManualWeld17.C1 = CFrame.new(-0.0999999046, -0.799999714, 0.799999714, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
174 | ManualWeld17.Part0 = Part12 | |
175 | ManualWeld17.Part1 = Part1 | |
176 | ManualWeld18.Name = "Part-to-Part Strong Joint" | |
177 | ManualWeld18.Parent = Part12 | |
178 | ManualWeld18.C0 = CFrame.new(1.60000002, -1.60000002, -1.60000002, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
179 | ManualWeld18.C1 = CFrame.new(2.5, -0.0999999046, -0.100000381, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
180 | ManualWeld18.Part0 = Part12 | |
181 | ManualWeld18.Part1 = Part31 | |
182 | ManualWeld19.Name = "Part-to-Part Strong Joint" | |
183 | ManualWeld19.Parent = Part12 | |
184 | ManualWeld19.C0 = CFrame.new(-1.60000002, 1.60000002, 1.60000002, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
185 | ManualWeld19.C1 = CFrame.new(-1.00000012, -0.100001335, 1.60000002, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
186 | ManualWeld19.Part0 = Part12 | |
187 | ManualWeld19.Part1 = Part28 | |
188 | ManualWeld20.Name = "Part-to-Part Strong Joint" | |
189 | ManualWeld20.Parent = Part12 | |
190 | ManualWeld20.C0 = CFrame.new(1.60000002, -1.60000002, 1.60000002, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
191 | ManualWeld20.C1 = CFrame.new(-0.0999999046, 1.60000026, 2.40000057, 0, 0, 1, -1, 0, 0, 0, -1, 0) | |
192 | ManualWeld20.Part0 = Part12 | |
193 | ManualWeld20.Part1 = Part23 | |
194 | ManualWeld21.Name = "Part-to-Part Strong Joint" | |
195 | ManualWeld21.Parent = Part12 | |
196 | ManualWeld21.C0 = CFrame.new(1.60000002, -1.60000002, 1.60000002, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
197 | ManualWeld21.C1 = CFrame.new(-0.0999999046, -0.800000191, 2.4000001, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
198 | ManualWeld21.Part0 = Part12 | |
199 | ManualWeld21.Part1 = Part5 | |
200 | ManualWeld22.Name = "Part-to-Part Strong Joint" | |
201 | ManualWeld22.Parent = Part12 | |
202 | ManualWeld22.C0 = CFrame.new(-1.60000002, -1.60000002, 1.60000002, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
203 | ManualWeld22.C1 = CFrame.new(-0.699999928, 0.100000024, -0.0999999046, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
204 | ManualWeld22.Part0 = Part12 | |
205 | ManualWeld22.Part1 = Part36 | |
206 | Part23.Name = "TopBass" | |
207 | Part23.Parent = Model0 | |
208 | Part23.BrickColor = BrickColor.new("Really black") | |
209 | Part23.Rotation = Vector3.new(90, 0, -90) | |
210 | Part23.FormFactor = Enum.FormFactor.Custom | |
211 | Part23.Size = Vector3.new(0.200000003, 3.20000005, 1.59999967) | |
212 | Part23.CFrame = CFrame.new(-1.10000001e-05, 3.00001144, -1.89999044, 4.1183284e-14, 1, 0, 0, 0, -1, -1, -4.1183284e-14, 0) | |
213 | Part23.BottomSurface = Enum.SurfaceType.Smooth | |
214 | Part23.TopSurface = Enum.SurfaceType.Smooth | |
215 | Part23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
216 | Part23.Position = Vector3.new(-1.10000001e-05, 3.00001144, -1.89999044) | |
217 | Part23.Orientation = Vector3.new(90, 90, 0) | |
218 | Part23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
219 | BlockMesh24.Parent = Part23 | |
220 | Decal25.Parent = Part23 | |
221 | Decal25.Texture = "http://www.roblox.com/asset/?id=38644906" | |
222 | Decal25.Face = Enum.NormalId.Right | |
223 | ManualWeld26.Name = "Part-to-Part Strong Joint" | |
224 | ManualWeld26.Parent = Part23 | |
225 | ManualWeld26.C0 = CFrame.new(-0.100000001, -1.60000002, 0.799999833, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
226 | ManualWeld26.C1 = CFrame.new(-0.100000024, 0.800001144, -2.40000057, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
227 | ManualWeld26.Part0 = Part23 | |
228 | ManualWeld26.Part1 = Part1 | |
229 | ManualWeld27.Name = "Part-to-Part Strong Joint" | |
230 | ManualWeld27.Parent = Part23 | |
231 | ManualWeld27.C0 = CFrame.new(-0.100000001, -1.60000002, 0.799999833, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
232 | ManualWeld27.C1 = CFrame.new(-0.100000024, 0.800000668, -0.800000191, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
233 | ManualWeld27.Part0 = Part23 | |
234 | ManualWeld27.Part1 = Part5 | |
235 | Part28.Parent = Model0 | |
236 | Part28.BrickColor = BrickColor.new("Really black") | |
237 | Part28.Rotation = Vector3.new(0, 90, 0) | |
238 | Part28.FormFactor = Enum.FormFactor.Custom | |
239 | Part28.Size = Vector3.new(0.600000024, 0.200000003, 0.600000024) | |
240 | Part28.CFrame = CFrame.new(-1.07615815e-05, 3.90001202, 0.400009394, 4.1183284e-14, 0, 1, 0, 1, 0, -1, -0, -4.1183284e-14) | |
241 | Part28.BottomSurface = Enum.SurfaceType.Smooth | |
242 | Part28.TopSurface = Enum.SurfaceType.Smooth | |
243 | Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
244 | Part28.Position = Vector3.new(-1.07615815e-05, 3.90001202, 0.400009394) | |
245 | Part28.Orientation = Vector3.new(0, 90, 0) | |
246 | Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
247 | CylinderMesh29.Parent = Part28 | |
248 | ManualWeld30.Name = "Part-to-Part Strong Joint" | |
249 | ManualWeld30.Parent = Part28 | |
250 | ManualWeld30.C0 = CFrame.new(-0.300000012, 0.100000001, 0.300000012, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
251 | ManualWeld30.C1 = CFrame.new(-0.300000012, -0.099998951, 0.300000012, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
252 | ManualWeld30.Part0 = Part28 | |
253 | ManualWeld30.Part1 = Part33 | |
254 | Part31.Parent = Model0 | |
255 | Part31.BrickColor = BrickColor.new("Black") | |
256 | Part31.Rotation = Vector3.new(-90, 0, 90) | |
257 | Part31.FormFactor = Enum.FormFactor.Custom | |
258 | Part31.Size = Vector3.new(1.39999998, 0.200000003, 1.39999998) | |
259 | Part31.CFrame = CFrame.new(-1.70001066, 0.700011134, 0.700009465, 4.1183284e-14, -1, 0, 0, 0, 1, -1, 4.1183284e-14, -0) | |
260 | Part31.BottomSurface = Enum.SurfaceType.Smooth | |
261 | Part31.TopSurface = Enum.SurfaceType.Smooth | |
262 | Part31.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
263 | Part31.Position = Vector3.new(-1.70001066, 0.700011134, 0.700009465) | |
264 | Part31.Orientation = Vector3.new(-90, 90, 0) | |
265 | Part31.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
266 | CylinderMesh32.Parent = Part31 | |
267 | Part33.Name = "Button" | |
268 | Part33.Parent = Model0 | |
269 | Part33.BrickColor = BrickColor.new("Really red") | |
270 | Part33.Rotation = Vector3.new(0, 90, 0) | |
271 | Part33.FormFactor = Enum.FormFactor.Custom | |
272 | Part33.Size = Vector3.new(0.400000006, 0.200000003, 0.400000006) | |
273 | Part33.CFrame = CFrame.new(-1.07615815e-05, 4.10001087, 0.400009394, 4.1183284e-14, 0, 1, 0, 1, 0, -1, -0, -4.1183284e-14) | |
274 | Part33.BottomSurface = Enum.SurfaceType.Smooth | |
275 | Part33.TopSurface = Enum.SurfaceType.Smooth | |
276 | Part33.Color = Color3.new(1, 0, 0) | |
277 | Part33.Position = Vector3.new(-1.07615815e-05, 4.10001087, 0.400009394) | |
278 | Part33.Orientation = Vector3.new(0, 90, 0) | |
279 | Part33.Color = Color3.new(1, 0, 0) | |
280 | CylinderMesh34.Parent = Part33 | |
281 | ClickDetector35.Parent = Part33 | |
282 | ClickDetector35.MaxActivationDistance = 10 | |
283 | Part36.Parent = Model0 | |
284 | Part36.BrickColor = BrickColor.new("Black") | |
285 | Part36.Rotation = Vector3.new(-90, 0, 90) | |
286 | Part36.FormFactor = Enum.FormFactor.Custom | |
287 | Part36.Size = Vector3.new(1.39999998, 0.200000003, 1.39999998) | |
288 | Part36.CFrame = CFrame.new(1.69998932, 0.700010657, 0.700009584, 4.1183284e-14, -1, 0, 0, 0, 1, -1, 4.1183284e-14, -0) | |
289 | Part36.BottomSurface = Enum.SurfaceType.Smooth | |
290 | Part36.TopSurface = Enum.SurfaceType.Smooth | |
291 | Part36.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
292 | Part36.Position = Vector3.new(1.69998932, 0.700010657, 0.700009584) | |
293 | Part36.Orientation = Vector3.new(-90, 90, 0) | |
294 | Part36.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
295 | CylinderMesh37.Parent = Part36 | |
296 | Script38.Name = "Fire" | |
297 | Script38.Parent = Model0 | |
298 | table.insert(cors,sandbox(Script38,function() | |
299 | db = false | |
300 | function onClicked() | |
301 | if db == false then | |
302 | db = true | |
303 | ||
304 | wait(1) | |
305 | ||
306 | for i = 1,4 do | |
307 | wait() | |
308 | script.Parent.Button.Mesh.Offset = script.Parent.Button.Mesh.Offset - Vector3.new(0,0.04,0) | |
309 | end | |
310 | ||
311 | wait(0.5) | |
312 | ||
313 | for i = 1,32 do | |
314 | wait() | |
315 | script.Parent.LeftBass.Mesh.Offset = script.Parent.LeftBass.Mesh.Offset + Vector3.new(0,0,0.05) | |
316 | script.Parent.RightBass.Mesh.Offset = script.Parent.RightBass.Mesh.Offset - Vector3.new(0,0,0.05) | |
317 | script.Parent.TopBass.Mesh.Offset = script.Parent.TopBass.Mesh.Offset - Vector3.new(0,0,0.05) | |
318 | end | |
319 | ||
320 | wait(1) | |
321 | ||
322 | script.Parent.music:play() | |
323 | --- | |
324 | local pos = script.Parent.Aim.CFrame.lookVector*10000 | |
325 | local char = script.Parent.Aim | |
326 | ||
327 | dir = (pos - char.CFrame.p).unit | |
328 | ||
329 | script.Parent.Laser.Transparency = 0 | |
330 | script.Parent.Explosion.Transparency = 0 | |
331 | script.Parent.Aim.Anchored = true | |
332 | ||
333 | for i = 1, 100 do | |
334 | wait() | |
335 | local ex = Instance.new("Explosion") | |
336 | ex.BlastRadius = 5 | |
337 | ex.BlastPressure = 500000 | |
338 | ex.Position = char.CFrame.p + (dir * 6 * i) + (dir * 7) | |
339 | ex.Parent = game.Workspace | |
340 | script.Parent.Explosion.Mesh.Scale = script.Parent.Explosion.Mesh.Scale + Vector3.new(1,1,0) | |
341 | end | |
342 | ||
343 | for i = 1,50 do | |
344 | wait() | |
345 | script.Parent.Explosion.Mesh.Scale = script.Parent.Explosion.Mesh.Scale + Vector3.new(0.25/(i/10),0.25/(i/10),0) | |
346 | script.Parent.Explosion.Transparency = script.Parent.Explosion.Transparency + 0.02 | |
347 | end | |
348 | ||
349 | script.Parent.Explosion.Mesh.Scale = Vector3.new(2.5,2.5,6) | |
350 | script.Parent.Explosion.Transparency = 1 | |
351 | script.Parent.Aim.Anchored = false | |
352 | wait(5) | |
353 | --- | |
354 | ||
355 | --- | |
356 | local pos = script.Parent.Aim.CFrame.lookVector*10000 | |
357 | local char = script.Parent.Aim | |
358 | ||
359 | dir = (pos - char.CFrame.p).unit | |
360 | ||
361 | script.Parent.Laser.Transparency = 0 | |
362 | script.Parent.Explosion.Transparency = 0 | |
363 | script.Parent.Aim.Anchored = true | |
364 | ||
365 | for i = 1, 100 do | |
366 | wait() | |
367 | local ex = Instance.new("Explosion") | |
368 | ex.BlastRadius = 5 | |
369 | ex.BlastPressure = 500000 | |
370 | ex.Position = char.CFrame.p + (dir * 6 * i) + (dir * 7) | |
371 | ex.Parent = game.Workspace | |
372 | script.Parent.Explosion.Mesh.Scale = script.Parent.Explosion.Mesh.Scale + Vector3.new(1,1,0) | |
373 | end | |
374 | ||
375 | for i = 1,50 do | |
376 | wait() | |
377 | script.Parent.Explosion.Mesh.Scale = script.Parent.Explosion.Mesh.Scale + Vector3.new(0.25/(i/10),0.25/(i/10),0) | |
378 | script.Parent.Explosion.Transparency = script.Parent.Explosion.Transparency + 0.02 | |
379 | end | |
380 | ||
381 | script.Parent.Explosion.Mesh.Scale = Vector3.new(2.5,2.5,6) | |
382 | script.Parent.Explosion.Transparency = 1 | |
383 | script.Parent.Aim.Anchored = false | |
384 | wait(5) | |
385 | --- | |
386 | ||
387 | --- | |
388 | local pos = script.Parent.Aim.CFrame.lookVector*10000 | |
389 | local char = script.Parent.Aim | |
390 | ||
391 | dir = (pos - char.CFrame.p).unit | |
392 | ||
393 | script.Parent.Laser.Transparency = 0 | |
394 | script.Parent.Explosion.Transparency = 0 | |
395 | script.Parent.Aim.Anchored = true | |
396 | ||
397 | for i = 1, 100 do | |
398 | wait() | |
399 | local ex = Instance.new("Explosion") | |
400 | ex.BlastRadius = 5 | |
401 | ex.BlastPressure = 500000 | |
402 | ex.Position = char.CFrame.p + (dir * 6 * i) + (dir * 7) | |
403 | ex.Parent = game.Workspace | |
404 | script.Parent.Explosion.Mesh.Scale = script.Parent.Explosion.Mesh.Scale + Vector3.new(1,1,0) | |
405 | end | |
406 | ||
407 | for i = 1,50 do | |
408 | wait() | |
409 | script.Parent.Explosion.Mesh.Scale = script.Parent.Explosion.Mesh.Scale + Vector3.new(0.25/(i/10),0.25/(i/10),0) | |
410 | script.Parent.Explosion.Transparency = script.Parent.Explosion.Transparency + 0.02 | |
411 | end | |
412 | ||
413 | script.Parent.Explosion.Mesh.Scale = Vector3.new(2.5,2.5,6) | |
414 | script.Parent.Explosion.Transparency = 1 | |
415 | script.Parent.Aim.Anchored = false | |
416 | wait(5) | |
417 | --- | |
418 | ||
419 | for i = 1,100 do | |
420 | wait() | |
421 | script.Parent.music.Volume = script.Parent.music.Volume - 0.01 | |
422 | script.Parent.Laser.Transparency = script.Parent.Laser.Transparency + 0.01 | |
423 | end | |
424 | ||
425 | script.Parent.music:stop() | |
426 | script.Parent.music.Volume = 1 | |
427 | ||
428 | wait(1) | |
429 | ||
430 | for i = 1,32 do | |
431 | wait() | |
432 | script.Parent.LeftBass.Mesh.Offset = script.Parent.LeftBass.Mesh.Offset - Vector3.new(0,0,0.05) | |
433 | script.Parent.RightBass.Mesh.Offset = script.Parent.RightBass.Mesh.Offset + Vector3.new(0,0,0.05) | |
434 | script.Parent.TopBass.Mesh.Offset = script.Parent.TopBass.Mesh.Offset + Vector3.new(0,0,0.05) | |
435 | end | |
436 | ||
437 | wait(0.5) | |
438 | ||
439 | for i = 1,4 do | |
440 | wait() | |
441 | script.Parent.Button.Mesh.Offset = script.Parent.Button.Mesh.Offset + Vector3.new(0,0.04,0) | |
442 | end | |
443 | ||
444 | wait(1) | |
445 | ||
446 | db = false | |
447 | end | |
448 | end | |
449 | script.Parent.Button.ClickDetector.MouseClick:connect (onClicked) | |
450 | end)) | |
451 | Part39.Name = "Aim" | |
452 | Part39.Parent = Model0 | |
453 | Part39.BrickColor = BrickColor.new("Really black") | |
454 | Part39.Transparency = 1 | |
455 | Part39.FormFactor = Enum.FormFactor.Custom | |
456 | Part39.Friction = 1 | |
457 | Part39.Size = Vector3.new(3.20000029, 3.20000052, 0.200000003) | |
458 | Part39.CFrame = CFrame.new(-1.10268593e-05, 2.20001888, -2.09998894, 1, 0, -2.24065761e-14, 0, 1, 0, -2.24065761e-14, 0, 1) | |
459 | Part39.BackSurface = Enum.SurfaceType.Weld | |
460 | Part39.BottomSurface = Enum.SurfaceType.Smooth | |
461 | Part39.TopSurface = Enum.SurfaceType.Smooth | |
462 | Part39.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
463 | Part39.Position = Vector3.new(-1.10268593e-05, 2.20001888, -2.09998894) | |
464 | Part39.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
465 | Part40.Name = "Laser" | |
466 | Part40.Parent = Model0 | |
467 | Part40.BrickColor = BrickColor.new("Crimson") | |
468 | - | Part40.BrickColor = BrickColor.new("Toothpaste") |
468 | + | |
469 | Part40.Rotation = Vector3.new(-90, 0, 0) | |
470 | Part40.CanCollide = false | |
471 | Part40.FormFactor = Enum.FormFactor.Custom | |
472 | Part40.Size = Vector3.new(3.20000005, 1, 3.20000052) | |
473 | Part40.CFrame = CFrame.new(-1.07615815e-05, 2.20001078, 1.90001702, 1, 4.3579984e-14, 0, 0, 0, 1, -4.3579984e-14, -1, 0) | |
474 | Part40.BottomSurface = Enum.SurfaceType.Smooth | |
475 | Part40.FrontSurface = Enum.SurfaceType.Weld | |
476 | Part40.TopSurface = Enum.SurfaceType.Weld | |
477 | Part40.Color = Color3.new(0, 1, 1) | |
478 | Part40.Position = Vector3.new(-1.07615815e-05, 2.20001078, 1.90001702) | |
479 | Part40.Orientation = Vector3.new(-90, 0, 0) | |
480 | Part40.Color = Color3.new(0, 1, 1) | |
481 | CylinderMesh41.Parent = Part40 | |
482 | CylinderMesh41.Offset = Vector3.new(0, 303, 0) | |
483 | CylinderMesh41.Scale = Vector3.new(0.649999976, 600, 0.649999976) | |
484 | CylinderMesh41.Scale = Vector3.new(0.649999976, 600, 0.649999976) | |
485 | Part42.Name = "Explosion" | |
486 | Part42.Parent = Model0 | |
487 | Part42.BrickColor = BrickColor.new("Crimson") | |
488 | - | Part42.BrickColor = BrickColor.new("Toothpaste") |
488 | + | |
489 | Part42.Rotation = Vector3.new(-180, 0, -180) | |
490 | Part42.CanCollide = false | |
491 | Part42.FormFactor = Enum.FormFactor.Custom | |
492 | Part42.Size = Vector3.new(3.20000029, 3.20000267, 0.200000003) | |
493 | Part42.CFrame = CFrame.new(-1.10000001e-05, 2.20001888, -2.29999495, -1, 0, 6.96310507e-19, 0, 1, 0, 6.96310507e-19, 0, -1) | |
494 | Part42.BackSurface = Enum.SurfaceType.Weld | |
495 | Part42.BottomSurface = Enum.SurfaceType.Weld | |
496 | Part42.FrontSurface = Enum.SurfaceType.Weld | |
497 | Part42.LeftSurface = Enum.SurfaceType.Weld | |
498 | Part42.RightSurface = Enum.SurfaceType.Weld | |
499 | Part42.TopSurface = Enum.SurfaceType.Weld | |
500 | Part42.Color = Color3.new(0, 1, 1) | |
501 | Part42.Position = Vector3.new(-1.10000001e-05, 2.20001888, -2.29999495) | |
502 | Part42.Orientation = Vector3.new(0, 180, 0) | |
503 | Part42.Color = Color3.new(0, 1, 1) | |
504 | SpecialMesh43.Parent = Part42 | |
505 | SpecialMesh43.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
506 | SpecialMesh43.Scale = Vector3.new(2.5, 2.5, 6) | |
507 | SpecialMesh43.MeshType = Enum.MeshType.FileMesh | |
508 | SpecialMesh43.Scale = Vector3.new(2.5, 2.5, 6) | |
509 | Sound44.Name = "music" | |
510 | Sound44.Parent = Model0 | |
511 | Sound44.SoundId = "rbxassetid://165351768" | |
512 | - | Sound44.SoundId = "rbxassetid://1066137088" |
512 | + | |
513 | Part45.Parent = mas | |
514 | Part45.BrickColor = BrickColor.new("Dark stone grey") | |
515 | Part45.Anchored = true | |
516 | Part45.Locked = true | |
517 | Part45.FormFactor = Enum.FormFactor.Symmetric | |
518 | Part45.Size = Vector3.new(512, 20, 512) | |
519 | Part45.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
520 | Part45.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
521 | Part45.Position = Vector3.new(0, -10, 0) | |
522 | Part45.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
523 | for i,v in pairs(mas:GetChildren()) do | |
524 | v.Parent = workspace | |
525 | pcall(function() v:MakeJoints() end) | |
526 | end | |
527 | mas:Destroy() | |
528 | for i,v in pairs(cors) do | |
529 | spawn(function() | |
530 | pcall(v) | |
531 | end) | |
532 | end |