SHOW:
|
|
- or go back to the newest paste.
1 | --Grab Gun v1 | |
2 | local plr = game:GetService("Players").LocalPlayer | |
3 | local plrg = plr.PlayerGui | |
4 | local char = plr.Character | |
5 | script.Parent = char | |
6 | local ra = char["Right Arm"] | |
7 | local la = char["Left Arm"] | |
8 | local rl = char["Right Leg"] | |
9 | local ll = char["Left Leg"] | |
10 | local h = char.Head | |
11 | local t = char.Torso | |
12 | local anim = "idle" | |
13 | local mode = "shoot" | |
14 | local killmode = "kill" | |
15 | local mouse = plr:GetMouse() | |
16 | local rad = math.rad | |
17 | local black = nil | |
18 | - | if plr.Name ~= "vlad20020" and plr.Name ~= "Netdyninja696" and plr.Name ~= "the_v0ld" then |
18 | + | |
19 | - | black = "ban" |
19 | + | |
20 | - | else |
20 | + | |
21 | local mpos = {-.001,-.002,-.003,-.004,-.005} | |
22 | local sc = Instance.new("ScreenGui",plrg) | |
23 | local tex = Instance.new("TextLabel",sc) tex.Rotation = math.random(-5,5) tex.Position = UDim2.new(.5,0,.05,0) tex.Size = UDim2.new(0,0,.15,0) tex.TextScaled = true tex.BackgroundTransparency = 1 tex.TextTransparency = 1 tex.BackgroundColor3 = Color3.fromRGB(40,40,40) tex.BorderSizePixel = 0 tex.TextColor3 = Color3.fromRGB(255,255,255) tex.Text = text | |
24 | for i = 1,20 do | |
25 | tex.Size = tex.Size + UDim2.new(.025,0,0,0) | |
26 | tex.Rotation = math.random(-5,5) | |
27 | tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)) | |
28 | tex.Position = tex.Position - UDim2.new(.0125,0,0,0) | |
29 | tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10)) | |
30 | tex.BackgroundColor3 = Color3.fromRGB(math.random(0,60),math.random(0,60),math.random(0,60)) | |
31 | tex.BackgroundTransparency = tex.BackgroundTransparency -.05 | |
32 | swait() | |
33 | end | |
34 | for i = 1,10 do | |
35 | tex.Rotation = math.random(-5,5) | |
36 | tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)) | |
37 | tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10)) | |
38 | tex.BackgroundColor3 = Color3.fromRGB(math.random(0,60),math.random(0,60),math.random(0,60)) | |
39 | tex.TextTransparency = tex.TextTransparency -.1 | |
40 | swait() | |
41 | end | |
42 | tex.BackgroundColor3 = Color3.fromRGB(40,40,40) | |
43 | tex.TextColor3 = Color3.fromRGB(255,255,255) | |
44 | wait(timebeforefade) | |
45 | for i = 1,10 do | |
46 | tex.Rotation = math.random(-5,5) | |
47 | tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)) | |
48 | tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10)) | |
49 | tex.BackgroundColor3 = Color3.fromRGB(math.random(0,60),math.random(0,60),math.random(0,60)) | |
50 | tex.TextTransparency = tex.TextTransparency +.1 | |
51 | swait() | |
52 | end | |
53 | for i = 1,20 do | |
54 | tex.Size = tex.Size - UDim2.new(.025,0,0,0) | |
55 | tex.Rotation = math.random(-5,5) | |
56 | tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255)) | |
57 | tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10)) | |
58 | tex.BackgroundColor3 = Color3.fromRGB(math.random(0,30),math.random(0,60),math.random(0,60)) | |
59 | tex.Position = tex.Position + UDim2.new(.0125,0,0,0) | |
60 | tex.BackgroundTransparency = tex.BackgroundTransparency +.05 | |
61 | swait() | |
62 | end | |
63 | tex:Destroy() | |
64 | end)) | |
65 | end | |
66 | ||
67 | print("Made by vlad20020") | |
68 | ||
69 | coroutine.resume(coroutine.create(function() | |
70 | wait(1) | |
71 | info("Press Z to equip the gun.",1) | |
72 | wait(2) | |
73 | info("Press X to unequip the gun.",1) | |
74 | wait(2) | |
75 | info("Press M for control list",1) | |
76 | end)) | |
77 | ||
78 | function swait(TIME) | |
79 | game:GetService("RunService").RenderStepped:wait(TIME) | |
80 | end | |
81 | ||
82 | local rs = t["Right Shoulder"] | |
83 | local ls = t["Left Shoulder"] | |
84 | local rh = t["Right Hip"] | |
85 | local lh = t["Left Hip"] | |
86 | local nec = t.Neck | |
87 | local rut = char.HumanoidRootPart | |
88 | local rutj = rut.RootJoint | |
89 | local hum = char:FindFirstChildOfClass("Humanoid") | |
90 | local using = true | |
91 | local canequip = true | |
92 | local uneq = false | |
93 | local grab = false | |
94 | huge = math.huge | |
95 | local ammo = 7 | |
96 | char.Animate.idle.Animation2:Destroy() | |
97 | ||
98 | --arm joint parts_ | |
99 | local tpr = Instance.new("Part",t) tpr.Size = Vector3.new(.1,.1,.1) tpr.CanCollide = false tpr.Transparency = 1 | |
100 | local tpl = Instance.new("Part",t) tpl.Size = Vector3.new(.1,.1,.1) tpl.CanCollide = false tpl.Transparency = 1 | |
101 | local tprw = Instance.new("Weld",t) tprw.Part0 = t tprw.Part1 = tpr tprw.C0 = CFrame.new(1,.5,0) | |
102 | local tplw = Instance.new("Weld",t) tplw.Part0 = t tplw.Part1 = tpl tplw.C0 = CFrame.new(-1,.5,0) | |
103 | -- | |
104 | local rapr = Instance.new("Part",ra) rapr.Size = Vector3.new(.1,.1,.1) rapr.CanCollide = false rapr.Transparency = 1 --Right Arm | |
105 | local lapl = Instance.new("Part",la) lapl.Size = Vector3.new(.1,.1,.1) lapl.CanCollide = false lapl.Transparency = 1 --Left Arm | |
106 | local raprw = Instance.new("Weld",ra) raprw.Part0 = ra raprw.Part1 = rapr raprw.C0 = CFrame.new(-.5,.5,0) | |
107 | local laplw = Instance.new("Weld",la) laplw.Part0 = la laplw.Part1 = lapl laplw.C0 = CFrame.new(.5,.5,0) | |
108 | --joint welds | |
109 | local rsw = Instance.new("Weld",ra) rsw.Part0 = tpr rsw.Part1 = nil --Right Shoulder | |
110 | local lsw = Instance.new("Weld",la) lsw.Part0 = tpl lsw.Part1 = nil --Left Shoulder | |
111 | --gun model-- | |
112 | local function creategun() | |
113 | --Converted with ttyyuu12345's model to script plugin v4 | |
114 | function sandbox(var,func) | |
115 | local env = getfenv(func) | |
116 | local newenv = setmetatable({},{ | |
117 | __index = function(self,k) | |
118 | if k=="script" then | |
119 | return var | |
120 | else | |
121 | return env[k] | |
122 | end | |
123 | end, | |
124 | }) | |
125 | setfenv(func,newenv) | |
126 | return func | |
127 | end | |
128 | cors = {} | |
129 | mas = Instance.new("Model",game:GetService("Lighting")) | |
130 | Model0 = Instance.new("Model") | |
131 | Part1 = Instance.new("Part") | |
132 | Part2 = Instance.new("Part") | |
133 | Part3 = Instance.new("Part") | |
134 | WeldConstraint4 = Instance.new("WeldConstraint") | |
135 | Part5 = Instance.new("Part") | |
136 | WeldConstraint6 = Instance.new("WeldConstraint") | |
137 | WeldConstraint7 = Instance.new("WeldConstraint") | |
138 | Part8 = Instance.new("Part") | |
139 | WeldConstraint9 = Instance.new("WeldConstraint") | |
140 | WeldConstraint10 = Instance.new("WeldConstraint") | |
141 | WeldConstraint11 = Instance.new("WeldConstraint") | |
142 | Part12 = Instance.new("Part") | |
143 | Part13 = Instance.new("Part") | |
144 | WeldConstraint14 = Instance.new("WeldConstraint") | |
145 | Part15 = Instance.new("Part") | |
146 | Part16 = Instance.new("Part") | |
147 | WeldConstraint17 = Instance.new("WeldConstraint") | |
148 | WeldConstraint18 = Instance.new("WeldConstraint") | |
149 | Part19 = Instance.new("Part") | |
150 | Part20 = Instance.new("Part") | |
151 | WeldConstraint21 = Instance.new("WeldConstraint") | |
152 | Part22 = Instance.new("Part") | |
153 | WeldConstraint23 = Instance.new("WeldConstraint") | |
154 | Model0.Name = "gun" | |
155 | Model0.Parent = mas | |
156 | Part1.Name = "Handle" | |
157 | Part1.Parent = Model0 | |
158 | Part1.CFrame = CFrame.new(100.938477, 23.8801613, -108.945274, 0.803930104, -0.00498482632, -0.594721258, 0.000852990604, 0.999974132, -0.00722878333, 0.594741881, 0.00530394772, 0.803912997) | |
159 | Part1.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997) | |
160 | Part1.Position = Vector3.new(100.938477, 23.8801613, -108.945274) | |
161 | Part1.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985) | |
162 | Part1.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
163 | Part1.Transparency = 1 | |
164 | Part1.Size = Vector3.new(0.271587253, 1.35793722, 0.271587431) | |
165 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
166 | Part1.BrickColor = BrickColor.new("Black") | |
167 | Part1.CanCollide = false | |
168 | Part1.Material = Enum.Material.Metal | |
169 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
170 | Part1.brickColor = BrickColor.new("Black") | |
171 | Part2.Parent = Model0 | |
172 | Part2.CFrame = CFrame.new(100.662735, 23.9763107, -109.178238, 0.803839028, -0.00493576005, -0.594844699, 0.000852896366, 0.999974787, -0.00714508584, 0.594864845, 0.00523596723, 0.803822458) | |
173 | Part2.Orientation = Vector3.new(0.409999996, -36.5, 0.049999997) | |
174 | Part2.Position = Vector3.new(100.662735, 23.9763107, -109.178238) | |
175 | Part2.Rotation = Vector3.new(0.50999999, -36.5, 0.349999994) | |
176 | Part2.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
177 | Part2.Size = Vector3.new(0.339484632, 0.108634979, 0.0950556025) | |
178 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
179 | Part2.BrickColor = BrickColor.new("Black") | |
180 | Part2.CanCollide = false | |
181 | Part2.Material = Enum.Material.Metal | |
182 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
183 | Part2.brickColor = BrickColor.new("Black") | |
184 | Part3.Parent = Model0 | |
185 | Part3.CFrame = CFrame.new(100.477272, 24.1208344, -109.300568, 0.00492594484, 0.803836763, -0.594847798, -0.999974728, 0.000837364234, -0.00714954128, -0.00524876919, 0.594867945, 0.803820133) | |
186 | Part3.Orientation = Vector3.new(0.409999996, -36.5, -89.9499969) | |
187 | Part3.Position = Vector3.new(100.477272, 24.1208344, -109.300568) | |
188 | Part3.Rotation = Vector3.new(0.50999999, -36.5, -89.6500015) | |
189 | Part3.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
190 | Part3.Size = Vector3.new(0.393802106, 0.108634979, 0.0950556025) | |
191 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
192 | Part3.BrickColor = BrickColor.new("Black") | |
193 | Part3.CanCollide = false | |
194 | Part3.Material = Enum.Material.Metal | |
195 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
196 | Part3.brickColor = BrickColor.new("Black") | |
197 | WeldConstraint4.Parent = Part3 | |
198 | WeldConstraint4.Part0 = Part3 | |
199 | WeldConstraint4.Part1 = Part2 | |
200 | Part5.Parent = Model0 | |
201 | Part5.CFrame = CFrame.new(100.603096, 24.3147335, -109.201149, 0.804022074, -0.00503333705, -0.594596386, 0.00085399684, 0.999973536, -0.0073103467, 0.594617426, 0.00536970189, 0.80400461) | |
202 | Part5.Orientation = Vector3.new(0.419999987, -36.4799995, 0.049999997) | |
203 | Part5.Position = Vector3.new(100.603096, 24.3147335, -109.201149) | |
204 | Part5.Rotation = Vector3.new(0.519999981, -36.4799995, 0.359999985) | |
205 | Part5.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
206 | Part5.Size = Vector3.new(1.69742119, 0.203690529, 0.271587461) | |
207 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
208 | Part5.BrickColor = BrickColor.new("Black") | |
209 | Part5.CanCollide = false | |
210 | Part5.Material = Enum.Material.Metal | |
211 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
212 | Part5.brickColor = BrickColor.new("Black") | |
213 | WeldConstraint6.Parent = Part5 | |
214 | WeldConstraint6.Part0 = Part5 | |
215 | WeldConstraint6.Part1 = Part16 | |
216 | WeldConstraint7.Parent = Part5 | |
217 | WeldConstraint7.Part0 = Part5 | |
218 | WeldConstraint7.Part1 = Part19 | |
219 | Part8.Parent = Model0 | |
220 | Part8.CFrame = CFrame.new(100.928474, 23.7767162, -108.965073, 0.790873766, -0.144370049, -0.594724894, 0.174304828, 0.984665811, -0.00723577663, 0.586649835, -0.0979410186, 0.803910255) | |
221 | Part8.Orientation = Vector3.new(0.409999996, -36.4899979, 10.04) | |
222 | Part8.Position = Vector3.new(100.928474, 23.7767162, -108.965073) | |
223 | Part8.Rotation = Vector3.new(0.519999981, -36.4899979, 10.3499994) | |
224 | Part8.Color = Color3.new(0.623529, 0.631373, 0.67451) | |
225 | Part8.Size = Vector3.new(0.407381058, 0.678968549, 0.271587461) | |
226 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
227 | Part8.BrickColor = BrickColor.new("Fossil") | |
228 | Part8.CanCollide = false | |
229 | Part8.Material = Enum.Material.Slate | |
230 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
231 | Part8.brickColor = BrickColor.new("Fossil") | |
232 | WeldConstraint9.Parent = Part8 | |
233 | WeldConstraint9.Part0 = Part8 | |
234 | WeldConstraint9.Part1 = Part22 | |
235 | WeldConstraint10.Parent = Part8 | |
236 | WeldConstraint10.Part0 = Part8 | |
237 | WeldConstraint10.Part1 = Part2 | |
238 | WeldConstraint11.Parent = Part8 | |
239 | WeldConstraint11.Part0 = Part8 | |
240 | WeldConstraint11.Part1 = Part1 | |
241 | Part12.Parent = Model0 | |
242 | Part12.CFrame = CFrame.new(99.8241043, 24.4670258, -109.770966, 0.803930223, -0.00498490315, -0.594721019, 0.00085299596, 0.999974012, -0.00722887041, 0.594741583, 0.00530401571, 0.803913176) | |
243 | Part12.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997) | |
244 | Part12.Position = Vector3.new(99.8241043, 24.4670258, -109.770966) | |
245 | Part12.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985) | |
246 | Part12.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
247 | Part12.Size = Vector3.new(0.0678968653, 0.20369038, 0.176531628) | |
248 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
249 | Part12.BrickColor = BrickColor.new("Black") | |
250 | Part12.CanCollide = false | |
251 | Part12.Material = Enum.Material.SmoothPlastic | |
252 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
253 | Part12.brickColor = BrickColor.new("Black") | |
254 | Part12.Shape = Enum.PartType.Cylinder | |
255 | Part13.Parent = Model0 | |
256 | Part13.CFrame = CFrame.new(101.002449, 23.3428402, -108.930023, 0.790792346, -0.144294962, -0.594851375, 0.174290657, 0.984668911, -0.0071533937, 0.586763799, -0.0980203673, 0.803817451) | |
257 | Part13.Orientation = Vector3.new(0.409999996, -36.5, 10.04) | |
258 | Part13.Position = Vector3.new(101.002449, 23.3428402, -108.930023) | |
259 | Part13.Rotation = Vector3.new(0.50999999, -36.5, 10.3400002) | |
260 | Part13.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
261 | Part13.Size = Vector3.new(0.407381058, 0.203690544, 0.271587461) | |
262 | Part13.BottomSurface = Enum.SurfaceType.Smooth | |
263 | Part13.BrickColor = BrickColor.new("Black") | |
264 | Part13.CanCollide = false | |
265 | Part13.Material = Enum.Material.Metal | |
266 | Part13.TopSurface = Enum.SurfaceType.Smooth | |
267 | Part13.brickColor = BrickColor.new("Black") | |
268 | WeldConstraint14.Parent = Part13 | |
269 | WeldConstraint14.Part0 = Part13 | |
270 | WeldConstraint14.Part1 = Part8 | |
271 | Part15.Parent = Model0 | |
272 | Part15.CFrame = CFrame.new(99.8172379, 24.46702, -109.773712, 0.803930223, -0.00498490315, -0.594721019, 0.00085299596, 0.999974012, -0.00722887041, 0.594741583, 0.00530401571, 0.803913176) | |
273 | Part15.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997) | |
274 | Part15.Position = Vector3.new(99.8172379, 24.46702, -109.773712) | |
275 | Part15.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985) | |
276 | Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
277 | Part15.Size = Vector3.new(0.0678968653, 0.20369038, 0.135793507) | |
278 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
279 | Part15.BrickColor = BrickColor.new("Really black") | |
280 | Part15.CanCollide = false | |
281 | Part15.Material = Enum.Material.SmoothPlastic | |
282 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
283 | Part15.brickColor = BrickColor.new("Really black") | |
284 | Part15.Shape = Enum.PartType.Cylinder | |
285 | Part16.Parent = Model0 | |
286 | Part16.CFrame = CFrame.new(100.518448, 24.4841995, -109.259399, 0.80401504, -0.00503334729, -0.59459132, 0.000853998587, 0.999973059, -0.00731024938, 0.594612062, 0.00536973123, 0.803997576) | |
287 | Part16.Orientation = Vector3.new(0.419999987, -36.4799995, 0.049999997) | |
288 | Part16.Position = Vector3.new(100.518448, 24.4841995, -109.259399) | |
289 | Part16.Rotation = Vector3.new(0.519999981, -36.4799995, 0.359999985) | |
290 | Part16.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
291 | Part16.Size = Vector3.new(1.76531804, 0.271587402, 0.271587461) | |
292 | Part16.BottomSurface = Enum.SurfaceType.Smooth | |
293 | Part16.BrickColor = BrickColor.new("Black") | |
294 | Part16.CanCollide = false | |
295 | Part16.Material = Enum.Material.Metal | |
296 | Part16.TopSurface = Enum.SurfaceType.Smooth | |
297 | Part16.brickColor = BrickColor.new("Black") | |
298 | WeldConstraint17.Parent = Part16 | |
299 | WeldConstraint17.Part0 = Part16 | |
300 | WeldConstraint17.Part1 = Part12 | |
301 | WeldConstraint18.Parent = Part16 | |
302 | WeldConstraint18.Part0 = Part16 | |
303 | WeldConstraint18.Part1 = Part15 | |
304 | Part19.Parent = Model0 | |
305 | Part19.CFrame = CFrame.new(99.8672562, 24.3137894, -109.7491, 0.803929985, -0.00498482212, -0.594721317, 0.000852967962, 0.999974132, -0.0072287661, 0.59474194, 0.00530394865, 0.803912997) | |
306 | Part19.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997) | |
307 | Part19.Position = Vector3.new(99.8672562, 24.3137894, -109.7491) | |
308 | Part19.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985) | |
309 | Part19.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
310 | Part19.Size = Vector3.new(0.135793433, 0.0678968653, 0.271587461) | |
311 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
312 | Part19.BrickColor = BrickColor.new("Black") | |
313 | Part19.CanCollide = false | |
314 | Part19.Material = Enum.Material.Metal | |
315 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
316 | Part19.brickColor = BrickColor.new("Black") | |
317 | Part20.Parent = Model0 | |
318 | Part20.CFrame = CFrame.new(100.96167, 23.2699795, -108.967567, 0.803838253, -0.00491723372, -0.594845951, 0.00083023723, 0.999974787, -0.00714454427, 0.594866037, 0.00524902251, 0.803821564) | |
319 | Part20.Orientation = Vector3.new(0.409999996, -36.5, 0.049999997) | |
320 | Part20.Position = Vector3.new(100.96167, 23.2699795, -108.967567) | |
321 | Part20.Rotation = Vector3.new(0.50999999, -36.5, 0.349999994) | |
322 | Part20.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
323 | Part20.Size = Vector3.new(0.543174803, 0.135793686, 0.271587461) | |
324 | Part20.BottomSurface = Enum.SurfaceType.Smooth | |
325 | Part20.BrickColor = BrickColor.new("Black") | |
326 | Part20.CanCollide = false | |
327 | Part20.Material = Enum.Material.Metal | |
328 | Part20.TopSurface = Enum.SurfaceType.Smooth | |
329 | Part20.brickColor = BrickColor.new("Black") | |
330 | WeldConstraint21.Parent = Part20 | |
331 | WeldConstraint21.Part0 = Part20 | |
332 | WeldConstraint21.Part1 = Part13 | |
333 | Part22.Parent = Model0 | |
334 | Part22.CFrame = CFrame.new(100.859795, 24.2106876, -109.005821, 0.790954888, -0.144435093, -0.594601154, 0.174307793, 0.984664679, -0.0073169847, 0.586539567, -0.0978563949, 0.804001033) | |
335 | Part22.Orientation = Vector3.new(0.419999987, -36.4799995, 10.04) | |
336 | Part22.Position = Vector3.new(100.859795, 24.2106876, -109.005821) | |
337 | Part22.Rotation = Vector3.new(0.519999981, -36.4799995, 10.3499994) | |
338 | Part22.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
339 | Part22.Size = Vector3.new(0.407381058, 0.203690529, 0.271587461) | |
340 | Part22.BottomSurface = Enum.SurfaceType.Smooth | |
341 | Part22.BrickColor = BrickColor.new("Black") | |
342 | Part22.CanCollide = false | |
343 | Part22.Material = Enum.Material.Metal | |
344 | Part22.TopSurface = Enum.SurfaceType.Smooth | |
345 | Part22.brickColor = BrickColor.new("Black") | |
346 | WeldConstraint23.Parent = Part22 | |
347 | WeldConstraint23.Part0 = Part22 | |
348 | WeldConstraint23.Part1 = Part5 | |
349 | for i,v in pairs(mas:GetChildren()) do | |
350 | v.Parent = workspace | |
351 | pcall(function() v:MakeJoints() end) | |
352 | end | |
353 | mas:Destroy() | |
354 | for i,v in pairs(cors) do | |
355 | spawn(function() | |
356 | pcall(v) | |
357 | end) | |
358 | end | |
359 | ||
360 | Model0.Parent = char | |
361 | end | |
362 | creategun() | |
363 | --gun model end-- | |
364 | local shot = Instance.new("Part",Model0) shot.Size = Vector3.new(.2,.2,.2) shot.Transparency = 1 shot.Anchored = true shot.CanCollide = false shot.CFrame = ra.CFrame * CFrame.new(0,-2,0) | |
365 | coroutine.resume(coroutine.create(function() | |
366 | while true do | |
367 | shot.CFrame = ra.CFrame * CFrame.new(0,-2.6,-.4) * CFrame.Angles(rad(-90),rad(0),rad(0)) | |
368 | swait() | |
369 | end | |
370 | end)) | |
371 | local gunweld = Instance.new("Weld",ra) gunweld.Part0 = t gunweld.Part1 = Part1 gunweld.C0 = CFrame.new(1.1,-.7,0) * CFrame.Angles(rad(-120),rad(-90),rad(0)) | |
372 | function turnto(position) | |
373 | rut.CFrame = CFrame.new(rut.CFrame.p, Vector3.new(position.X, rut.Position.Y, position.Z)) * CFrame.new(0, 0, 0) | |
374 | end | |
375 | function fireto(position) | |
376 | shot.CFrame = CFrame.new(shot.CFrame.p, Vector3.new(position.X, position.Y, position.Z)) * CFrame.new(0, 0, 0) | |
377 | end | |
378 | ||
379 | function sound(parent,id,vol,pit) | |
380 | local sound = Instance.new("Sound",parent) | |
381 | sound.Volume = vol | |
382 | sound.SoundId = "rbxassetid://"..id | |
383 | sound.Pitch = pit | |
384 | sound:Play() | |
385 | coroutine.resume(coroutine.create(function() | |
386 | ||
387 | repeat | |
388 | swait() | |
389 | until sound.Playing == false | |
390 | sound:Destroy() | |
391 | end)) | |
392 | end | |
393 | function blood(POSITION) | |
394 | local blub = Instance.new("Part",workspace) | |
395 | blub.Material = "SmoothPlastic" | |
396 | blub.BrickColor = BrickColor.new("Maroon") | |
397 | blub.Size = Vector3.new(.3,.3,.3) | |
398 | blub.Shape = "Ball" | |
399 | blub.CFrame = POSITION.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)) blub.Transparency = 0 | |
400 | blub.CanCollide = true blub.Anchored = false blub.Name = "Blood" | |
401 | coroutine.resume(coroutine.create(function(PART) | |
402 | wait(.5) | |
403 | blub.CanCollide = false blub.Anchored = true | |
404 | blub.Shape = "Cylinder" | |
405 | for i = 0,10 do | |
406 | blub.Orientation = Vector3.new(0,0,90) | |
407 | blub.Size = blub.Size + Vector3.new(0,.05,.05) | |
408 | blub.Size = blub.Size - Vector3.new(.035,0,0) | |
409 | wait(.1) | |
410 | end | |
411 | for i = 0,10 do | |
412 | ||
413 | blub.Orientation = Vector3.new(0,0,90) | |
414 | blub.Size = blub.Size + Vector3.new(0,.05,.05) | |
415 | blub.Size = blub.Size - Vector3.new(.035,0,0) | |
416 | wait(.1) | |
417 | end | |
418 | coroutine.resume(coroutine.create(function() | |
419 | for i = 0,1,.01 do | |
420 | blub.Color = blub.Color:lerp(Color3.fromRGB(40,0,0),i) | |
421 | swait() | |
422 | end | |
423 | end)) | |
424 | for i = 0,10 do | |
425 | blub.Size = blub.Size + Vector3.new(0,.025,.025) | |
426 | blub.Size = blub.Size - Vector3.new(.035,0,0) | |
427 | blub.Transparency = blub.Transparency + .1 | |
428 | wait(.1) | |
429 | end | |
430 | if blub.Transparency >= .99 then | |
431 | blub:Destroy() | |
432 | end | |
433 | end)) | |
434 | end | |
435 | function nubblud(pos) | |
436 | local sizes = {.1,.2,.3,.4,.5,.6} | |
437 | local poses = {.1,.2,.3,.4,.5} | |
438 | local mposes = {-.1,-.2,-.3,-.4,-.5} | |
439 | coroutine.resume(coroutine.create(function() | |
440 | local blod = Instance.new("Part",workspace) blod.Size = Vector3.new(sizes[math.random(1,6)],sizes[math.random(1,6)],sizes[math.random(1,6)]) blod.BrickColor = BrickColor.new("Maroon") blod.Material = "SmoothPlastic" | |
441 | blod.CFrame = pos.CFrame * CFrame.new(math.random(mposes[math.random(1,5)],poses[math.random(1,5)]),math.random(mposes[math.random(1,5)],poses[math.random(1,5)]),math.random(mposes[math.random(1,5)],poses[math.random(1,5)])) | |
442 | wait(5) | |
443 | blod:Destroy() | |
444 | end)) | |
445 | end | |
446 | function bullet() | |
447 | local bulet = Instance.new("Part",workspace) | |
448 | bulet.Size = Vector3.new(.15,.15,2) | |
449 | bulet.BrickColor = BrickColor.new("Daisy orange") | |
450 | bulet.Material = "Neon" bulet.CanCollide = false | |
451 | bulet.CFrame = shot.CFrame * CFrame.new(0,0,-2.2) bulet.Name = "Bullet" | |
452 | local mes = Instance.new("SpecialMesh",bulet) mes.MeshType = "Sphere" | |
453 | coroutine.resume(coroutine.create(function() | |
454 | wait(.02) | |
455 | for i = 0,1,.01 do | |
456 | bulet.Size = bulet.Size:lerp(Vector3.new(.15,.15,35),i) | |
457 | swait() | |
458 | end | |
459 | end)) | |
460 | local direc = Instance.new("BodyGyro",bulet) direc.MaxTorque = Vector3.new(huge,huge,huge) direc.CFrame = CFrame.new(bulet.Position,mouse.Hit.p) | |
461 | local vel = Instance.new("BodyVelocity",bulet) vel.MaxForce = Vector3.new(huge,huge,huge) vel.Velocity = direc.CFrame.lookVector * 400 | |
462 | local a = false | |
463 | function ow(hit) | |
464 | if hit ~= nil then | |
465 | local nub = hit.Parent:FindFirstChildOfClass("Humanoid") | |
466 | if nub ~= nil then | |
467 | if hit.Parent == char then | |
468 | ||
469 | else | |
470 | a = true | |
471 | nub.MaxHealth = 100 | |
472 | nub.Health = nub.Health -0 | |
473 | nub:TakeDamage(math.random(11,23)) | |
474 | nub.WalkSpeed = nub.WalkSpeed -1.2 | |
475 | nub.JumpPower = nub.JumpPower -10 | |
476 | if hit.Name == "Head" or hit.Name == "Handle" then | |
477 | function expl(pos) | |
478 | local p = Instance.new("Part",workspace) | |
479 | p.Size = Vector3.new(.1,.1,.1) p.BrickColor = BrickColor.new("Maroon") | |
480 | p.Material = "Neon" p.Shape = "Ball" p.CanCollide = false p.Anchored = true | |
481 | p.CFrame = pos.CFrame | |
482 | coroutine.resume(coroutine.create(function() | |
483 | for i = 0,2,.1 do | |
484 | p.Size = p.Size:lerp(Vector3.new(4,4,4),i) | |
485 | p.Transparency = p.Transparency +.07 | |
486 | swait() | |
487 | if p.Transparency >.99 then | |
488 | p:Destroy() | |
489 | end | |
490 | end | |
491 | end)) | |
492 | end | |
493 | nub.Parent:BreakJoints() | |
494 | hit.Parent.Head:Destroy() | |
495 | bulet:Destroy() | |
496 | sound(char,"131313234",2,1) | |
497 | expl(hit) | |
498 | local bum = Instance.new("Explosion",workspace) bum.Visible = false bum.BlastPressure = 20000 bum.BlastRadius = .5 bum.Position = hit.Position | |
499 | for i = 1,math.random(2,7) do | |
500 | blood(hit) | |
501 | nubblud(hit) | |
502 | end | |
503 | end | |
504 | end | |
505 | end | |
506 | bulet:Destroy() | |
507 | end | |
508 | end | |
509 | bulet.Touched:connect(ow) | |
510 | coroutine.resume(coroutine.create(function() | |
511 | wait(2) | |
512 | bulet:Destroy() | |
513 | end)) | |
514 | end | |
515 | ||
516 | function mag() | |
517 | local mag = Instance.new("Part",workspace) mag.Size = Vector3.new(.35,1,.2) mag.BrickColor = BrickColor.new("Black") mag.Material = "Metal" mag.CFrame = Part1.CFrame * CFrame.new(0,-1,0) | |
518 | coroutine.resume(coroutine.create(function() | |
519 | wait(3) | |
520 | mag:Destroy() | |
521 | end)) | |
522 | end | |
523 | ||
524 | function effect() | |
525 | local ef = Instance.new("Part",Model0) ef.Material = "Neon" ef.Name = "Effect" ef.Size = Vector3.new(.4,.4,.4) ef.Anchored = true ef.CanCollide = false ef.BrickColor = BrickColor.new("Daisy orange") ef.Transparency = 0 ef.CFrame = Part15.CFrame | |
526 | coroutine.resume(coroutine.create(function() | |
527 | for i = 1,10 do | |
528 | ef.Size = ef.Size +Vector3.new(.05,.05,.05) | |
529 | ef.Transparency = ef.Transparency +.1 | |
530 | ef.CFrame = ef.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))) | |
531 | if ef.Transparency > .99 then | |
532 | ef:Destroy() | |
533 | end | |
534 | swait() | |
535 | end | |
536 | end)) | |
537 | end | |
538 | ||
539 | local grabda = false | |
540 | local keyhold = false | |
541 | local lukin = false | |
542 | function fire() | |
543 | if not using and mode == "shoot" or using and grabda and mode == "grab" and killmode == "shoot1" then | |
544 | using = true | |
545 | rsw.Part1 = rapr | |
546 | lukin = true | |
547 | coroutine.resume(coroutine.create(function() | |
548 | while lukin do | |
549 | turnto(mouse.Hit.p) | |
550 | swait() | |
551 | end | |
552 | end)) | |
553 | keyhold = true | |
554 | for i = 0,1,.07 do | |
555 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(90),rad(0),rad(53)),i) | |
556 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(233)),i) | |
557 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(127)),i) | |
558 | swait() | |
559 | end | |
560 | repeat | |
561 | if ammo >0 then | |
562 | fireto(mouse.Hit.p) | |
563 | sound(char,"131070686",4,1) | |
564 | ammo = ammo -1 | |
565 | effect() | |
566 | bullet() | |
567 | for i = 0,1,.3 do | |
568 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,.3) * CFrame.Angles(rad(90),rad(0),rad(53)) * CFrame.Angles(rad(40),rad(0),rad(0)),i) | |
569 | swait() | |
570 | end | |
571 | for i = 0,1,.2 do | |
572 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(90),rad(0),rad(53)),i) | |
573 | swait() | |
574 | end | |
575 | wait(.35) | |
576 | else | |
577 | sound(char,"537744814",10,1) | |
578 | keyhold = false | |
579 | swait() | |
580 | end | |
581 | until keyhold == false | |
582 | wait(.2) | |
583 | lukin = false | |
584 | for i = 0,1,.07 do | |
585 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
586 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
587 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
588 | swait() | |
589 | end | |
590 | rsw.Part1 = nil | |
591 | if killmode ~= "shoot1" then | |
592 | using = false | |
593 | end | |
594 | end | |
595 | end | |
596 | function keyup() | |
597 | keyhold = false | |
598 | end | |
599 | mouse.Button1Down:connect(fire) | |
600 | mouse.Button1Up:connect(keyup) | |
601 | ||
602 | function reload() | |
603 | if ammo >6 then | |
604 | else | |
605 | using = true | |
606 | rsw.Part1 = rapr lsw.Part1 = lapl | |
607 | sound(char,"198915489",2,1.3) | |
608 | info("Reloading...",2.2) | |
609 | for i = 0,1,.05 do | |
610 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(80),rad(-45),rad(-40)),i) | |
611 | lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(60),rad(0),rad(50)),i) | |
612 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
613 | swait() | |
614 | end | |
615 | mag() | |
616 | for i = 0,1,.1 do | |
617 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(60),rad(-45),rad(-40)),i) | |
618 | lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-10),rad(0),rad(0)),i) | |
619 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
620 | swait() | |
621 | end | |
622 | for i = 0,1,.05 do | |
623 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(60),rad(-45),rad(-40)),i) | |
624 | lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-10),rad(0),rad(50)),i) | |
625 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
626 | swait() | |
627 | end | |
628 | local mag = Instance.new("Part",workspace) mag.Size = Vector3.new(.35,1,.2) mag.BrickColor = BrickColor.new("Black") mag.CanCollide = false mag.Material = "Metal" | |
629 | local magw = Instance.new("Weld",mag) magw.Part0 = la magw.Part1 = mag magw.C0 = CFrame.new(.3,-1,.1) * CFrame.Angles(rad(90),rad(-40),rad(-90)) | |
630 | for i = 0,1,.05 do | |
631 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(80),rad(-45),rad(-40)),i) | |
632 | lsw.C0 = lsw.C0:lerp(CFrame.new(.4,0,0) * CFrame.Angles(rad(50),rad(45),rad(50)),i) | |
633 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
634 | swait() | |
635 | end | |
636 | mag:Destroy() | |
637 | for i = 0,1,.05 do | |
638 | rsw.C0 = rsw.C0:lerp(CFrame.new(-.5,-.7,0) * CFrame.Angles(rad(110),rad(0),rad(-47)),i) | |
639 | lsw.C0 = lsw.C0:lerp(CFrame.new(.3,-.5,0) * CFrame.Angles(rad(160),rad(-77),rad(40)),i) | |
640 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
641 | swait() | |
642 | end | |
643 | for i = 0,1,.05 do | |
644 | rsw.C0 = rsw.C0:lerp(CFrame.new(-.5,-.7,0) * CFrame.Angles(rad(110),rad(0),rad(-47)),i) | |
645 | lsw.C0 = lsw.C0:lerp(CFrame.new(.5,-.5,.3) * CFrame.Angles(rad(150),rad(-50),rad(40)),i) | |
646 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
647 | swait() | |
648 | end | |
649 | for i = 0,1,.05 do | |
650 | rsw.C0 = rsw.C0:lerp(CFrame.new(-.5,-.7,0) * CFrame.Angles(rad(110),rad(0),rad(-47)),i) | |
651 | lsw.C0 = lsw.C0:lerp(CFrame.new(.3,-.5,0) * CFrame.Angles(rad(160),rad(-77),rad(40)),i) | |
652 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
653 | swait() | |
654 | end | |
655 | for i = 0,.6,.05 do | |
656 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
657 | lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
658 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
659 | swait() | |
660 | end | |
661 | ammo = 7 | |
662 | rsw.Part1 = nil lsw.Part1 = nil | |
663 | using = false | |
664 | end | |
665 | end | |
666 | ||
667 | function greb() | |
668 | local hbox = Instance.new("Part",char) hbox.Size = Vector3.new(2,5,.5) hbox.CanCollide = false hbox.Transparency = 1 | |
669 | local hwb = Instance.new("Weld",hbox) hwb.Part0 = t hwb.Part1 = hbox hwb.C0 = CFrame.new(0,0,-1) | |
670 | local aa = false | |
671 | function grabd(hit) | |
672 | if hit ~= nil and not grab and not aa then | |
673 | local aaa = hit.Parent:FindFirstChildOfClass("Humanoid") or hit.Parent.Parent:FindFirstChildOfClass("Humanoid") or hit.Parent.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
674 | if aaa ~= nil and not grab then | |
675 | grab = true aa = true | |
676 | hbox:Destroy() | |
677 | if aaa.Parent.Name == "ded" then | |
678 | info("Press E or Q to change the mode",1) | |
679 | else | |
680 | info("Press E or Q to change the mode",1) | |
681 | end | |
682 | local tos = aaa.Parent:FindFirstChild("Torso") or aaa.Parent:FindFirstChild("UpperTorso") | |
683 | aaa.PlatformStand = true | |
684 | local w = Instance.new("Weld",t) w.Name = "grabweld" w.Part0 = t w.Part1 = tos | |
685 | coroutine.resume(coroutine.create(function() | |
686 | for i = 0,.5,.1 do | |
687 | w.C0 = w.C0:lerp(CFrame.new(-.9,0,-.8),i) | |
688 | swait() | |
689 | end | |
690 | end)) | |
691 | if aaa.Parent.Name ~= "ded" then | |
692 | for i = 0,1,.05 do | |
693 | rsw.C0 = rsw.C0:lerp(CFrame.new(.7,0,-.15) * CFrame.Angles(rad(110),rad(0),rad(-80)) * CFrame.Angles(rad(10),rad(0),rad(0)),i) | |
694 | lsw.C0 = lsw.C0:lerp(CFrame.new(-.2,-.2,-.4) * CFrame.Angles(rad(130),rad(10),rad(50)),i) | |
695 | swait() | |
696 | end | |
697 | function kill() | |
698 | grab = false | |
699 | if ammo >0 then | |
700 | ammo = ammo -1 | |
701 | sound(char,"131070686",5,1) | |
702 | coroutine.resume(coroutine.create(function() | |
703 | for i = 0,1,.5 do | |
704 | rsw.C0 = rsw.C0:lerp(CFrame.new(1,0,.45) * CFrame.Angles(rad(110),rad(0),rad(-80)) * CFrame.Angles(rad(10),rad(0),rad(15)),i) | |
705 | swait() | |
706 | end | |
707 | for i = 0,1,.05 do | |
708 | rsw.C0 = rsw.C0:lerp(CFrame.new(.7,0,-.15) * CFrame.Angles(rad(110),rad(0),rad(-80)),i) | |
709 | swait() | |
710 | end | |
711 | end)) | |
712 | coroutine.resume(coroutine.create(function() | |
713 | aaa.Health = .1 | |
714 | for i,v in pairs(aaa.Parent:GetChildren()) do | |
715 | if v:IsA("Script") then | |
716 | v:Destroy() | |
717 | end | |
718 | end | |
719 | end)) | |
720 | wait(.5) | |
721 | coroutine.resume(coroutine.create(function() | |
722 | for i,v in pairs(tos.Parent:GetChildren()) do | |
723 | if v:IsA("BasePart") then | |
724 | v.Anchored = false | |
725 | end | |
726 | end | |
727 | for i,v in pairs(t:GetChildren()) do | |
728 | if v.Name == "grabweld" then | |
729 | v:Destroy() | |
730 | end | |
731 | end | |
732 | end)) | |
733 | coroutine.resume(coroutine.create(function() | |
734 | for i = 0,.5,.1 do | |
735 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(-15),rad(0),rad(20)),i) | |
736 | lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(110),rad(20),rad(-30)),i) | |
737 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(150)),i) | |
738 | swait() | |
739 | end | |
740 | end)) | |
741 | aaa.DisplayDistanceType = "None" | |
742 | if tos.Name == "Torso" then | |
743 | coroutine.resume(coroutine.create(function() | |
744 | aaa.PlatformStand = true | |
745 | local disshit = aaa.Parent | |
746 | local h1 = disshit.Head | |
747 | local t1 = disshit.Torso | |
748 | local ra1 = disshit["Right Arm"] | |
749 | local la1 = disshit["Left Arm"] | |
750 | local rl1 = disshit["Right Leg"] | |
751 | local ll1 = disshit["Left Leg"] | |
752 | t1:BreakJoints() | |
753 | at2 = Instance.new("Attachment",t1) at2.Position = Vector3.new(1,.7,0) at2.Position = Vector3.new(1,.5,0) | |
754 | at = Instance.new("Attachment",ra1) at.Name = "oof" at.Position = Vector3.new(-.5,.7,0) | |
755 | balls = Instance.new("BallSocketConstraint",ra1) balls.Attachment0 = at2 balls.Attachment1 = at | |
756 | at21 = Instance.new("Attachment",t1) at21.Position = Vector3.new(-1,.7,0) at21.Position = Vector3.new(-1,.5,0) at21.Orientation = Vector3.new(0,180,0) | |
757 | at1 = Instance.new("Attachment",la1) at.Name = "oof" at1.Position = Vector3.new(.5,.7,0) | |
758 | balls1 = Instance.new("BallSocketConstraint",la1) balls1.Attachment0 = at21 balls1.Attachment1 = at1 | |
759 | nek = Instance.new("Attachment",h1) nek2 = Instance.new("Attachment",t1) nek2.Position = Vector3.new(0,1,0) nek.Position = Vector3.new(0,-.5,0) nball = Instance.new("BallSocketConstraint",h1) nball.Attachment0 = nek nball.Attachment1 = nek2 | |
760 | owihatedis = Instance.new("Attachment",t1) owihatedis.Position = Vector3.new(.5,-1,0) oihd = Instance.new("Attachment",rl1) oihd.Position = Vector3.new(0,1,0) oww = Instance.new("BallSocketConstraint",rl1) oww.Attachment0 = owihatedis oww.Attachment1 = oihd | |
761 | owihatedis2 = Instance.new("Attachment",t1) owihatedis2.Position = Vector3.new(-.5,-1,0) oihd2 = Instance.new("Attachment",ll1) oihd2.Position = Vector3.new(0,1,0) oww2 = Instance.new("BallSocketConstraint",ll1) oww2.Attachment0 = owihatedis2 oww2.Attachment1 = oihd2 | |
762 | box = Instance.new("Part",t1) box.Size = Vector3.new(1,1.3,1) box.Transparency = 1 | |
763 | box1 = Instance.new("Part",t1) box1.Size = Vector3.new(1,1.3,1) box1.Transparency = 1 | |
764 | box2 = Instance.new("Part",t1) box2.Size = Vector3.new(1,1.3,1) box2.Transparency = 1 | |
765 | box3 = Instance.new("Part",t1) box3.Size = Vector3.new(1,1.3,1) box3.Transparency = 1 | |
766 | box4 = Instance.new("Part",t1) box4.Size = h.Size - Vector3.new(0,.7,0) box4.Transparency = 1 | |
767 | bw = Instance.new("Weld",box) bw.Part0 = box bw.Part1 = ra1 bw.C0 = bw.C0 * CFrame.new(0,.45,0) | |
768 | bw1 = Instance.new("Weld",box1) bw1.Part0 = box1 bw1.Part1 = la1 bw1.C0 = bw1.C0 * CFrame.new(0,.45,0) | |
769 | bw2 = Instance.new("Weld",box2) bw2.Part0 = box2 bw2.Part1 = rl1 bw2.C0 = bw2.C0 * CFrame.new(0,.45,0) | |
770 | bw3 = Instance.new("Weld",box3) bw3.Part0 = box3 bw3.Part1 = ll1 bw3.C0 = bw3.C0 * CFrame.new(0,.45,0) | |
771 | bw4 = Instance.new("Weld",box4) bw4.Part0 = box4 bw4.Part1 = h1 bw4.C0 = bw4.C0 * CFrame.new(0,0,0) | |
772 | local rt = disshit:FindFirstChild("HumanoidRootPart") | |
773 | if rt ~= nil then | |
774 | rt:Destroy() | |
775 | end | |
776 | wait() | |
777 | local ded = disshit:Clone() | |
778 | local as = ded:FindFirstChildOfClass("Humanoid") | |
779 | as.Died:connect(function() | |
780 | for i,v in pairs(ded.Torso:GetChildren()) do | |
781 | if v:IsA("Part") then | |
782 | v:Destroy() | |
783 | end | |
784 | end | |
785 | end) | |
786 | coroutine.resume(coroutine.create(function() | |
787 | for i = 1,math.random(4,9) do | |
788 | nubblud(ded.Head) | |
789 | wait(.05) | |
790 | end | |
791 | end)) | |
792 | as.PlatformStand = true | |
793 | ded.Parent = workspace disshit:Destroy() | |
794 | ded.Torso.CFrame = ded.Torso.CFrame * CFrame.new(0,4,-6) | |
795 | ded.Torso.Orientation = Vector3.new(math.random(-70,70),math.random(-70,70),math.random(-70,70)) | |
796 | ded.Name = "ded" | |
797 | local yes = Instance.new("Part",char) yes.Size = t.Size yes.Anchored = true yes.CanCollide = false yes.Transparency = 1 yes.CFrame = rut.CFrame * CFrame.Angles(rad(50),rad(0),rad(0)) | |
798 | local furs = Instance.new("BodyVelocity",ded.Torso) furs.MaxForce = Vector3.new(huge,huge,huge) | |
799 | furs.Velocity = yes.CFrame.lookVector * 35 | |
800 | ||
801 | coroutine.resume(coroutine.create(function() | |
802 | wait(.1) | |
803 | furs:Destroy() | |
804 | yes:Destroy() | |
805 | end)) | |
806 | end)) | |
807 | end | |
808 | wait(.4) | |
809 | for i = 0,1,.05 do | |
810 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
811 | lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
812 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
813 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
814 | swait() | |
815 | end | |
816 | if aaa.Parent ~= nil then | |
817 | aaa.Parent:BreakJoints() | |
818 | end | |
819 | using = false | |
820 | rsw.Part1 = nil lsw.Part1 = nil | |
821 | else | |
822 | aaa.PlatformStand = true | |
823 | sound(char,"537744814",10,1) | |
824 | wait(.5) | |
825 | local furs = Instance.new("BodyVelocity",tos) furs.MaxForce = Vector3.new(huge,huge,huge) | |
826 | furs.Velocity = rut.CFrame.lookVector * 30 | |
827 | w:Destroy() | |
828 | for i = 0,.5,.05 do | |
829 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(-15),rad(0),rad(-20)),i) | |
830 | lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(90),rad(20),rad(10)),i) | |
831 | swait() | |
832 | end | |
833 | furs:Destroy() | |
834 | for i = 0,1,.1 do | |
835 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
836 | lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
837 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
838 | swait() | |
839 | end | |
840 | coroutine.resume(coroutine.create(function() | |
841 | wait(2) | |
842 | if aaa.Parent.Name == "ded" then | |
843 | else | |
844 | aaa.PlatformStand = false | |
845 | end | |
846 | end)) | |
847 | grab = false | |
848 | using = false | |
849 | rsw.Part1 = nil lsw.Part1 = nil | |
850 | end | |
851 | end | |
852 | function drop() | |
853 | aaa.PlatformStand = true | |
854 | w:Destroy() | |
855 | local furs = Instance.new("BodyVelocity",tos) furs.MaxForce = Vector3.new(huge,huge,huge) | |
856 | furs.Velocity = rut.CFrame.lookVector * 30 | |
857 | for i = 0,.5,.05 do | |
858 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(-15),rad(0),rad(-20)),i) | |
859 | lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(90),rad(20),rad(10)),i) | |
860 | swait() | |
861 | end | |
862 | furs:Destroy() | |
863 | for i = 0,1,.05 do | |
864 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
865 | lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
866 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
867 | swait() | |
868 | end | |
869 | coroutine.resume(coroutine.create(function() | |
870 | wait(2) | |
871 | if aaa.Parent.Name == "ded" then | |
872 | else | |
873 | aaa.PlatformStand = false | |
874 | end | |
875 | end)) | |
876 | using = false | |
877 | rsw.Part1 = nil lsw.Part1 = nil | |
878 | grab = false | |
879 | end | |
880 | else | |
881 | oldmode = killmode | |
882 | killmode = "release1" | |
883 | hum.JumpPower = 0 | |
884 | hum.WalkSpeed = 8 | |
885 | coroutine.resume(coroutine.create(function() | |
886 | for i = 0,1,.05 do | |
887 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0),i) | |
888 | lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-33),rad(0),rad(-30)),i) | |
889 | swait() | |
890 | end | |
891 | end)) | |
892 | grabda = true | |
893 | w:Destroy() | |
894 | local ata = Instance.new("Attachment",la) ata.Position = Vector3.new(0,-.8,0) | |
895 | local ata1 = Instance.new("Attachment",aaa.Parent["Right Leg"]) ata1.Position = Vector3.new(0,-.8,0) | |
896 | local ba = Instance.new("BallSocketConstraint",ata) ba.Attachment0 = ata ba.Attachment1 = ata1 | |
897 | rsw.Part1 = nil | |
898 | function drop1() | |
899 | using = true | |
900 | grabda = false | |
901 | killmode = oldmode | |
902 | ba.Attachment1 = nil | |
903 | ata:Destroy() | |
904 | ata1:Destroy() | |
905 | ba:Destroy() | |
906 | hum.JumpPower = 50 | |
907 | hum.WalkSpeed = 16 | |
908 | for i = 0,1,.05 do | |
909 | lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0),i) | |
910 | swait() | |
911 | end | |
912 | lsw.Part1 = nil | |
913 | using = false | |
914 | grab = false | |
915 | end | |
916 | end | |
917 | end | |
918 | end | |
919 | end | |
920 | local tcon = hbox.Touched:connect(grabd) | |
921 | using = true | |
922 | coroutine.resume(coroutine.create(function() | |
923 | for i = 0,.5,.1 do | |
924 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
925 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i) | |
926 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i) | |
927 | swait() | |
928 | end | |
929 | end)) | |
930 | rsw.Part1 = rapr lsw.Part1 = lapl | |
931 | for i = 0,.7,.05 do | |
932 | rsw.C0 = rsw.C0:lerp(CFrame.new(.2,0,-.3) * CFrame.Angles(rad(90),rad(0),rad(70)),i) | |
933 | lsw.C0 = lsw.C0:lerp(CFrame.new(-.2,0,-.5) * CFrame.Angles(rad(90),rad(0),rad(-70)),i) | |
934 | swait() | |
935 | end | |
936 | wait(.25) | |
937 | hbox:Destroy() | |
938 | tcon:disconnect() | |
939 | if grab == false then | |
940 | for i = 0,1,.05 do | |
941 | rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
942 | lsw.C0 = lsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
943 | swait() | |
944 | end | |
945 | using = false | |
946 | rsw.Part1 = nil lsw.Part1 = nil | |
947 | end | |
948 | end | |
949 | ||
950 | function dumi() | |
951 | local dog = Instance.new("Model",workspace) dog.Name = "dumi" | |
952 | local head = Instance.new("Part",dog) head.Name = "Head" head.Size = Vector3.new(2,1,1) | |
953 | local la1 = Instance.new("Part",dog) la1.Name = "Left Arm" la1.Size = Vector3.new(1,2,1) local t1 = Instance.new("Part",dog) t1.Name = "Torso" t1.Size = Vector3.new(2,2,1) local ra1 = Instance.new("Part",dog) ra1.Name = "Right Arm" ra1.Size = Vector3.new(1,2,1) | |
954 | local ll1 = Instance.new("Part",dog) ll1.Name = "Left Leg" ll1.Size = Vector3.new(1,2,1) local rl1 = Instance.new("Part",dog) rl1.Name = "Right Leg" rl1.Size = Vector3.new(1,2,1) | |
955 | local dhum = Instance.new("Humanoid",dog) local hmesh = Instance.new("SpecialMesh",head) hmesh.Scale = Vector3.new(1.25,1.25,1.25) | |
956 | dhum.MaxHealth = "inf" dhum.Health = "inf" dhum.AutoJumpEnabled = true | |
957 | head.BrickColor = BrickColor.new("Institutional white") t1.BrickColor = BrickColor.new("Really black") ra1.BrickColor = BrickColor.new("Institutional white") la1.BrickColor = BrickColor.new("Institutional white") rl1.BrickColor = BrickColor.new("Dark stone grey") ll1.BrickColor = BrickColor.new("Dark stone grey") | |
958 | local fais = Instance.new("Decal",head) fais.Texture = "http://www.roblox.com/asset/?id=1077397727" | |
959 | local nec = Instance.new("Motor6D",t1) nec.Part0 = t1 nec.Part1 = head nec.C0 = nec.C0 * CFrame.new(0,1.5,0) | |
960 | local ris = Instance.new("Motor6D",t1) ris.Part0 = t1 ris.Part1 = ra1 ris.C0 = ris.C0 * CFrame.new(1.5,0,0) | |
961 | local lis = Instance.new("Motor6D",t1) lis.Part0 = t1 lis.Part1 = la1 lis.C0 = lis.C0 * CFrame.new(-1.5,0,0) | |
962 | local rih = Instance.new("Motor6D",t1) rih.Part0 = t1 rih.Part1 = rl1 rih.C0 = rih.C0 * CFrame.new(.5,-2,0) | |
963 | local lih = Instance.new("Motor6D",t1) lih.Part0 = t1 lih.Part1 = ll1 lih.C0 = lih.C0 * CFrame.new(-.5,-2,0) | |
964 | head.CFrame = h.CFrame * CFrame.new(4,0,0) | |
965 | t1.CFrame = t.CFrame * CFrame.new(4,0,0) | |
966 | ra1.CFrame = ra.CFrame * CFrame.new(4,0,0) | |
967 | la1.CFrame = la.CFrame * CFrame.new(4,0,0) | |
968 | rl1.CFrame = rl.CFrame * CFrame.new(4,0,0) | |
969 | ll1.CFrame = ll.CFrame * CFrame.new(4,0,0) | |
970 | end | |
971 | ||
972 | mouse.KeyDown:connect(function(key) | |
973 | if key == "z"and canequip then | |
974 | rsw.Part1 = rapr | |
975 | using = true | |
976 | info("Equipped, press F or G to change the mode.",1) | |
977 | for i = 0,1,.03 do | |
978 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,.3,0) * CFrame.Angles(rad(0),rad(0),rad(-20)),i) | |
979 | swait() | |
980 | end | |
981 | gunweld.Part0 = ra gunweld.C0 = CFrame.new(0,-.9,0) * CFrame.Angles(rad(-90),rad(-90),rad(0)) | |
982 | for i = 0,1,.05 do | |
983 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
984 | swait() | |
985 | end | |
986 | uneq = true | |
987 | rsw.Part1 = nil | |
988 | canequip = false | |
989 | using = false | |
990 | end | |
991 | end) | |
992 | ||
993 | mouse.KeyDown:connect(function(key) | |
994 | if key == "x" and not canequip and uneq then | |
995 | rsw.Part1 = rapr | |
996 | using = true | |
997 | info("Unequipped.",1) | |
998 | for i = 0,1,.05 do | |
999 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,.3,0) * CFrame.Angles(rad(0),rad(0),rad(-20)),i) | |
1000 | swait() | |
1001 | end | |
1002 | gunweld.Part0 = t gunweld.C0 = CFrame.new(1.1,-.7,0) * CFrame.Angles(rad(-120),rad(-90),rad(0)) | |
1003 | for i = 0,.5,.1 do | |
1004 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1005 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i) | |
1006 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i) | |
1007 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i) | |
1008 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i) | |
1009 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1010 | swait() | |
1011 | end | |
1012 | for i = 0,1,.03 do | |
1013 | rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1014 | swait() | |
1015 | end | |
1016 | uneq = false | |
1017 | canequip = true | |
1018 | rsw.Part1 = nil | |
1019 | end | |
1020 | end) | |
1021 | ||
1022 | mouse.KeyDown:connect(function(key) | |
1023 | key = string.lower(key) | |
1024 | if string.byte(key) == 48 and not grabda then | |
1025 | hum.WalkSpeed = 30 | |
1026 | end | |
1027 | end) | |
1028 | mouse.KeyUp:connect(function(key) | |
1029 | key = string.lower(key) | |
1030 | if string.byte(key) == 48 and not grabda then | |
1031 | hum.WalkSpeed = 16 | |
1032 | end | |
1033 | end) | |
1034 | ||
1035 | local conts = false | |
1036 | function controls() | |
1037 | conts = true | |
1038 | coroutine.resume(coroutine.create(function() | |
1039 | info("Click - Shoot.",1) | |
1040 | wait(1) | |
1041 | info("R - Reload.",1) | |
1042 | wait(1) | |
1043 | info("F - Change the mode to Grab.",1) | |
1044 | wait(1) | |
1045 | info("G - Change the mode to Shoot.",1) | |
1046 | wait(1) | |
1047 | info("C - Spawn a dummy.",1) | |
1048 | wait(1) | |
1049 | info("v - Destroy all dead victims.",1) | |
1050 | wait(1) | |
1051 | info("N - Dance(Take the L).",1) | |
1052 | conts = false | |
1053 | end)) | |
1054 | end | |
1055 | ||
1056 | function cleardumi() | |
1057 | for i,v in pairs(workspace:GetChildren()) do | |
1058 | if v.Name == "ded" then | |
1059 | local exp = Instance.new("Explosion",workspace) exp.Position = v.Torso.Position exp.BlastRadius = 0 | |
1060 | v:Destroy() | |
1061 | end | |
1062 | end | |
1063 | end | |
1064 | ||
1065 | hum.Running:connect(function(spd) | |
1066 | if spd > 0 then | |
1067 | anim = "walk" | |
1068 | else | |
1069 | anim = "idle" | |
1070 | end | |
1071 | end) | |
1072 | ||
1073 | function sog() | |
1074 | if mode == "grab" and not using then | |
1075 | greb() | |
1076 | end | |
1077 | end | |
1078 | function act() | |
1079 | if grab and using and killmode == "kill" then | |
1080 | kill() | |
1081 | end | |
1082 | if grab and using and killmode == "release" then | |
1083 | drop() | |
1084 | end | |
1085 | if grabda and grab and killmode == "release1" then | |
1086 | drop1() | |
1087 | end | |
1088 | end | |
1089 | mouse.Button1Down:connect(act) | |
1090 | mouse.Button1Down:connect(sog) | |
1091 | ||
1092 | local change = false | |
1093 | function modegrab() | |
1094 | change = true | |
1095 | mode = "grab" | |
1096 | info("Mode changed to Grab click to perform an action.",1) | |
1097 | wait(1) | |
1098 | change = false | |
1099 | end | |
1100 | function modeshoot() | |
1101 | change = true | |
1102 | mode = "shoot" | |
1103 | info("Mode changed to Shoot click to perform an action.",1) | |
1104 | wait(1) | |
1105 | change = false | |
1106 | end | |
1107 | ||
1108 | ||
1109 | ||
1110 | mouse.KeyDown:connect(function(key) | |
1111 | if key == "e" and grab and not grabda then | |
1112 | killmode = "kill" | |
1113 | info("Mode changed to Kill",1) | |
1114 | end | |
1115 | if key == "q" and grab and not grabda then | |
1116 | killmode = "release" | |
1117 | info("Mode changed to Release",1) | |
1118 | end | |
1119 | if grabda and key == "q" then | |
1120 | killmode = "release1" | |
1121 | info("Mode changed to Release",1) | |
1122 | end | |
1123 | if grabda and key == "e" then | |
1124 | killmode = "shoot1" | |
1125 | info("Mode changed to Shoot",1) | |
1126 | end | |
1127 | if key == "r" and not using and not grab then | |
1128 | reload() | |
1129 | end | |
1130 | if key == "c" then | |
1131 | dumi() | |
1132 | end | |
1133 | if key == "v" then | |
1134 | cleardumi() | |
1135 | end | |
1136 | if key == "m" and not conts then | |
1137 | controls() | |
1138 | end | |
1139 | if key == "f" and not change and not using then | |
1140 | if mode ~= "grab" then | |
1141 | modegrab() | |
1142 | end | |
1143 | end | |
1144 | if key == "g" and not change and not using then | |
1145 | if mode ~= "shoot" then | |
1146 | modeshoot() | |
1147 | end | |
1148 | end | |
1149 | end) | |
1150 | ||
1151 | local dancing = false | |
1152 | local mus = Instance.new("Sound",char) mus.Looped = true mus.SoundId = "rbxassetid://1563991094" mus.Volume = 5 | |
1153 | mouse.KeyDown:connect(function(key) | |
1154 | key = key:lower() | |
1155 | if key == "n" then | |
1156 | if not dancing then | |
1157 | dancing = true | |
1158 | using = true | |
1159 | char.Animate.Disabled = true | |
1160 | for i,v in pairs(Model0:GetChildren()) do | |
1161 | if v:IsA("Part") then | |
1162 | v.Transparency = 1 | |
1163 | end | |
1164 | end | |
1165 | mus:Play() | |
1166 | while dancing do | |
1167 | if dancing then | |
1168 | coroutine.resume(coroutine.create(function() | |
1169 | for i = 0,.3,.035 do | |
1170 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(5),rad(180)) * CFrame.new(0,0,-.1),i) | |
1171 | rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i) | |
1172 | ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i) | |
1173 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.9,-.05) * CFrame.Angles(rad(0),rad(60),rad(-10)),i) | |
1174 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.15) * CFrame.Angles(rad(0),rad(-45),rad(-31.5)),i) | |
1175 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1176 | swait() | |
1177 | end | |
1178 | end)) | |
1179 | end | |
1180 | wait(.07) | |
1181 | if dancing then | |
1182 | for i = 0,.7,.035 do | |
1183 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(5),rad(180)) * CFrame.new(0,0,-.2),i) | |
1184 | rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i) | |
1185 | ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i) | |
1186 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.05) * CFrame.Angles(rad(0),rad(60),rad(-20)),i) | |
1187 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.15) * CFrame.Angles(rad(0),rad(-45),rad(-63)),i) | |
1188 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1189 | swait() | |
1190 | end | |
1191 | end | |
1192 | if dancing then | |
1193 | coroutine.resume(coroutine.create(function() | |
1194 | for i = 0,.3,.035 do | |
1195 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(-5),rad(180)) * CFrame.new(0,0,-.1),i) | |
1196 | rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i) | |
1197 | ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i) | |
1198 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.15) * CFrame.Angles(rad(0),rad(45),rad(31.5)),i) | |
1199 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.9,-.05) * CFrame.Angles(rad(0),rad(-60),rad(20)),i) | |
1200 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1201 | swait() | |
1202 | end | |
1203 | end)) | |
1204 | end | |
1205 | wait(.07) | |
1206 | if dancing then | |
1207 | for i = 0,.7,.035 do | |
1208 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(-5),rad(180)) * CFrame.new(0,0,-.2),i) | |
1209 | rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i) | |
1210 | ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i) | |
1211 | rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.15) * CFrame.Angles(rad(0),rad(45),rad(63)),i) | |
1212 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.05) * CFrame.Angles(rad(0),rad(-60),rad(20)),i) | |
1213 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1214 | swait() | |
1215 | end | |
1216 | end | |
1217 | swait() | |
1218 | end | |
1219 | else | |
1220 | mus:Stop() | |
1221 | char.Animate.Disabled = false | |
1222 | dancing = false | |
1223 | for i,v in pairs(Model0:GetChildren()) do | |
1224 | if v:IsA("Part") then | |
1225 | v.Transparency = 0 | |
1226 | end | |
1227 | end | |
1228 | shot.Transparency = 1 | |
1229 | if not canequip then | |
1230 | using = false | |
1231 | else | |
1232 | for i,v in pairs(Model0:GetChildren()) do | |
1233 | if v:IsA("Part") then | |
1234 | v.Transparency = 0 | |
1235 | end | |
1236 | end | |
1237 | shot.Transparency = 1 | |
1238 | using = true | |
1239 | wait(.3) | |
1240 | for i = 0,1,.1 do | |
1241 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1242 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i) | |
1243 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i) | |
1244 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i) | |
1245 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i) | |
1246 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1247 | swait() | |
1248 | end | |
1249 | end | |
1250 | end | |
1251 | end | |
1252 | end) | |
1253 | ||
1254 | local musica = Instance.new("Sound",char) musica.Volume = 1 musica.Looped = true musica.SoundId = "rbxassetid://1306847940" | |
1255 | local visonlyvlad = false | |
1256 | local vispart = Instance.new("Part",char) --[[vispart.Shape = "Ball"]] vispart.Material = "Neon" vispart.Size = Vector3.new(.3,.3,.3) vispart.Anchored = true vispart.CanCollide = false vispart.BrickColor = BrickColor.new("Royal purple") vispart.Transparency = 1 | |
1257 | mouse.KeyDown:connect(function(key) | |
1258 | key = key:lower() | |
1259 | if key == "u" and plr.Name == "CoulerFreak2016" then | |
1260 | if not visonlyvlad then | |
1261 | vispart.Transparency = 0 | |
1262 | musica:Play() | |
1263 | visonlyvlad = true | |
1264 | info("Visualiser mode:On",.3) | |
1265 | else | |
1266 | info("Visualiser mode:Off",.3) | |
1267 | vispart.Transparency = 1 | |
1268 | vispart.CFrame = CFrame.new(0,-10,0) | |
1269 | visonlyvlad = false | |
1270 | musica:Stop() | |
1271 | end | |
1272 | end | |
1273 | end) | |
1274 | coroutine.resume(coroutine.create(function() | |
1275 | while true do | |
1276 | if visonlyvlad == true then | |
1277 | for i = 0,1,.0001 do | |
1278 | vispart.CFrame = vispart.CFrame:lerp(rut.CFrame * CFrame.new(3,3,3) * CFrame.new(musica.PlaybackLoudness/85,musica.PlaybackLoudness/85,musica.PlaybackLoudness/85) * CFrame.Angles(rad(musica.PlaybackLoudness/1),rad(musica.PlaybackLoudness/1),rad(musica.PlaybackLoudness/1)),i) | |
1279 | vispart.Size = Vector3.new(musica.PlaybackLoudness/65,musica.PlaybackLoudness/65,musica.PlaybackLoudness/65) | |
1280 | vispart.Color = Color3.fromRGB(musica.PlaybackLoudness/4,musica.PlaybackLoudness/50,musica.PlaybackLoudness/1) | |
1281 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)) * CFrame.Angles(rad(musica.PlaybackLoudness/20),rad(0),rad(0)),i) | |
1282 | swait() | |
1283 | end | |
1284 | end | |
1285 | swait() | |
1286 | end | |
1287 | end)) | |
1288 | ||
1289 | while true do | |
1290 | if anim == "walk" and not using and uneq then | |
1291 | for i = 0,.5,.1 do | |
1292 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1293 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i) | |
1294 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i) | |
1295 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i) | |
1296 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i) | |
1297 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1298 | swait() | |
1299 | end | |
1300 | end | |
1301 | if anim == "idle" and not using and uneq then | |
1302 | for i = 0,.5,.06 do | |
1303 | rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(160)),i) | |
1304 | rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(74),rad(-20)),i) | |
1305 | ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-110),rad(-20)),i) | |
1306 | rh.C0 = rh.C0:lerp(CFrame.new(1,-1.1,0) * CFrame.Angles(rad(7),rad(80),rad(0)),i) | |
1307 | lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(-7),rad(-80),rad(0)),i) | |
1308 | nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(200)),i) | |
1309 | swait() | |
1310 | end | |
1311 | end | |
1312 | swait() | |
1313 | end |