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