SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | A = true | |
87 | if A == true then | |
88 | Model = Instance.new("Model") | |
89 | Model.Name = "Weapon" | |
90 | p = Instance.new("Part", Model) | |
91 | p.Name = "Part" | |
92 | p.TopSurface = 0 | |
93 | p.BottomSurface = 0 | |
94 | p.formFactor = "Custom" | |
95 | p.Size = Vector3.new(10, 12, 10) | |
96 | p.CFrame = CFrame.new(35.4000015, 7.0999999, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
97 | p.BrickColor = BrickColor.new("Medium stone grey") | |
98 | p.Transparency = 0 | |
99 | p.Reflectance = .1 | |
100 | p.Material = Enum.Material.Concrete | |
101 | m = Instance.new("CylinderMesh") | |
102 | m.Scale = Vector3.new(1, 1.02999997, 1) | |
103 | m.Parent = p | |
104 | p = Instance.new("Part", Model) | |
105 | p.Name = "Part" | |
106 | p.TopSurface = 0 | |
107 | p.BottomSurface = 0 | |
108 | p.formFactor = "Custom" | |
109 | p.Size = Vector3.new(2, 12.8, 2) | |
110 | p.CFrame = CFrame.new(35.4000015, 7.19999981, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
111 | p.BrickColor = BrickColor.new("Bright yellow") | |
112 | p.Transparency = 0 | |
113 | p.Reflectance = .1 | |
114 | p.Material = Enum.Material.Plastic | |
115 | m = Instance.new("CylinderMesh") | |
116 | m.Scale = Vector3.new(1, 1, 1) | |
117 | m.Parent = p | |
118 | p = Instance.new("Part", Model) | |
119 | p.Name = "Part" | |
120 | p.TopSurface = 0 | |
121 | p.BottomSurface = 0 | |
122 | p.formFactor = "Custom" | |
123 | p.Size = Vector3.new(1.79, 5, 1) | |
124 | p.CFrame = CFrame.new(29.7000179, 8.89999485, 63.3000221, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
125 | p.BrickColor = BrickColor.new("Bright yellow") | |
126 | p.Transparency = 0 | |
127 | p.Reflectance = .1 | |
128 | p.Material = Enum.Material.Plastic | |
129 | p = Instance.new("Part", Model) | |
130 | p.Name = "Part" | |
131 | p.TopSurface = 0 | |
132 | p.BottomSurface = 0 | |
133 | p.formFactor = "Custom" | |
134 | p.Size = Vector3.new(5, 1.40, 0.99) | |
135 | p.CFrame = CFrame.new(29.7000198, 10.4999943, 63.3000031, -1.49008788e-008, -2.3933373e-007, 0.999990225, 6.6675625e-009, 0.99999392, 2.39334668e-007, -0.999994516, 6.66761935e-009, 7.45059765e-008) | |
136 | p.BrickColor = BrickColor.new("Bright yellow") | |
137 | p.Transparency = 0 | |
138 | p.Reflectance = .1 | |
139 | p.Material = Enum.Material.Plastic | |
140 | m = Instance.new("SpecialMesh") | |
141 | m.Scale = Vector3.new(1, 1, 1) | |
142 | m.Parent = p | |
143 | m.MeshType = Enum.MeshType.Wedge | |
144 | p = Instance.new("Part", Model) | |
145 | p.Name = "Center" | |
146 | p.TopSurface = 0 | |
147 | p.BottomSurface = 0 | |
148 | p.formFactor = "Custom" | |
149 | p.Size = Vector3.new(12.5, 5.80, 27.6) | |
150 | p.CFrame = CFrame.new(43.0000076, 9.30000114, 62.8999977, 1.06581131e-014, -8.74229471e-008, 1, -7.10542736e-015, 1, 8.742294e-008, -1, -7.10542736e-015, -4.37113776e-008) | |
151 | p.BrickColor = BrickColor.new("Bright yellow") | |
152 | p.Transparency = 1 | |
153 | p.Reflectance = .1 | |
154 | p.Material = Enum.Material.Plastic | |
155 | p = Instance.new("Part", Model) | |
156 | p.Name = "Part" | |
157 | p.TopSurface = 0 | |
158 | p.BottomSurface = 0 | |
159 | p.formFactor = "Custom" | |
160 | p.Size = Vector3.new(6.80, 1, 6.00) | |
161 | p.CFrame = CFrame.new(51.9999924, 9.06999207, 68.6000443, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
162 | p.BrickColor = BrickColor.new("Bright yellow") | |
163 | p.Transparency = 0 | |
164 | p.Reflectance = .1 | |
165 | p.Material = Enum.Material.Plastic | |
166 | p = Instance.new("Part", Model) | |
167 | p.Name = "Part" | |
168 | p.TopSurface = 0 | |
169 | p.BottomSurface = 0 | |
170 | p.formFactor = "Custom" | |
171 | p.Size = Vector3.new(11, 5.40, 2.79) | |
172 | p.CFrame = CFrame.new(56.5999718, 9.76999664, 63.0000076, 1.49011612e-008, 5.89458523e-007, -0.999990225, -3.49571337e-007, 0.99999392, 5.89460512e-007, 0.999994278, 3.49571422e-007, -4.47034836e-008) | |
173 | p.BrickColor = BrickColor.new("Bright yellow") | |
174 | p.Transparency = 0 | |
175 | p.Reflectance = .1 | |
176 | p.Material = Enum.Material.Plastic | |
177 | m = Instance.new("SpecialMesh") | |
178 | m.Scale = Vector3.new(1, 1, 1) | |
179 | m.Parent = p | |
180 | m.MeshType = Enum.MeshType.Wedge | |
181 | p = Instance.new("Part", Model) | |
182 | p.Name = "Part" | |
183 | p.TopSurface = 0 | |
184 | p.BottomSurface = 0 | |
185 | p.formFactor = "Custom" | |
186 | p.Size = Vector3.new(2.60, 11, 1.99) | |
187 | p.CFrame = CFrame.new(39.4000015, 10.7699995, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
188 | p.BrickColor = BrickColor.new("Bright yellow") | |
189 | p.Transparency = 0 | |
190 | p.Reflectance = .1 | |
191 | p.Material = Enum.Material.Plastic | |
192 | p = Instance.new("Part", Model) | |
193 | p.Name = "Part" | |
194 | p.TopSurface = 0 | |
195 | p.BottomSurface = 0 | |
196 | p.formFactor = "Custom" | |
197 | p.Size = Vector3.new(3.20, 11.0, 5) | |
198 | p.CFrame = CFrame.new(35.9000092, 11.0999928, 63.0000153, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
199 | p.BrickColor = BrickColor.new("Bright yellow") | |
200 | p.Transparency = 0 | |
201 | p.Reflectance = .1 | |
202 | p.Material = Enum.Material.Plastic | |
203 | p = Instance.new("Part", Model) | |
204 | p.Name = "Part" | |
205 | p.TopSurface = 0 | |
206 | p.BottomSurface = 0 | |
207 | p.formFactor = "Custom" | |
208 | p.Size = Vector3.new(1.99, 1, 1) | |
209 | p.CFrame = CFrame.new(51.8999863, 16.6699886, 58.4000015, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
210 | p.BrickColor = BrickColor.new("Mid gray") | |
211 | p.Transparency = 0 | |
212 | p.Reflectance = .1 | |
213 | p.Material = Enum.Material.Plastic | |
214 | p = Instance.new("Part", Model) | |
215 | p.Name = "Part" | |
216 | p.TopSurface = 0 | |
217 | p.BottomSurface = 0 | |
218 | p.formFactor = "Custom" | |
219 | p.Size = Vector3.new(1, 1, 4.59) | |
220 | p.CFrame = CFrame.new(49.099987, 18.1699905, 58.4000015, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
221 | p.BrickColor = BrickColor.new("Mid gray") | |
222 | p.Transparency = 0 | |
223 | p.Reflectance = .1 | |
224 | p.Material = Enum.Material.Plastic | |
225 | p = Instance.new("Part", Model) | |
226 | p.Name = "Part" | |
227 | p.TopSurface = 0 | |
228 | p.BottomSurface = 0 | |
229 | p.formFactor = "Custom" | |
230 | p.Size = Vector3.new(1, 12.6, 9.80) | |
231 | p.CFrame = CFrame.new(40.2999878, 6.77000237, 63.0000038, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
232 | p.BrickColor = BrickColor.new("Bright yellow") | |
233 | p.Transparency = 0 | |
234 | p.Reflectance = .1 | |
235 | p.Material = Enum.Material.Plastic | |
236 | p = Instance.new("Part", Model) | |
237 | p.Name = "Part" | |
238 | p.TopSurface = 0 | |
239 | p.BottomSurface = 0 | |
240 | p.formFactor = "Custom" | |
241 | p.Size = Vector3.new(5.19, 1.39, 2.39) | |
242 | p.CFrame = CFrame.new(32.2000008, 12.5999899, 63.2999992, -1.49008788e-008, -2.3933373e-007, 0.999990225, 6.6675625e-009, 0.99999392, 2.39334668e-007, -0.999994516, 6.66761935e-009, 7.45059765e-008) | |
243 | p.BrickColor = BrickColor.new("Bright yellow") | |
244 | p.Transparency = 0 | |
245 | p.Reflectance = .1 | |
246 | p.Material = Enum.Material.Plastic | |
247 | m = Instance.new("SpecialMesh") | |
248 | m.Scale = Vector3.new(1, 1, 1) | |
249 | m.Parent = p | |
250 | m.MeshType = Enum.MeshType.Wedge | |
251 | p = Instance.new("Part", Model) | |
252 | p.Name = "Part" | |
253 | p.TopSurface = 0 | |
254 | p.BottomSurface = 0 | |
255 | p.formFactor = "Custom" | |
256 | p.Size = Vector3.new(11, 0.60, 1.99) | |
257 | p.CFrame = CFrame.new(39.3999825, 12.3699951, 63.0000267, 1.49008779e-008, 2.39330944e-007, -0.999990225, 6.66761935e-009, 0.99999392, 2.39331769e-007, 0.999994516, -6.66753408e-009, -7.45059765e-008) | |
258 | p.BrickColor = BrickColor.new("Bright yellow") | |
259 | p.Transparency = 0 | |
260 | p.Reflectance = .1 | |
261 | p.Material = Enum.Material.Plastic | |
262 | m = Instance.new("SpecialMesh") | |
263 | m.Scale = Vector3.new(1, 1, 1) | |
264 | m.Parent = p | |
265 | m.MeshType = Enum.MeshType.Wedge | |
266 | p = Instance.new("Part", Model) | |
267 | p.Name = "Part" | |
268 | p.TopSurface = 0 | |
269 | p.BottomSurface = 0 | |
270 | p.formFactor = "Custom" | |
271 | p.Size = Vector3.new(3.20, 11, 5.60) | |
272 | p.CFrame = CFrame.new(50.1999855, 14.0699921, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
273 | p.BrickColor = BrickColor.new("Bright yellow") | |
274 | p.Transparency = 0 | |
275 | p.Reflectance = .1 | |
276 | p.Material = Enum.Material.Plastic | |
277 | p = Instance.new("Part", Model) | |
278 | p.Name = "Part" | |
279 | p.TopSurface = 0 | |
280 | p.BottomSurface = 0 | |
281 | p.formFactor = "Custom" | |
282 | p.Size = Vector3.new(5, 13, 3.79) | |
283 | p.CFrame = CFrame.new(43.2999916, 9.56999779, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
284 | p.BrickColor = BrickColor.new("Bright yellow") | |
285 | p.Transparency = 0 | |
286 | p.Reflectance = .1 | |
287 | p.Material = Enum.Material.Plastic | |
288 | p = Instance.new("Part", Model) | |
289 | p.Name = "Part" | |
290 | p.TopSurface = 0 | |
291 | p.BottomSurface = 0 | |
292 | p.formFactor = "Custom" | |
293 | p.Size = Vector3.new(5.19, 1.39, 2.39) | |
294 | p.CFrame = CFrame.new(39.6000061, 12.599987, 63.2999992, 1.49011612e-008, 5.89458523e-007, -0.999990225, -3.49571337e-007, 0.99999392, 5.89460512e-007, 0.999994278, 3.49571422e-007, -4.47034836e-008) | |
295 | p.BrickColor = BrickColor.new("Bright yellow") | |
296 | p.Transparency = 0 | |
297 | p.Reflectance = .1 | |
298 | p.Material = Enum.Material.Plastic | |
299 | m = Instance.new("SpecialMesh") | |
300 | m.Scale = Vector3.new(1, 1, 1) | |
301 | m.Parent = p | |
302 | m.MeshType = Enum.MeshType.Wedge | |
303 | p = Instance.new("Part", Model) | |
304 | p.Name = "Part" | |
305 | p.TopSurface = 0 | |
306 | p.BottomSurface = 0 | |
307 | p.formFactor = "Custom" | |
308 | p.Size = Vector3.new(5.19, 1, 1) | |
309 | p.CFrame = CFrame.new(46.2999878, 15.069993, 67.5999985, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
310 | p.BrickColor = BrickColor.new("Mid gray") | |
311 | p.Transparency = 0 | |
312 | p.Reflectance = .1 | |
313 | p.Material = Enum.Material.Plastic | |
314 | p = Instance.new("Part", Model) | |
315 | p.Name = "Part" | |
316 | p.TopSurface = 0 | |
317 | p.BottomSurface = 0 | |
318 | p.formFactor = "Custom" | |
319 | p.Size = Vector3.new(3.20, 5, 4) | |
320 | p.CFrame = CFrame.new(32.200016, 9.59999657, 63.3000221, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
321 | p.BrickColor = BrickColor.new("Bright yellow") | |
322 | p.Transparency = 0 | |
323 | p.Reflectance = .1 | |
324 | p.Material = Enum.Material.Plastic | |
325 | p = Instance.new("Part", Model) | |
326 | p.Name = "Part" | |
327 | p.TopSurface = 0 | |
328 | p.BottomSurface = 0 | |
329 | p.formFactor = "Custom" | |
330 | p.Size = Vector3.new(6, 6.79, 2.79) | |
331 | p.CFrame = CFrame.new(51.9999924, 9.06999302, 70.5000458, -1, 0, -4.37113883e-008, 0, 1, 0, 4.37113883e-008, 0, -1) | |
332 | p.BrickColor = BrickColor.new("Bright yellow") | |
333 | p.Transparency = 0 | |
334 | p.Reflectance = .1 | |
335 | p.Material = Enum.Material.Plastic | |
336 | m = Instance.new("SpecialMesh") | |
337 | m.Scale = Vector3.new(1, 1, 1) | |
338 | m.Parent = p | |
339 | m.MeshType = Enum.MeshType.Wedge | |
340 | p = Instance.new("Part", Model) | |
341 | p.Name = "Part" | |
342 | p.TopSurface = 0 | |
343 | p.BottomSurface = 0 | |
344 | p.formFactor = "Custom" | |
345 | p.Size = Vector3.new(0.60, 7.40, 3.79) | |
346 | p.CFrame = CFrame.new(43.2999916, 12.3699942, 63.2000008, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
347 | p.BrickColor = BrickColor.new("Black") | |
348 | p.Transparency = 0 | |
349 | p.Reflectance = .1 | |
350 | p.Material = Enum.Material.Plastic | |
351 | p = Instance.new("Part", Model) | |
352 | p.Name = "Part" | |
353 | p.TopSurface = 0 | |
354 | p.BottomSurface = 0 | |
355 | p.formFactor = "Custom" | |
356 | p.Size = Vector3.new(6.80, 1, 6.00) | |
357 | p.CFrame = CFrame.new(51.9999924, 9.06999588, 57.3999977, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
358 | p.BrickColor = BrickColor.new("Bright yellow") | |
359 | p.Transparency = 0 | |
360 | p.Reflectance = .1 | |
361 | p.Material = Enum.Material.Plastic | |
362 | p = Instance.new("Part", Model) | |
363 | p.Name = "Part" | |
364 | p.TopSurface = 0 | |
365 | p.BottomSurface = 0 | |
366 | p.formFactor = "Custom" | |
367 | p.Size = Vector3.new(11, 3.20, 2.19) | |
368 | p.CFrame = CFrame.new(54.0999756, 14.0699921, 63.0000076, 1.49011612e-008, 5.89458523e-007, -0.999990225, -3.49571337e-007, 0.99999392, 5.89460512e-007, 0.999994278, 3.49571422e-007, -4.47034836e-008) | |
369 | p.BrickColor = BrickColor.new("Bright yellow") | |
370 | p.Transparency = 0 | |
371 | p.Reflectance = .1 | |
372 | p.Material = Enum.Material.Plastic | |
373 | m = Instance.new("SpecialMesh") | |
374 | m.Scale = Vector3.new(1, 1, 1) | |
375 | m.Parent = p | |
376 | m.MeshType = Enum.MeshType.Wedge | |
377 | p = Instance.new("Part", Model) | |
378 | p.Name = "Part" | |
379 | p.TopSurface = 0 | |
380 | p.BottomSurface = 0 | |
381 | p.formFactor = "Custom" | |
382 | p.Size = Vector3.new(2.60, 11, 2.39) | |
383 | p.CFrame = CFrame.new(32.1999741, 10.7699986, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
384 | p.BrickColor = BrickColor.new("Bright yellow") | |
385 | p.Transparency = 0 | |
386 | p.Reflectance = .1 | |
387 | p.Material = Enum.Material.Plastic | |
388 | p = Instance.new("Part", Model) | |
389 | p.Name = "Part" | |
390 | p.TopSurface = 0 | |
391 | p.BottomSurface = 0 | |
392 | p.formFactor = "Custom" | |
393 | p.Size = Vector3.new(5.19, 1, 1) | |
394 | p.CFrame = CFrame.new(46.2999878, 15.0699921, 58.4000015, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
395 | p.BrickColor = BrickColor.new("Mid gray") | |
396 | p.Transparency = 0 | |
397 | p.Reflectance = .1 | |
398 | p.Material = Enum.Material.Plastic | |
399 | p = Instance.new("Part", Model) | |
400 | p.Name = "Part" | |
401 | p.TopSurface = 0 | |
402 | p.BottomSurface = 0 | |
403 | p.formFactor = "Custom" | |
404 | p.Size = Vector3.new(5, 0.80, 0.79) | |
405 | p.CFrame = CFrame.new(30.6000195, 11.5999937, 63.3000107, -1.49008788e-008, -2.3933373e-007, 0.999990225, 6.6675625e-009, 0.99999392, 2.39334668e-007, -0.999994516, 6.66761935e-009, 7.45059765e-008) | |
406 | p.BrickColor = BrickColor.new("Bright yellow") | |
407 | p.Transparency = 0 | |
408 | p.Reflectance = .1 | |
409 | p.Material = Enum.Material.Plastic | |
410 | m = Instance.new("SpecialMesh") | |
411 | m.Scale = Vector3.new(1, 1, 1) | |
412 | m.Parent = p | |
413 | m.MeshType = Enum.MeshType.Wedge | |
414 | p = Instance.new("Part", Model) | |
415 | p.Name = "Part" | |
416 | p.TopSurface = 0 | |
417 | p.BottomSurface = 0 | |
418 | p.formFactor = "Custom" | |
419 | p.Size = Vector3.new(10, 12, 10) | |
420 | p.CFrame = CFrame.new(51.8000298, 7.099998, 63.0000191, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
421 | p.BrickColor = BrickColor.new("Medium stone grey") | |
422 | p.Transparency = 0 | |
423 | p.Reflectance = .1 | |
424 | p.Material = Enum.Material.Concrete | |
425 | m = Instance.new("CylinderMesh") | |
426 | m.Scale = Vector3.new(1, 1.02999997, 1) | |
427 | m.Parent = p | |
428 | p = Instance.new("Part", Model) | |
429 | p.Name = "Part" | |
430 | p.TopSurface = 0 | |
431 | p.BottomSurface = 0 | |
432 | p.formFactor = "Custom" | |
433 | p.Size = Vector3.new(0.60, 5.19, 5) | |
434 | p.CFrame = CFrame.new(35.9000015, 13, 63.2999992, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
435 | p.BrickColor = BrickColor.new("Bright yellow") | |
436 | p.Transparency = 0 | |
437 | p.Reflectance = .1 | |
438 | p.Material = Enum.Material.Plastic | |
439 | p = Instance.new("Part", Model) | |
440 | p.Name = "Part" | |
441 | p.TopSurface = 0 | |
442 | p.BottomSurface = 0 | |
443 | p.formFactor = "Custom" | |
444 | p.Size = Vector3.new(6, 6.79, 2.79) | |
445 | p.CFrame = CFrame.new(51.9999847, 9.06999207, 55.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
446 | p.BrickColor = BrickColor.new("Bright yellow") | |
447 | p.Transparency = 0 | |
448 | p.Reflectance = .1 | |
449 | p.Material = Enum.Material.Plastic | |
450 | m = Instance.new("SpecialMesh") | |
451 | m.Scale = Vector3.new(1, 1, 1) | |
452 | m.Parent = p | |
453 | m.MeshType = Enum.MeshType.Wedge | |
454 | p = Instance.new("Part", Model) | |
455 | p.Name = "Part" | |
456 | p.TopSurface = 0 | |
457 | p.BottomSurface = 0 | |
458 | p.formFactor = "Custom" | |
459 | p.Size = Vector3.new(2.79, 7.40, 0.79) | |
460 | p.CFrame = CFrame.new(44.7999916, 14.0699921, 63.2000008, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
461 | p.BrickColor = BrickColor.new("Black") | |
462 | p.Transparency = 0 | |
463 | p.Reflectance = .1 | |
464 | p.Material = Enum.Material.Plastic | |
465 | p = Instance.new("Part", Model) | |
466 | p.Name = "Part" | |
467 | p.TopSurface = 0 | |
468 | p.BottomSurface = 0 | |
469 | p.formFactor = "Custom" | |
470 | p.Size = Vector3.new(5.40, 11, 10) | |
471 | p.CFrame = CFrame.new(50.1999893, 9.76999474, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
472 | p.BrickColor = BrickColor.new("Bright yellow") | |
473 | p.Transparency = 0 | |
474 | p.Reflectance = .1 | |
475 | p.Material = Enum.Material.Plastic | |
476 | p = Instance.new("Part", Model) | |
477 | p.Name = "Part" | |
478 | p.TopSurface = 0 | |
479 | p.BottomSurface = 0 | |
480 | p.formFactor = "Custom" | |
481 | p.Size = Vector3.new(11, 0.60, 2.39) | |
482 | p.CFrame = CFrame.new(32.1999855, 12.3699961, 62.9999733, -1.49008788e-008, -2.3933373e-007, 0.999990225, 6.6675625e-009, 0.99999392, 2.39334668e-007, -0.999994516, 6.66761935e-009, 7.45059765e-008) | |
483 | p.BrickColor = BrickColor.new("Bright yellow") | |
484 | p.Transparency = 0 | |
485 | p.Reflectance = .1 | |
486 | p.Material = Enum.Material.Plastic | |
487 | m = Instance.new("SpecialMesh") | |
488 | m.Scale = Vector3.new(1, 1, 1) | |
489 | m.Parent = p | |
490 | m.MeshType = Enum.MeshType.Wedge | |
491 | p = Instance.new("Part", Model) | |
492 | p.Name = "Part" | |
493 | p.TopSurface = 0 | |
494 | p.BottomSurface = 0 | |
495 | p.formFactor = "Custom" | |
496 | p.Size = Vector3.new(4, 13, 1) | |
497 | p.CFrame = CFrame.new(40.8999939, 10.0700006, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
498 | p.BrickColor = BrickColor.new("Bright yellow") | |
499 | p.Transparency = 0 | |
500 | p.Reflectance = .1 | |
501 | p.Material = Enum.Material.Plastic | |
502 | p = Instance.new("Part", Model) | |
503 | p.Name = "Part" | |
504 | p.TopSurface = 0 | |
505 | p.BottomSurface = 0 | |
506 | p.formFactor = "Custom" | |
507 | p.Size = Vector3.new(10.1, 1, 0.99) | |
508 | p.CFrame = CFrame.new(51.8999825, 18.1699867, 62.9999733, 1.49008796e-008, 2.39336913e-007, -0.999990225, 6.66744882e-009, 0.99999392, 2.39337737e-007, 0.999994516, -6.66736355e-009, -7.45059765e-008) | |
509 | p.BrickColor = BrickColor.new("Mid gray") | |
510 | p.Transparency = 0 | |
511 | p.Reflectance = .1 | |
512 | p.Material = Enum.Material.Plastic | |
513 | m = Instance.new("SpecialMesh") | |
514 | m.Scale = Vector3.new(1, 1, 1) | |
515 | m.Parent = p | |
516 | m.MeshType = Enum.MeshType.Wedge | |
517 | p = Instance.new("Part", Model) | |
518 | p.Name = "Part" | |
519 | p.TopSurface = 0 | |
520 | p.BottomSurface = 0 | |
521 | p.formFactor = "Custom" | |
522 | p.Size = Vector3.new(1, 1, 4.59) | |
523 | p.CFrame = CFrame.new(49.099987, 18.1699944, 67.5999985, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
524 | p.BrickColor = BrickColor.new("Mid gray") | |
525 | p.Transparency = 0 | |
526 | p.Reflectance = .1 | |
527 | p.Material = Enum.Material.Plastic | |
528 | p = Instance.new("Part", Model) | |
529 | p.Name = "Part" | |
530 | p.TopSurface = 0 | |
531 | p.BottomSurface = 0 | |
532 | p.formFactor = "Custom" | |
533 | p.Size = Vector3.new(1.99, 1, 1) | |
534 | p.CFrame = CFrame.new(51.8999863, 16.6699886, 67.5999908, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
535 | p.BrickColor = BrickColor.new("Mid gray") | |
536 | p.Transparency = 0 | |
537 | p.Reflectance = .1 | |
538 | p.Material = Enum.Material.Plastic | |
539 | p = Instance.new("Part", Model) | |
540 | p.Name = "Part" | |
541 | p.TopSurface = 0 | |
542 | p.BottomSurface = 0 | |
543 | p.formFactor = "Custom" | |
544 | p.Size = Vector3.new(1, 1, 4.59) | |
545 | p.CFrame = CFrame.new(49.099987, 18.1699867, 63.0000153, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
546 | p.BrickColor = BrickColor.new("Mid gray") | |
547 | p.Transparency = 0 | |
548 | p.Reflectance = .1 | |
549 | p.Material = Enum.Material.Plastic | |
550 | p = Instance.new("Part", Model) | |
551 | p.Name = "Part" | |
552 | p.TopSurface = 0 | |
553 | p.BottomSurface = 0 | |
554 | p.formFactor = "Custom" | |
555 | p.Size = Vector3.new(10.1, 1, 0.99) | |
556 | p.CFrame = CFrame.new(46.2999916, 18.1699886, 63.0000229, -1.49008823e-008, -2.39345496e-007, 0.999990225, 6.66727829e-009, 0.99999392, 2.39346434e-007, -0.999994516, 6.66733513e-009, 7.45059765e-008) | |
557 | p.BrickColor = BrickColor.new("Mid gray") | |
558 | p.Transparency = 0 | |
559 | p.Reflectance = .1 | |
560 | p.Material = Enum.Material.Plastic | |
561 | m = Instance.new("SpecialMesh") | |
562 | m.Scale = Vector3.new(1, 1, 1) | |
563 | m.Parent = p | |
564 | m.MeshType = Enum.MeshType.Wedge | |
565 | ||
566 | Spawn = function() | |
567 | Modelc = Model:clone() | |
568 | for _, v in pairs(Modelc:children()) do | |
569 | if v.className == "Part" then | |
570 | if v.Name ~= "Center" then | |
571 | w = Instance.new("Weld") | |
572 | w.Part0 = Modelc.Center | |
573 | w.Part1 = v | |
574 | w.C1 = v.CFrame:inverse() * CFrame.new(v.Position) | |
575 | w.C0 = Modelc.Center.CFrame:inverse() * CFrame.new(v.Position) | |
576 | w.Parent = w.Part0 | |
577 | end | |
578 | end | |
579 | end | |
580 | return Modelc | |
581 | end | |
582 | ||
583 | CameraRadius = 66 | |
584 | TimeStopRadius = 66 | |
585 | ||
586 | RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
587 | RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
588 | LeftShoulderC0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
589 | LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
590 | RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
591 | RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
592 | LeftHipC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
593 | LeftHipC1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
594 | NeckC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
595 | NeckC1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
596 | RootJointC0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
597 | RootJointC1 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
598 | ||
599 | getWelds = function(c) --designate weld variables | |
600 | local t = c.Torso | |
601 | local hrp = c.HumanoidRootPart.RootJoint | |
602 | RightShoulder = t:FindFirstChild("Right Shoulder") | |
603 | LeftShoulder = t:FindFirstChild("Left Shoulder") | |
604 | RightHip = t:FindFirstChild("Right Hip") | |
605 | LeftHip = t:FindFirstChild("Left Hip") | |
606 | RootJoint = hrp | |
607 | Neck = t:FindFirstChild("Neck") | |
608 | end | |
609 | resetWelds = function(ext, occ) --extent 1-3; occlusion | |
610 | --1 == reset desiredangle/currentangle | |
611 | --2 == reset C0/C1 | |
612 | --3 == reset both des/cur/c0/c1 | |
613 | local r = { | |
614 | RightShoulder, | |
615 | LeftShoulder, | |
616 | RightHip, | |
617 | LeftHip, | |
618 | RootJoint, | |
619 | Neck, | |
620 | Grip | |
621 | } | |
622 | for _, v in pairs(r) do | |
623 | for i = 1, #occ do | |
624 | if occ[i] == v then | |
625 | table.remove(r, _) | |
626 | end | |
627 | end | |
628 | end | |
629 | for _, v in pairs(r) do | |
630 | if v.Name == "Right Shoulder" then | |
631 | if ext == 1 then | |
632 | v.DesiredAngle = 0 | |
633 | v.CurrentAngle = 0 | |
634 | elseif ext == 2 then | |
635 | v.C0 = RightShoulderC0 | |
636 | v.C1 = RightShoulderC1 | |
637 | elseif ext == 3 then | |
638 | v.DesiredAngle = 0 | |
639 | v.CurrentAngle = 0 | |
640 | v.C0 = RightShoulderC0 | |
641 | v.C1 = RightShoulderC1 | |
642 | end | |
643 | elseif v.Name == "Left Shoulder" then | |
644 | - | vPlayer = game.Players.LocalPlayer |
644 | + | |
645 | v.DesiredAngle = 0 | |
646 | v.CurrentAngle = 0 | |
647 | elseif ext == 2 then | |
648 | v.C0 = LeftShoulderC0 | |
649 | v.C1 = LeftShoulderC1 | |
650 | elseif ext == 3 then | |
651 | v.DesiredAngle = 0 | |
652 | v.CurrentAngle = 0 | |
653 | v.C0 = LeftShoulderC0 | |
654 | v.C1 = LeftShoulderC1 | |
655 | end | |
656 | elseif v.Name == "Right Hip" then | |
657 | if ext == 1 then | |
658 | v.DesiredAngle = 0 | |
659 | v.CurrentAngle = 0 | |
660 | elseif ext == 2 then | |
661 | v.C0 = RightHipC0 | |
662 | v.C1 = RightHipC1 | |
663 | elseif ext == 3 then | |
664 | v.DesiredAngle = 0 | |
665 | v.CurrentAngle = 0 | |
666 | v.C0 = RightHipC0 | |
667 | v.C1 = RightHipC1 | |
668 | end | |
669 | elseif v.Name == "Left Hip" then | |
670 | if ext == 1 then | |
671 | v.DesiredAngle = 0 | |
672 | v.CurrentAngle = 0 | |
673 | elseif ext == 2 then | |
674 | v.C0 = LeftHipC0 | |
675 | v.C1 = LeftHipC1 | |
676 | elseif ext == 3 then | |
677 | v.DesiredAngle = 0 | |
678 | v.CurrentAngle = 0 | |
679 | v.C0 = LeftHipC0 | |
680 | v.C1 = LeftHipC1 | |
681 | end | |
682 | elseif v.Name == "Neck" then | |
683 | if ext == 1 then | |
684 | v.DesiredAngle = 0 | |
685 | v.CurrentAngle = 0 | |
686 | elseif ext == 2 then | |
687 | v.C0 = NeckC0 | |
688 | v.C1 = NeckC1 | |
689 | elseif ext == 3 then | |
690 | v.DesiredAngle = 0 | |
691 | v.CurrentAngle = 0 | |
692 | v.C0 = NeckC0 | |
693 | v.C1 = NeckC1 | |
694 | end | |
695 | elseif v.Name == "RootJoint" then | |
696 | if ext == 1 then | |
697 | v.DesiredAngle = 0 | |
698 | v.CurrentAngle = 0 | |
699 | elseif ext == 2 then | |
700 | v.C0 = RootJointC0 | |
701 | v.C1 = RootJointC1 | |
702 | elseif ext == 3 then | |
703 | v.DesiredAngle = 0 | |
704 | v.CurrentAngle = 0 | |
705 | v.C0 = RootJointC0 | |
706 | v.C1 = RootJointC1 | |
707 | end | |
708 | elseif v.Name == "RightGrip" then | |
709 | if ext == 1 then | |
710 | elseif ext == 2 then | |
711 | Grip.C0 = nGrip.C0 | |
712 | Grip.C1 = nGrip.C1 | |
713 | elseif ext == 3 then | |
714 | Grip.C0 = nGrip.C0 | |
715 | Grip.C1 = nGrip.C1 | |
716 | end | |
717 | end | |
718 | end | |
719 | end | |
720 | ||
721 | ||
722 | doitdocdoit = function() | |
723 | if deb == false then | |
724 | return | |
725 | end | |
726 | deb = false | |
727 | ||
728 | vPlayer = owner | |
729 | cPlayer = vPlayer.Character | |
730 | Anim = cPlayer.Animate | |
731 | Anim.Disabled = true | |
732 | Hum = cPlayer.Humanoid | |
733 | Hum.Name = "NOPE" | |
734 | Hum.WalkSpeed = 0 | |
735 | getWelds(cPlayer) | |
736 | resetWelds(3, {}) | |
737 | ||
738 | bodypos = Instance.new("BodyPosition") | |
739 | bodypos.P = 4000 | |
740 | bodypos.maxForce = Vector3.new(5000000, 50000000, 5000000) * 5000 | |
741 | bodypos.position = cPlayer.Torso.Position + Vector3.new(0, .5, 0) | |
742 | bodypos.Parent = cPlayer.Torso | |
743 | ||
744 | dir = cPlayer.HumanoidRootPart.CFrame.lookVector | |
745 | CPlayer = cPlayer | |
746 | partpos = Instance.new("Part", workspace) | |
747 | partpos.Transparency = 1 | |
748 | partpos.CanCollide = false | |
749 | partpos.Anchored = true | |
750 | partpos.CFrame = cPlayer.Torso.CFrame | |
751 | ||
752 | sound = Instance.new("Sound") | |
753 | sound.Parent = partpos | |
754 | sound.Volume = 1 | |
755 | sound.SoundId = "http://www.roblox.com/asset/?id=468760371" | |
756 | -- sound.SoundId="http://www.roblox.com/asset/?id=168009623" | |
757 | sound2 = Instance.new("Sound") | |
758 | sound2.Parent = workspace.CurrentCamera | |
759 | sound2.Volume = 1 | |
760 | sound2.SoundId = "http://www.roblox.com/asset/?id=468760371" | |
761 | -- sound2.SoundId="http://www.roblox.com/asset/?id=168009623" | |
762 | sound:Play() | |
763 | sound2:Play() | |
764 | expected = 10 | |
765 | did = false | |
766 | pooted = 0 | |
767 | sos = game:GetService("RunService").Stepped:connect(function() | |
768 | pooted = pooted + 1 | |
769 | if pooted >= expected + 1 then | |
770 | sos:disconnect() | |
771 | did = true | |
772 | return | |
773 | end | |
774 | resetWelds(3, {}) | |
775 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(0), math.rad(0)) | |
776 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(0), math.rad(0)) | |
777 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(0), math.rad(0)) | |
778 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(0), math.rad(0)) | |
779 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
780 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
781 | end) | |
782 | --[[sound=Instance.new("Sound") | |
783 | sound.Parent=cPlayer.Torso | |
784 | sound.Volume=1 | |
785 | sound.SoundId="http://www.roblox.com/asset/?id=316900066" | |
786 | sound:Play()]]-- | |
787 | while did == false do | |
788 | wait() | |
789 | end | |
790 | ||
791 | expected = 10 | |
792 | did = false | |
793 | pooted = 0 | |
794 | sos = game:GetService("RunService").Stepped:connect(function() | |
795 | pooted = pooted + 1 | |
796 | if pooted >= expected + 1 then | |
797 | sos:disconnect() | |
798 | did = true | |
799 | return | |
800 | end | |
801 | resetWelds(3, {}) | |
802 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12 - pooted * 8), math.rad(0), math.rad(pooted)) | |
803 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, pooted * .1) * CFrame.fromEulerAnglesXYZ(math.rad(-12 - pooted * 9), math.rad(pooted * 9), math.rad(0)) | |
804 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12), math.rad(0), math.rad(0)) | |
805 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12), math.rad(0), math.rad(0)) | |
806 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(pooted / 2), math.rad(0), math.rad(-pooted * 9)) | |
807 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(pooted / 3), math.rad(pooted * 10)) | |
808 | end) | |
809 | while did == false do | |
810 | wait() | |
811 | end | |
812 | wait(.2) | |
813 | expected = 5 | |
814 | did = false | |
815 | pooted = 0 | |
816 | nubhit = nil | |
817 | sos = game:GetService("RunService").Stepped:connect(function() | |
818 | pooted = pooted + 1 | |
819 | if pooted >= expected + 1 then | |
820 | sos:disconnect() | |
821 | did = true | |
822 | return | |
823 | end | |
824 | resetWelds(3, {}) | |
825 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12 - pooted * 8), math.rad(0), math.rad(pooted)) | |
826 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, pooted * .1) * CFrame.fromEulerAnglesXYZ(math.rad(-12 - pooted * 9), math.rad(pooted * 9), math.rad(0)) | |
827 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12), math.rad(0), math.rad(0)) | |
828 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12), math.rad(0), math.rad(0)) | |
829 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(5), math.rad(0), math.rad(-90 + pooted * 40)) | |
830 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-10 + pooted * 4), math.rad(3.3), math.rad(90 - pooted * 34)) | |
831 | if nubhit == nil then | |
832 | bodypos.position = bodypos.position + dir * 4 | |
833 | cPlayer.Torso.CFrame = CFrame.new(bodypos.position + dir * 4, bodypos.position + dir * 20) | |
834 | --bodypos.position=bodypos.position + dir*9 | |
835 | --cPlayer.Torso.CFrame=CFrame.new(bodypos.position+dir*9,bodypos.position+dir*20) | |
836 | end | |
837 | if nubhit == nil and pooted >= 2 then | |
838 | pos = bodypos.position + dir * 2 | |
839 | radi = 6 | |
840 | for _, v in pairs(workspace:children()) do | |
841 | h = v:FindFirstChild("Humanoid") | |
842 | t = v:FindFirstChild("Torso") | |
843 | if h ~= nil and t ~= nil and v ~= cPlayer then | |
844 | if (t.Position - pos).magnitude <= radi then | |
845 | print(":>") | |
846 | nubhit = v | |
847 | break | |
848 | end | |
849 | end | |
850 | end | |
851 | end | |
852 | if nubhit ~= nil then | |
853 | if nubhit.Torso:FindFirstChild("PART1") == nil then | |
854 | v = Instance.new("BodyVelocity") | |
855 | v.P = 4000 | |
856 | v.maxForce = Vector3.new(500000000000, 500000000000, 500000000000) | |
857 | v.velocity = dir * 4 + Vector3.new(0, 4, 0) | |
858 | v.Name = "PART1" | |
859 | v.Parent = nubhit.Torso | |
860 | game:GetService("Debris"):AddItem(v, 5) | |
861 | coroutine.resume(coroutine.create(function(v) | |
862 | for i = 1, 100 do | |
863 | v.velocity = v.velocity - Vector3.new(0, .07, 0) | |
864 | wait() | |
865 | end | |
866 | end), v) | |
867 | v = Instance.new("BodyGyro") | |
868 | v.P = 20 | |
869 | v.D = 30 | |
870 | v.maxTorque = Vector3.new(5000000, 5000000, 5000000) | |
871 | v.cframe = CPlayer.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.pi / 2, math.pi, 0) | |
872 | v.Name = "PART1" | |
873 | v.Parent = nubhit.Torso | |
874 | game:GetService("Debris"):AddItem(v, 5) | |
875 | end | |
876 | end | |
877 | end) | |
878 | while did == false do | |
879 | wait() | |
880 | end | |
881 | if nubhit == nil then | |
882 | sound:Stop() | |
883 | wait(.5) | |
884 | sound2:Stop() | |
885 | else | |
886 | expected = 32 | |
887 | did = false | |
888 | pooted = 0 | |
889 | sos = game:GetService("RunService").Stepped:connect(function() | |
890 | pooted = pooted + 1 | |
891 | if pooted >= expected + 1 then | |
892 | sos:disconnect() | |
893 | did = true | |
894 | return | |
895 | end | |
896 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-.03), math.rad(0), math.rad(.03)) | |
897 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, .02) * CFrame.fromEulerAnglesXYZ(math.rad(-.05), math.rad(.08), math.rad(0)) | |
898 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-.04), math.rad(0), math.rad(0)) | |
899 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-.04), math.rad(0), math.rad(0)) | |
900 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(.05), math.rad(0), math.rad(.1)) | |
901 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(.2), math.rad(0.05), math.rad(-.05)) | |
902 | bodypos.position = bodypos.position + dir * .05 | |
903 | cPlayer.Torso.CFrame = CFrame.new(bodypos.position + dir * .05, bodypos.position + dir * 20) | |
904 | end) | |
905 | while did == false do | |
906 | wait() | |
907 | end | |
908 | bodypos.Parent = nil | |
909 | expected = 12 | |
910 | did = false | |
911 | pooted = 0 | |
912 | sos = game:GetService("RunService").Stepped:connect(function() | |
913 | pooted = pooted + 1 | |
914 | if pooted >= expected + 1 then | |
915 | sos:disconnect() | |
916 | did = true | |
917 | return | |
918 | end | |
919 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(4.5), math.rad(0), math.rad(-.15)) | |
920 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, -.07) * CFrame.fromEulerAnglesXYZ(math.rad(5.6), math.rad(-4.5), math.rad(1.25)) | |
921 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1.24), math.rad(0), math.rad(0)) | |
922 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1.24), math.rad(0), math.rad(0)) | |
923 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(-2.5), math.rad(-8)) | |
924 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-.5), math.rad(-.5), math.rad(7)) | |
925 | end) | |
926 | ||
927 | while did == false do | |
928 | wait() | |
929 | end | |
930 | expected = 6 | |
931 | did = false | |
932 | pooted = 0 | |
933 | sos = game:GetService("RunService").Stepped:connect(function() | |
934 | pooted = pooted + 1 | |
935 | if pooted >= expected + 1 then | |
936 | sos:disconnect() | |
937 | did = true | |
938 | return | |
939 | end | |
940 | resetWelds(3, {}) | |
941 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 5), math.rad(0), math.rad(pooted * 18)) | |
942 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 5), math.rad(0), math.rad(-pooted * 18)) | |
943 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(pooted * 6)) | |
944 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(-pooted * 6)) | |
945 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(20 + pooted * 5), math.rad(0), math.rad(0)) | |
946 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, pooted * .03, -pooted * .1) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 6), math.rad(0), math.rad(pooted * 1)) | |
947 | print(":(") | |
948 | end) | |
949 | wait(.3) | |
950 | while did == false do | |
951 | wait() | |
952 | end | |
953 | resetWelds(3, { | |
954 | "Neck" | |
955 | }) | |
956 | expected = 5 | |
957 | did = false | |
958 | pooted = 0 | |
959 | p = Instance.new("Part", workspace) | |
960 | p.Name = "ORB" | |
961 | p.TopSurface = 0 | |
962 | p.BottomSurface = 0 | |
963 | p.formFactor = "Custom" | |
964 | p.CFrame = cPlayer.Torso.CFrame | |
965 | m = Instance.new("SpecialMesh", p) | |
966 | m.MeshType = "Sphere" | |
967 | p.BrickColor = BrickColor:White() | |
968 | p.Size = Vector3.new(1, 1, 1) | |
969 | p.CanCollide = false | |
970 | p.Anchored = true | |
971 | game:GetService("Debris"):AddItem(p, 5) | |
972 | coroutine.resume(coroutine.create(function(p) | |
973 | nubhit.Torso.Anchored = true | |
974 | for i = 1, 10 do | |
975 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(5, 5, 5) | |
976 | p.Transparency = .5 + i / 20 | |
977 | wait() | |
978 | end | |
979 | p:Remove() | |
980 | end), p) | |
981 | sos = game:GetService("RunService").Stepped:connect(function() | |
982 | pooted = pooted + 1 | |
983 | if pooted >= expected + 1 then | |
984 | sos:disconnect() | |
985 | did = true | |
986 | return | |
987 | end | |
988 | resetWelds(3, {}) | |
989 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 10), math.rad(-pooted * 12), math.rad(pooted * 10)) | |
990 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 10), math.rad(pooted * 12), math.rad(-pooted * 10)) | |
991 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(-pooted * 10)) | |
992 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(pooted * 9)) | |
993 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(20 - pooted * 6), math.rad(0), math.rad(0)) | |
994 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, pooted * .03, -pooted * .1) * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 9.5), math.rad(0), math.rad(pooted * .2)) | |
995 | print(":(") | |
996 | end) | |
997 | ||
998 | while did == false do | |
999 | wait() | |
1000 | end | |
1001 | wait(1) | |
1002 | expected = 5 | |
1003 | did = false | |
1004 | pooted = 0 | |
1005 | sos = game:GetService("RunService").Stepped:connect(function() | |
1006 | pooted = pooted + 1 | |
1007 | if pooted >= expected + 1 then | |
1008 | sos:disconnect() | |
1009 | did = true | |
1010 | return | |
1011 | end | |
1012 | resetWelds(3, {}) | |
1013 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0.05 * pooted, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 2), math.rad(0), math.rad(pooted * 6)) | |
1014 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 2), math.rad(0), math.rad(-pooted * 6)) | |
1015 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(-57 + pooted * 20)) | |
1016 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(57 - pooted * 20)) | |
1017 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 4), math.rad(0), math.rad(0)) | |
1018 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, -.1 * pooted) * CFrame.fromEulerAnglesXYZ(math.rad(-57 + pooted * 20), math.rad(0), math.rad(0)) | |
1019 | print(":(") | |
1020 | end) | |
1021 | while did == false do | |
1022 | wait() | |
1023 | end | |
1024 | wait(.8) | |
1025 | expected = 5 | |
1026 | did = false | |
1027 | pooted = 0 | |
1028 | bodypos.Parent = cPlayer.Torso | |
1029 | workspace.CurrentCamera.CameraType = "Follow" | |
1030 | sos = game:GetService("RunService").Stepped:connect(function() | |
1031 | pooted = pooted + 1 | |
1032 | if pooted >= expected + 1 then | |
1033 | sos:disconnect() | |
1034 | did = true | |
1035 | return | |
1036 | end | |
1037 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-2), math.rad(0), math.rad(-3)) | |
1038 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(2), math.rad(0), math.rad(3)) | |
1039 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(-8)) | |
1040 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(8)) | |
1041 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-14), math.rad(0), math.rad(0)) | |
1042 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, .05) * CFrame.fromEulerAnglesXYZ(math.rad(-7), math.rad(0), math.rad(0)) | |
1043 | ||
1044 | bodypos.position = bodypos.position + Vector3.new(0, 240, 0) | |
1045 | cPlayer.Torso.CFrame = cPlayer.Torso.CFrame + Vector3.new(0, 240, 0) | |
1046 | ||
1047 | print(":(") | |
1048 | end) | |
1049 | local DIOPLS = Instance.new("Sound", cPlayer.Torso) | |
1050 | DIOPLS.SoundId = "rbxassetid://316900066" | |
1051 | DIOPLS.Volume = 1 | |
1052 | DIOPLS:Play() | |
1053 | Instance.new("DistortionSoundEffect", DIOPLS).Level = 1 | |
1054 | game:GetService("Debris"):AddItem(DIOPLS, 19) | |
1055 | while did == false do | |
1056 | wait() | |
1057 | end | |
1058 | wait(.8) | |
1059 | LOL = Spawn() | |
1060 | LOL.Parent = workspace | |
1061 | LOL:MakeJoints() | |
1062 | LOL:MoveTo(cPlayer.Torso.CFrame.p) | |
1063 | C = LOL.Center | |
1064 | C.CFrame = CFrame.new(nubhit.Torso.Position + Vector3.new(0, 1200, 0)) * CFrame.new(8, 0, 0) | |
1065 | ||
1066 | bb = Instance.new("BodyPosition") | |
1067 | bb.Parent = C | |
1068 | bb.maxForce = Vector3.new(50000000000000000, 50000000000000000, 50000000000000000) | |
1069 | bb.position = bb.Parent.Position | |
1070 | C.CFrame = CFrame.new(bb.position) | |
1071 | orig = bb.position | |
1072 | ||
1073 | gg = Instance.new("BodyGyro") | |
1074 | gg.P = 15000 | |
1075 | gg.D = 100 | |
1076 | gg.maxTorque = Vector3.new(500000000, 500000000, 500000000) | |
1077 | gg.cframe = CFrame.new(C.Position, Vector3.new(nubhit.Torso.Position.x, C.Position.y, nubhit.Torso.Position.z)) * CFrame.fromEulerAnglesXYZ(-math.rad(10), math.rad(10), 0) | |
1078 | gg.Parent = C | |
1079 | ||
1080 | expected = 80 | |
1081 | did = false | |
1082 | pooted = 0 | |
1083 | ||
1084 | resetWelds(3, {}) | |
1085 | ||
1086 | Hum.PlatformStand = true | |
1087 | ||
1088 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, .4, 0) * CFrame.fromEulerAnglesXYZ(math.rad(30), math.rad(0), math.rad(180)) | |
1089 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, .4, 0) * CFrame.fromEulerAnglesXYZ(math.rad(30), math.rad(0), math.rad(-180)) | |
1090 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-8), math.rad(0), math.rad(-8)) | |
1091 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-8), math.rad(0), math.rad(8)) | |
1092 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(0), math.rad(0)) | |
1093 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
1094 | ||
1095 | bodypos.Parent = nil | |
1096 | w = Instance.new("Weld") | |
1097 | w.Part0 = C | |
1098 | w.Part1 = cPlayer.Torso | |
1099 | w.C0 = CFrame.new(.3, 5.6, -7) * CFrame.fromEulerAnglesXYZ(math.pi / .9, math.pi / 10, 0) | |
1100 | w.C0 = w.C0 * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1101 | w.Parent = w.Part0 | |
1102 | ||
1103 | sos = game:GetService("RunService").Stepped:connect(function() | |
1104 | pooted = pooted + 1 | |
1105 | if pooted >= expected + 1 then | |
1106 | sos:disconnect() | |
1107 | did = true | |
1108 | return | |
1109 | end | |
1110 | ||
1111 | bb.position = orig - Vector3.new(0, 1202 / 80 * pooted, 0) | |
1112 | C.CFrame = C.CFrame - Vector3.new(0, 1202 / 80, 0) | |
1113 | print(":(") | |
1114 | end) | |
1115 | ||
1116 | while did == false do | |
1117 | wait() | |
1118 | end | |
1119 | C.CFrame = CFrame.new(nubhit.Torso.Position + Vector3.new(0, 4, 0), Vector3.new(nubhit.Torso.Position.x, C.Position.y, nubhit.Torso.Position.z)) * CFrame.fromEulerAnglesXYZ(-math.rad(5), math.rad(5), 0) | |
1120 | C.CFrame = C.CFrame * CFrame.new(8, 0, 0) | |
1121 | bl2 = Instance.new("Part") | |
1122 | bl2.TopSurface = 0 | |
1123 | bl2.BottomSurface = 0 | |
1124 | bl2.CanCollide = false | |
1125 | bl2.formFactor = "Symmetric" | |
1126 | local ShockWaveSound = Instance.new("Sound", bl2) | |
1127 | ShockWaveSound.SoundId = "rbxassetid://138186576" | |
1128 | ShockWaveSound.Pitch = 0.8 | |
1129 | ShockWaveSound.Volume = 1 | |
1130 | ShockWaveSound:Play() | |
1131 | Instance.new("DistortionSoundEffect", ShockWaveSound).Level = 1 | |
1132 | m = Instance.new("SpecialMesh") | |
1133 | m.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1134 | m.Scale = Vector3.new(1, 4, 1) | |
1135 | m.Parent = bl2 | |
1136 | bl2.Size = Vector3.new(1, 1, 1) | |
1137 | bl2.Anchored = false | |
1138 | bl2.Name = "c" | |
1139 | bl2.CFrame = CFrame.new(C.Position) - Vector3.new(0, 2, 0) | |
1140 | bl2.BrickColor = BrickColor.new("White") | |
1141 | bl2.Parent = CPlayer | |
1142 | coroutine.resume(coroutine.create(function(p) | |
1143 | for i = 1, 10 do | |
1144 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(8, 0, 8) | |
1145 | p.Transparency = .25 + i * .075 | |
1146 | p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(5), 0) | |
1147 | wait() | |
1148 | end | |
1149 | p:Remove() | |
1150 | end), bl2) | |
1151 | bl2.Anchored = true | |
1152 | ||
1153 | bl2 = Instance.new("Part") | |
1154 | bl2.TopSurface = 0 | |
1155 | bl2.BottomSurface = 0 | |
1156 | bl2.CanCollide = false | |
1157 | bl2.formFactor = "Symmetric" | |
1158 | m = Instance.new("SpecialMesh") | |
1159 | m.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1160 | m.Scale = Vector3.new(1, 6, 1) | |
1161 | m.Parent = bl2 | |
1162 | bl2.Size = Vector3.new(1, 1, 1) | |
1163 | bl2.Anchored = false | |
1164 | bl2.Name = "c" | |
1165 | bl2.CFrame = CFrame.new(C.Position) - Vector3.new(0, 2, 0) | |
1166 | bl2.BrickColor = BrickColor.new("White") | |
1167 | bl2.Parent = CPlayer | |
1168 | coroutine.resume(coroutine.create(function(p) | |
1169 | for i = 1, 20 do | |
1170 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(6, 0, 6) | |
1171 | p.Transparency = i / 20 | |
1172 | p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(3), 0) | |
1173 | wait() | |
1174 | end | |
1175 | p:Remove() | |
1176 | end), bl2) | |
1177 | bl2.Anchored = true | |
1178 | ||
1179 | gg.cframe = gg.cframe * CFrame.fromEulerAnglesXYZ(math.rad(10), -math.rad(10), 0) | |
1180 | expected = 3 | |
1181 | did = false | |
1182 | pooted = 0 | |
1183 | workspace.CurrentCamera.CameraType = "Follow" | |
1184 | sos = game:GetService("RunService").Stepped:connect(function() | |
1185 | pooted = pooted + 1 | |
1186 | if pooted >= expected + 1 then | |
1187 | sos:disconnect() | |
1188 | did = true | |
1189 | return | |
1190 | end | |
1191 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
1192 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
1193 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-4), math.rad(0), math.rad(0)) | |
1194 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(4), math.rad(0), math.rad(0)) | |
1195 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
1196 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(5), math.rad(0), math.rad(0)) | |
1197 | ||
1198 | w.C0 = w.C0 * CFrame.fromEulerAnglesXYZ(math.rad(15), 0, 0) | |
1199 | ||
1200 | print(":(") | |
1201 | end) | |
1202 | while did == false do | |
1203 | wait() | |
1204 | end | |
1205 | wait(.3) | |
1206 | expected = 5 | |
1207 | did = false | |
1208 | pooted = 0 | |
1209 | workspace.CurrentCamera.CameraType = "Follow" | |
1210 | sos = game:GetService("RunService").Stepped:connect(function() | |
1211 | pooted = pooted + 1 | |
1212 | if pooted >= expected + 1 then | |
1213 | sos:disconnect() | |
1214 | did = true | |
1215 | return | |
1216 | end | |
1217 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
1218 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
1219 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(-8)) | |
1220 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(8)) | |
1221 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(5), math.rad(0), math.rad(0)) | |
1222 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(14), math.rad(0), math.rad(0)) | |
1223 | ||
1224 | w.C0 = w.C0 * CFrame.new(0, 0, -.04) * CFrame.fromEulerAnglesXYZ(math.rad(15), 0, 0) | |
1225 | ||
1226 | print(":(") | |
1227 | end) | |
1228 | while did == false do | |
1229 | wait() | |
1230 | end | |
1231 | expected = 203 | |
1232 | did = false | |
1233 | pooted = 0 | |
1234 | workspace.CurrentCamera.CameraType = "Follow" | |
1235 | sos = game:GetService("RunService").Stepped:connect(function() | |
1236 | pooted = pooted + 1 | |
1237 | if pooted >= expected + 1 then | |
1238 | sos:disconnect() | |
1239 | did = true | |
1240 | return | |
1241 | end | |
1242 | resetWelds(3, { | |
1243 | RightHip, | |
1244 | LeftHip, | |
1245 | RootJoint, | |
1246 | Neck | |
1247 | }) | |
1248 | RightShoulder.C0 = RightShoulderC0 * CFrame.new(math.random(-20, 20) / 200, math.cos(time() * 30), math.random(-20, 20) / 200) * CFrame.fromEulerAnglesXYZ(math.sin(time() * 20) / 3, math.sin(time() * 20) / 5, math.rad(60) - math.cos(time() * 70) * 2) | |
1249 | LeftShoulder.C0 = LeftShoulderC0 * CFrame.new(math.random(-20, 20) / 200, math.cos(time() * 30), math.random(-20, 20) / 200) * CFrame.fromEulerAnglesXYZ(math.sin(time() * 20) / 3, math.sin(time() * 20) / 5, math.rad(-60) + math.sin(time() * 60) * 2) | |
1250 | RightHip.C0 = RightHipC0 * CFrame.fromEulerAnglesXYZ(math.rad(-18), math.rad(0), math.rad(-30)) | |
1251 | LeftHip.C0 = LeftHipC0 * CFrame.fromEulerAnglesXYZ(math.rad(-18), math.rad(0), math.rad(30)) | |
1252 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(20), math.rad(0), math.rad(0)) | |
1253 | RootJoint.C0 = RootJointC0 * CFrame.new(math.random(-20, 20) / 200, math.random(-20, 20) / 200, math.random(-20, 20) / 200) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(0), math.rad(0)) | |
1254 | w.C0 = w.C0 * CFrame.new(math.random(-20, 20) / 2000, math.random(-20, 20) / 2000, math.random(-20, 20) / 2000) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1255 | C.CFrame = C.CFrame + Vector3.new(math.random(-20, 20) / 200, math.random(-20, 20) / 200, math.random(-20, 20) / 200) | |
1256 | ||
1257 | if pooted / 2 == math.floor(pooted / 2) then | |
1258 | p = cPlayer["Right Arm"]:clone() | |
1259 | p.Anchored = true | |
1260 | p.CanCollide = false | |
1261 | p.Parent = workspace | |
1262 | p.Transparency = .5 | |
1263 | game:GetService("Debris"):AddItem(p, .2) | |
1264 | p = cPlayer["Left Arm"]:clone() | |
1265 | p.Anchored = true | |
1266 | p.CanCollide = false | |
1267 | p.Parent = workspace | |
1268 | p.Transparency = .5 | |
1269 | game:GetService("Debris"):AddItem(p, .2) | |
1270 | ||
1271 | p = Instance.new("Part", workspace) | |
1272 | p.Name = "ORB" | |
1273 | p.TopSurface = 0 | |
1274 | p.BottomSurface = 0 | |
1275 | p.formFactor = "Custom" | |
1276 | p.CFrame = cPlayer.Torso.CFrame + cPlayer.Torso.CFrame.lookVector * 3 + Vector3.new(math.random(-20, 20) / 15, math.random(-20, 20) / 15 - .8, math.random(-20, 20) / 15) | |
1277 | m = Instance.new("SpecialMesh", p) | |
1278 | m.MeshType = "Sphere" | |
1279 | p.BrickColor = BrickColor:White() | |
1280 | p.Size = Vector3.new(.4, .4, .4) | |
1281 | p.CanCollide = false | |
1282 | p.Anchored = true | |
1283 | game:GetService("Debris"):AddItem(p, 5) | |
1284 | coroutine.resume(coroutine.create(function(p) | |
1285 | for i = 1, 8 do | |
1286 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(1, 1, 1) | |
1287 | p.Transparency = i / 8 | |
1288 | wait() | |
1289 | end | |
1290 | p:Remove() | |
1291 | end), p) | |
1292 | ||
1293 | end | |
1294 | ||
1295 | print(":)") | |
1296 | end) | |
1297 | while did == false do | |
1298 | wait() | |
1299 | end | |
1300 | wait(.5) | |
1301 | expected = 20 | |
1302 | did = false | |
1303 | pooted = 0 | |
1304 | workspace.CurrentCamera.CameraType = "Follow" | |
1305 | sos = game:GetService("RunService").Stepped:connect(function() | |
1306 | pooted = pooted + 1 | |
1307 | if pooted >= expected + 1 then | |
1308 | sos:disconnect() | |
1309 | did = true | |
1310 | return | |
1311 | end | |
1312 | resetWelds(3, { | |
1313 | Neck, | |
1314 | RootJoint, | |
1315 | RightHip, | |
1316 | LeftHip | |
1317 | }) | |
1318 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(2 * pooted), math.rad(0), math.rad(5 * pooted)) | |
1319 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(-9 * pooted)) | |
1320 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(-2)) | |
1321 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(4 * pooted)) | |
1322 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(2), math.rad(0), math.rad(2)) | |
1323 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
1324 | w.C0 = w.C0 * CFrame.new(0, 0.03, .03) * CFrame.fromEulerAnglesXYZ(math.rad(2), math.rad(2), math.rad(0)) | |
1325 | print(":)") | |
1326 | end) | |
1327 | while did == false do | |
1328 | wait() | |
1329 | end | |
1330 | wait(2) | |
1331 | expected = 5 | |
1332 | did = false | |
1333 | pooted = 0 | |
1334 | workspace.CurrentCamera.CameraType = "Follow" | |
1335 | w.Parent = nil | |
1336 | bodypos.position = cPlayer.Torso.Position - Vector3.new(0, 1, 0) | |
1337 | poo = cPlayer.Torso.CFrame.lookVector | |
1338 | cPlayer.Torso.CFrame = CFrame.new(cPlayer.Torso.Position, cPlayer.Torso.Position + C.CFrame.lookVector * 50) | |
1339 | bodypos.Parent = cPlayer.Torso | |
1340 | sos = game:GetService("RunService").Stepped:connect(function() | |
1341 | pooted = pooted + 1 | |
1342 | if pooted >= expected + 1 then | |
1343 | sos:disconnect() | |
1344 | did = true | |
1345 | return | |
1346 | end | |
1347 | resetWelds(3, {}) | |
1348 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(80 - pooted * 35)) | |
1349 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(10), math.rad(0), math.rad(-190 + pooted * 28)) | |
1350 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(6), math.rad(0), math.rad(-80 + pooted * 4)) | |
1351 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(8), math.rad(0), math.rad(84 - pooted * 4)) | |
1352 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(20 + pooted * 10), math.rad(0), math.rad(0)) | |
1353 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, -pooted * .25) * CFrame.fromEulerAnglesXYZ(math.rad(-20 + pooted * 9), math.rad(0), math.rad(0)) | |
1354 | print(":)") | |
1355 | end) | |
1356 | while did == false do | |
1357 | wait() | |
1358 | end | |
1359 | wait(.7) | |
1360 | expected = 5 | |
1361 | did = false | |
1362 | pooted = 0 | |
1363 | sos = game:GetService("RunService").Stepped:connect(function() | |
1364 | pooted = pooted + 1 | |
1365 | if pooted >= expected + 1 then | |
1366 | sos:disconnect() | |
1367 | did = true | |
1368 | return | |
1369 | end | |
1370 | resetWelds(3, {}) | |
1371 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0.05 * pooted, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 2), math.rad(0), math.rad(pooted * 6)) | |
1372 | - | Tool.Parent = game.Players.LocalPlayer.Backpack |
1372 | + | |
1373 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(-57 + pooted * 20)) | |
1374 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(57 - pooted * 20)) | |
1375 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 4), math.rad(0), math.rad(0)) | |
1376 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, -.1 * pooted) * CFrame.fromEulerAnglesXYZ(math.rad(-57 + pooted * 20), math.rad(0), math.rad(0)) | |
1377 | print(":(") | |
1378 | end) | |
1379 | while did == false do | |
1380 | wait() | |
1381 | end | |
1382 | wait(.2) | |
1383 | expected = 10 | |
1384 | did = false | |
1385 | pooted = 0 | |
1386 | workspace.CurrentCamera.CameraType = "Follow" | |
1387 | g = Instance.new("BodyGyro") | |
1388 | g.Parent = cPlayer.Torso | |
1389 | sos = game:GetService("RunService").Stepped:connect(function() | |
1390 | pooted = pooted + 1 | |
1391 | if pooted >= expected + 1 then | |
1392 | sos:disconnect() | |
1393 | did = true | |
1394 | return | |
1395 | end | |
1396 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-2), math.rad(0), math.rad(-2)) | |
1397 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(2)) | |
1398 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(-4)) | |
1399 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(4)) | |
1400 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-7), math.rad(0), math.rad(0)) | |
1401 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, .05) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
1402 | if pooted >= 2 then | |
1403 | bodypos.position = bodypos.position + Vector3.new(0, 12, 0) - dir * 5 | |
1404 | cPlayer.Torso.CFrame = cPlayer.Torso.CFrame + Vector3.new(0, 12, 0) - dir * 5 | |
1405 | end | |
1406 | print(":(") | |
1407 | end) | |
1408 | while did == false do | |
1409 | wait() | |
1410 | end | |
1411 | wait(.2) | |
1412 | bodypos:Remove() | |
1413 | wait(.5) | |
1414 | ||
1415 | e = Instance.new("Explosion") | |
1416 | e.BlastRadius = 30 | |
1417 | e.Position = C.Position | |
1418 | e.BlastPressure = e.BlastPressure * 2.5 | |
1419 | e.Parent = workspace | |
1420 | s = Instance.new("Sound", C) | |
1421 | s.SoundId = "rbxassetid://258057783" | |
1422 | s.Volume = 1 | |
1423 | s:Play() | |
1424 | Instance.new("DistortionSoundEffect", s).Level = 1 | |
1425 | g:Remove() | |
1426 | --dun | |
1427 | nubhit.Torso.Anchored = false | |
1428 | Hum.PlatformStand = false | |
1429 | C.Anchored = true | |
1430 | ||
1431 | coroutine.resume(coroutine.create(function(t) | |
1432 | wait(3) | |
1433 | p = Instance.new("Sound") | |
1434 | p.SoundId = "http://www.roblox.com/asset/?id=154677261" | |
1435 | p.Parent = t | |
1436 | p.Volume = 1 | |
1437 | p:Play() | |
1438 | end), C) | |
1439 | game:GetService("Debris"):AddItem(LOL, 5) | |
1440 | end | |
1441 | resetWelds(3, {}) | |
1442 | workspace.CurrentCamera.CameraType = "Custom" | |
1443 | Hum.WalkSpeed = 16 | |
1444 | Hum.Name = "Humanoid" | |
1445 | bodypos:Remove() | |
1446 | partpos:Remove() | |
1447 | Anim.Parent = nil | |
1448 | wait(.1) | |
1449 | Anim.Disabled = false | |
1450 | Anim.Parent = cPlayer | |
1451 | deb = true | |
1452 | end | |
1453 | ||
1454 | Tool = Instance.new("HopperBin") | |
1455 | Tool.Name = "ROAD ROLLER DA" | |
1456 | Tool.Parent = owner.Backpack | |
1457 | Tool.Selected:connect(function(mouse) | |
1458 | mouse.Button1Down:connect(function() | |
1459 | doitdocdoit() | |
1460 | end) | |
1461 | end) | |
1462 | ||
1463 | end |