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