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