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