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