SHOW:
|
|
- or go back to the newest paste.
1 | -- by Theamazingnater, enjoy | |
2 | local mouse = game.Players.LocalPlayer:GetMouse() | |
3 | howmuch = 0 | |
4 | function change(key) | |
5 | if key == "w" or key == "a" or key == "s" or key == "d" then | |
6 | howmuch = howmuch + 1 | |
7 | end | |
8 | end | |
9 | function otherchange(key) | |
10 | if key == "w" or key == "a" or key == "s" or key == "d" then | |
11 | howmuch = howmuch - 1 | |
12 | end | |
13 | end | |
14 | mouse.KeyDown:connect(change) | |
15 | mouse.KeyUp:connect(otherchange) | |
16 | --Converted with ttyyuu12345's model to script plugin v4 | |
17 | function sandbox(var,func) | |
18 | local env = getfenv(func) | |
19 | local newenv = setmetatable({},{ | |
20 | __index = function(self,k) | |
21 | if k=="script" then | |
22 | return var | |
23 | else | |
24 | return env[k] | |
25 | end | |
26 | end, | |
27 | }) | |
28 | setfenv(func,newenv) | |
29 | return func | |
30 | end | |
31 | cors = {} | |
32 | mas = Instance.new("Model",game:GetService("Lighting")) | |
33 | Model0 = Instance.new("Model") | |
34 | Part1 = Instance.new("Part") | |
35 | Part2 = Instance.new("Part") | |
36 | Part3 = Instance.new("Part") | |
37 | Weld4 = Instance.new("Weld") | |
38 | Weld5 = Instance.new("Weld") | |
39 | Weld6 = Instance.new("Weld") | |
40 | Part7 = Instance.new("Part") | |
41 | Model0.Name = "Sawed Off" | |
42 | Model0.Parent = mas | |
43 | Part1.Parent = Model0 | |
44 | Part1.BrickColor = BrickColor.new("Really black") | |
45 | Part1.Shape = Enum.PartType.Cylinder | |
46 | Part1.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334) | |
47 | Part1.CFrame = CFrame.new(40.7499924, 151.548019, 156.470001, 1.0000006, -1.78813934e-07, 0, -1.78813934e-07, 1.00000024, 0, 0, 0, 1) | |
48 | Part1.Color = Color3.new(0.101961, 0.101961, 0.101961) | |
49 | Part1.Position = Vector3.new(40.7499924, 151.548019, 156.470001) | |
50 | Part1.Color = Color3.new(0.101961, 0.101961, 0.101961) | |
51 | Part2.Parent = Model0 | |
52 | Part2.BrickColor = BrickColor.new("Really black") | |
53 | Part2.Shape = Enum.PartType.Cylinder | |
54 | Part2.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334) | |
55 | Part2.CFrame = CFrame.new(40.7499962, 151.548035, 156.079056, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
56 | Part2.Color = Color3.new(0.101961, 0.101961, 0.101961) | |
57 | Part2.Position = Vector3.new(40.7499962, 151.548035, 156.079056) | |
58 | Part2.Color = Color3.new(0.101961, 0.101961, 0.101961) | |
59 | Part3.Parent = Model0 | |
60 | Part3.BrickColor = BrickColor.new("Cocoa") | |
61 | Part3.Rotation = Vector3.new(0, 0, -34) | |
62 | Part3.Size = Vector3.new(1.11000025, 0.519999921, 0.570000172) | |
63 | Part3.CFrame = CFrame.new(42.5974922, 150.98793, 156.274887, 0.829038441, 0.559192181, 0, -0.55919224, 0.829038203, 0, 0, 0, 1) | |
64 | Part3.Color = Color3.new(0.317647, 0.145098, 0) | |
65 | Part3.Position = Vector3.new(42.5974922, 150.98793, 156.274887) | |
66 | Part3.Orientation = Vector3.new(0, 0, -34) | |
67 | Part3.Color = Color3.new(0.317647, 0.145098, 0) | |
68 | Weld4.Name = "1" | |
69 | Weld4.Parent = Part3 | |
70 | Weld4.C0 = CFrame.new(-1.84484863, -0.568756104, -0.195831299, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1) | |
71 | Weld4.Part0 = Part3 | |
72 | Weld4.Part1 = Part2 | |
73 | Weld5.Name = "3" | |
74 | Weld5.Parent = Part3 | |
75 | Weld5.C0 = CFrame.new(-0.60994339, 0.0636444092, 0.00506591797, 0.866026163, 0.499997735, 0, -0.499997616, 0.866026044, 0, 0, 0, 1) | |
76 | Weld5.Part0 = Part3 | |
77 | Weld5.Part1 = Part7 | |
78 | Weld6.Name = "2" | |
79 | Weld6.Parent = Part3 | |
80 | Weld6.C0 = CFrame.new(-1.84484482, -0.568771362, 0.195114136, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1) | |
81 | Weld6.Part0 = Part3 | |
82 | Weld6.Part1 = Part1 | |
83 | Part7.Parent = Model0 | |
84 | Part7.BrickColor = BrickColor.new("Cocoa") | |
85 | Part7.Rotation = Vector3.new(0, 0, -64) | |
86 | Part7.Size = Vector3.new(0.440000623, 0.519999921, 0.759999931) | |
87 | Part7.CFrame = CFrame.new(42.1274147, 151.381775, 156.279953, 0.438374251, 0.898792326, 0, -0.898792267, 0.438373834, 0, 0, 0, 1) | |
88 | Part7.Color = Color3.new(0.317647, 0.145098, 0) | |
89 | Part7.Position = Vector3.new(42.1274147, 151.381775, 156.279953) | |
90 | Part7.Orientation = Vector3.new(0, 0, -64) | |
91 | Part7.Color = Color3.new(0.317647, 0.145098, 0) | |
92 | for i,v in pairs(mas:GetChildren()) do | |
93 | v.Parent = game:GetService("Players").LocalPlayer.Character | |
94 | pcall(function() v:MakeJoints() end) | |
95 | end | |
96 | mas:Destroy() | |
97 | for i,v in pairs(cors) do | |
98 | spawn(function() | |
99 | pcall(v) | |
100 | end) | |
101 | end | |
102 | for i,v in pairs(Model0:GetChildren()) do | |
103 | if v.ClassName == "Part" then | |
104 | v.CanCollide = false | |
105 | v.Transparency = 1 | |
106 | end | |
107 | end | |
108 | ||
109 | --Converted with ttyyuu12345's model to script plugin v4 | |
110 | function sandbox(var,func) | |
111 | local env = getfenv(func) | |
112 | local newenv = setmetatable({},{ | |
113 | __index = function(self,k) | |
114 | if k=="script" then | |
115 | return var | |
116 | else | |
117 | return env[k] | |
118 | end | |
119 | end, | |
120 | }) | |
121 | setfenv(func,newenv) | |
122 | return func | |
123 | end | |
124 | cors = {} | |
125 | mas = Instance.new("Model",game:GetService("Lighting")) | |
126 | for i,v in pairs(mas:GetChildren()) do | |
127 | v.Parent = game:GetService("Players").LocalPlayer.Character.Torso | |
128 | pcall(function() v:MakeJoints() end) | |
129 | end | |
130 | mas:Destroy() | |
131 | for i,v in pairs(cors) do | |
132 | spawn(function() | |
133 | pcall(v) | |
134 | end) | |
135 | end | |
136 | char = game.Players.LocalPlayer.Character | |
137 | function swait(num) | |
138 | if num == 0 or num == nil then | |
139 | game:service("RunService").Stepped:wait(0) | |
140 | else | |
141 | for i = 0, num do | |
142 | game:service("RunService").Stepped:wait(0) | |
143 | end | |
144 | end | |
145 | end | |
146 | local folder = Instance.new("Model") | |
147 | local signtop = Instance.new("Part") | |
148 | local signbottom = Instance.new("Part") | |
149 | local no = Instance.new("Part") | |
150 | local decal = Instance.new("Decal") | |
151 | local decal2 = Instance.new("Decal") | |
152 | local weld = Instance.new("Weld") | |
153 | local weld2 = Instance.new("Weld") | |
154 | local weld3 = Instance.new("Weld") | |
155 | folder.Parent = char | |
156 | folder.Name = "NoRobloxianSign" | |
157 | signtop.BrickColor = BrickColor.new("Really red") | |
158 | signtop.Size = Vector3.new(3.14, 2.5, 0.36) | |
159 | no.Transparency = 1 | |
160 | decal.Parent = signtop | |
161 | decal.Face = "Back" | |
162 | decal.Texture = "http://www.roblox.com/asset/?id=94148918" | |
163 | decal2.Parent = no | |
164 | decal2.Texture = "http://www.roblox.com/asset/?id=264596039" | |
165 | decal2.Face = "Back" | |
166 | signbottom.BrickColor = BrickColor.new("Dark orange") | |
167 | signbottom.Size = Vector3.new(0.27, 2.19, 0.36) | |
168 | no.Size = Vector3.new(3.14, 2.5, 0.36) | |
169 | weld.Parent = signbottom | |
170 | weld.Part0 = signbottom | |
171 | weld.Part1 = char.Torso | |
172 | weld.C0 = CFrame.new(-0.301372528, 0.623102188, -0.677061081, 0.74218601, -0.67019397, 0, 0.67019397, 0.74218601, 0, 0, 0, 1) | |
173 | weld2.Parent = signtop | |
174 | weld2.Part0 = signtop | |
175 | weld2.Part1 = signbottom | |
176 | weld2.C0 = CFrame.new(-0.0247592926, -2.31497383, -0.0127334595, 1, -5.21543006e-06, 0, 5.21543052e-06, 1, 0, 0, 0, 1) | |
177 | weld3.Parent = no | |
178 | weld3.Part0 = no | |
179 | weld3.Part1 = signtop | |
180 | weld3.C0 = CFrame.new(3.43322754e-05, -1.90734863e-05, -0.000778198242, 0.99999845, 6.94394112e-06, 0, -3.48687172e-06, 0.999998093, 0, 0, 0, 1) | |
181 | signbottom.Parent = folder | |
182 | signtop.Parent = folder | |
183 | no.Parent = folder | |
184 | for i,v in pairs(folder:GetChildren()) do | |
185 | if v.ClassName == "Part" then | |
186 | v.CanCollide = false | |
187 | v.Material = "SmoothPlastic" | |
188 | end | |
189 | end | |
190 | music = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso) | |
191 | music.Volume = 10 | |
192 | music.SoundId = "rbxassetid://1202637744" | |
193 | music.Looped = true | |
194 | music:Play() | |
195 | ||
196 | ||
197 | ||
198 | local naeeym2 = Instance.new("BillboardGui",char) | |
199 | naeeym2.AlwaysOnTop = true | |
200 | naeeym2.Size = UDim2.new(5,35,2,35) | |
201 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
202 | naeeym2.Adornee = hed | |
203 | naeeym2.Name = "Name" | |
204 | ||
205 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
206 | tecks2.BackgroundTransparency = 1 | |
207 | tecks2.TextScaled = true | |
208 | tecks2.BorderSizePixel = 0 | |
209 | tecks2.Text = "RAGE" | |
210 | tecks2.Text = "DEATH" | |
211 | tecks2.Font = "Garamond" | |
212 | tecks2.TextSize = 30 | |
213 | tecks2.TextStrokeTransparency = 0 | |
214 | tecks2.TextColor3 = BrickColor.new('Really red').Color | |
215 | tecks2.TextStrokeColor3 = BrickColor.new('Really red').Color | |
216 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
217 | tecks2.Parent = naeeym2 | |
218 | textfag = tecks2 | |
219 | tecks2.Text = "Killer:)" | |
220 | coroutine.resume(coroutine.create(function() | |
221 | while textfag ~= nil do | |
222 | swait() | |
223 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
224 | textfag.Rotation = math.random(-3,3) | |
225 | end | |
226 | end)) | |
227 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
228 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
229 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
230 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
231 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
232 | local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
233 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
234 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
235 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
236 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
237 | local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone() | |
238 | game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove() | |
239 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
240 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
241 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
242 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0) | |
243 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
244 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
245 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
246 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
247 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
248 | rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0) | |
249 | local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone() | |
250 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove() | |
251 | local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
252 | humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart | |
253 | humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso | |
254 | local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone() | |
255 | local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
256 | headweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
257 | headweld.Part1 = game.Players.LocalPlayer.Character.Head | |
258 | headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0) | |
259 | game.Players.LocalPlayer.Character.Torso.Neck:Remove() | |
260 | bullethitforclone = Instance.new("Sound") | |
261 | bullethitforclone.Volume = 4 | |
262 | bullethitforclone.Parent = game.Players.LocalPlayer.Character.Head | |
263 | bullethitforclone.SoundId = "rbxassetid://144884872" | |
264 | weldf = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
265 | weldf.Part0 = game.Players.LocalPlayer.Character["Right Arm"] | |
266 | weldf.Part1 = Part3 | |
267 | weldf.C0 = CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511) | |
268 | canwalk = true | |
269 | PlayerSize = 1 | |
270 | --Converted with ttyyuu12345's model to script plugin v4 | |
271 | function sandbox(var,func) | |
272 | local env = getfenv(func) | |
273 | local newenv = setmetatable({},{ | |
274 | __index = function(self,k) | |
275 | if k=="script" then | |
276 | return var | |
277 | else | |
278 | return env[k] | |
279 | end | |
280 | end, | |
281 | }) | |
282 | setfenv(func,newenv) | |
283 | return func | |
284 | end | |
285 | cors = {} | |
286 | mas = Instance.new("Model",game:GetService("Lighting")) | |
287 | Partgun = Instance.new("Part") | |
288 | SpecialMesh1 = Instance.new("SpecialMesh") | |
289 | Partgun.Name = "edgy gun" | |
290 | Partgun.Parent = mas | |
291 | Partgun.Rotation = Vector3.new(-180, 0, -180) | |
292 | Partgun.Size = Vector3.new(0.270000488, 1.03999996, 1.71999955) | |
293 | Partgun.CFrame = CFrame.new(9.57500267, 0.90746665, -4.25999546, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
294 | Partgun.BottomSurface = Enum.SurfaceType.Smooth | |
295 | Partgun.TopSurface = Enum.SurfaceType.Smooth | |
296 | Partgun.Position = Vector3.new(9.57500267, 0.90746665, -4.25999546) | |
297 | Partgun.Orientation = Vector3.new(0, 180, 0) | |
298 | SpecialMesh1.Parent = Partgun | |
299 | - | SpecialMesh1.MeshId = "rbxassetid://436697873" |
299 | + | SpecialMesh1.MeshId = "rbxassetid://430347121" |
300 | SpecialMesh1.Scale = Vector3.new(0.0299999993, 0.0299999993, 0.0299999993) | |
301 | - | SpecialMesh1.TextureId = "rbxassetid://436697889" |
301 | + | SpecialMesh1.TextureId = "rbxassetid://0" |
302 | SpecialMesh1.VertexColor = Vector3.new(1, 2, 3) | |
303 | SpecialMesh1.MeshType = Enum.MeshType.FileMesh | |
304 | SpecialMesh1.Scale = Vector3.new(0.0299999993, 0.0299999993, 0.0299999993) | |
305 | for i,v in pairs(mas:GetChildren()) do | |
306 | v.Parent = game:GetService("Players").LocalPlayer.Character | |
307 | pcall(function() v:MakeJoints() end) | |
308 | end | |
309 | mas:Destroy() | |
310 | for i,v in pairs(cors) do | |
311 | spawn(function() | |
312 | pcall(v) | |
313 | end) | |
314 | end | |
315 | local weldofgun = Instance.new("Weld", Partgun) | |
316 | weldofgun.Part0 = game.Players.LocalPlayer.Character["Right Arm"] | |
317 | weldofgun.Part1 = Partgun | |
318 | weldofgun.C0 = CFrame.new(0.0550079346, -1.58780015, -0.449067354, -1, 5.6192453e-22, -1.70690163e-22, 2.65673535e-22, 0.173647001, -0.984807968, -5.23747954e-22, -0.984807968, -0.173647001) | |
319 | local gunshot = Instance.new("Sound", Partgun) | |
320 | gunshot.Volume = 7 | |
321 | gunshot.SoundId = "rbxassetid://131070686" | |
322 | canwalk = true | |
323 | shooting = false | |
324 | using = false | |
325 | function grab(key) | |
326 | key = key:lower() | |
327 | if key == "q" and not using then | |
328 | if not shooting then | |
329 | canwalk = false | |
330 | shooting = true | |
331 | for i = 0,0.6 , 0.01 do | |
332 | weldofgun.C0 = weldofgun.C0:lerp(CFrame.new(0.0550079346, -1.66210365, -0.280470848, -1, 1.69529812e-08, 2.79396772e-09, 2.79396772e-09, -1.27684325e-06, -1.00000012, 9.38598532e-09, -1.00000012, 1.27870589e-06),i) | |
333 | headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0641918182, 1.57706404, -0.0765023232, 0.173648775, 1.2086125e-06, -0.98480773, -1.11475492e-05, 1, -7.38364122e-07, 0.98480773, 1.11064101e-05, 0.17364879),i) | |
334 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-4.76837158e-07, -2.38418579e-07, 4.76837158e-07, 1.86264515e-06, 1.11064055e-05, -1, 1.2086125e-06, 1, 1.11064101e-05, 1, -1.20863228e-06, 1.86264515e-06):inverse(),i) | |
335 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -2, -1.40129846e-45, 1, 2.80259693e-45, -2.80259693e-45, -2.80259693e-45, 1, -2.80259693e-45, 2.80259693e-45, 2.80259693e-45, 1),i) | |
336 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.790345192, -1.96068549, 0, 0.984807849, 0.173647985, -5.23747954e-22, -0.173647985, 0.984807849, 3.13253081e-22, 5.70186845e-22, -2.1754633e-22, 1),i) | |
337 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.88555717, 0.238665819, 9.53674316e-07, 0.866025448, 0.500000119, -7.4505806e-09, -0.500000119, 0.866025388, -7.09368919e-08, -2.60770321e-08, 7.07805157e-08, 1.00000012),i) | |
338 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.03125596, 0.466423273, -0.0349578857, 0.0530674011, -0.998481572, -0.0147831338, -0.0627651066, 0.0114396075, -0.997962773, 0.996616483, 0.0538871512, -0.0620627441),i) | |
339 | game:GetService("RunService").RenderStepped:wait() | |
340 | end | |
341 | while shooting do | |
342 | game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Vector3.new(mouse.Hit.p.x, game.Players.LocalPlayer.Character.Torso.Position.y, mouse.Hit.p.z)) | |
343 | game:GetService("RunService").RenderStepped:wait() | |
344 | end | |
345 | else | |
346 | for i = 0,0.5 , 0.03 do | |
347 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.49999976, 0, 0.939692736, 2.65673535e-22, -0.342019886, -1.42512683e-22, 1, 3.85227261e-22, 0.342019916, -3.13253081e-22, 0.939692736),i) | |
348 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.866025388, -3.86706633e-22, -0.500000238, 2.65673535e-22, 1, -3.13253081e-22, 0.500000238, 1.38448295e-22, 0.866025388):inverse(),i) | |
349 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -2, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i) | |
350 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.790345192, -1.96068549, 0, 0.984807849, 0.173647985, -5.23747954e-22, -0.173647985, 0.984807849, 3.13253081e-22, 5.70186845e-22, -2.1754633e-22, 1),i) | |
351 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.65210819, 0.0268206596, 0, 0.984807849, 0.173647985, -5.23747954e-22, -0.173647985, 0.984807849, 3.13253081e-22, 5.70186845e-22, -2.1754633e-22, 1),i) | |
352 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.59805298, 0.00370526314, -0.166603565, 0.984807849, -0.173648134, -3.13053391e-07, 0.171009988, 0.969846368, -0.173648238, 0.0301539954, 0.171010062, 0.984807789),i) | |
353 | game:GetService("RunService").RenderStepped:wait() | |
354 | end | |
355 | shooting = false | |
356 | canwalk = true | |
357 | end | |
358 | end | |
359 | end | |
360 | mouse.KeyDown:connect(grab) | |
361 | function shoot(key) | |
362 | if shooting and not using then | |
363 | using = true | |
364 | gunshot:Play() | |
365 | local bullet = Instance.new("Part", workspace) | |
366 | bullet.Size = Vector3.new(0.2,0.2,3) | |
367 | bullet.BrickColor = BrickColor.new("Tr. Flu. Yellow") | |
368 | bullet.Material = "Neon" | |
369 | bullet.Anchored = false | |
370 | bullet.CFrame = Partgun.CFrame * CFrame.new(0,0.3,3.5) | |
371 | bullet.CFrame = CFrame.new(bullet.Position, mouse.Hit.p) | |
372 | local velocityofbullet = Instance.new("BodyVelocity", bullet) | |
373 | velocityofbullet.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
374 | velocityofbullet.Velocity = mouse.Hit.lookVector * 600 | |
375 | bullet.CanCollide = false | |
376 | bullet:BreakJoints() | |
377 | local function hit(part) | |
378 | local hitval = math.random(25,40) | |
379 | local humanoid = part.Parent:findFirstChildOfClass("Humanoid") | |
380 | if humanoid then | |
381 | bullet:destroy() | |
382 | if humanoid.Health == math.huge or humanoid.Health >= 600 then | |
383 | humanoid.Health = 100 | |
384 | end | |
385 | if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then | |
386 | humanoid.MaxHealth = 100 | |
387 | end | |
388 | if humanoid.Parent.Name == game.Players.LocalPlayer.Name then | |
389 | ||
390 | else | |
391 | if humanoid.Health < hitval then | |
392 | for i,v in pairs(humanoid.Parent:GetChildren()) do | |
393 | if v.ClassName == "LocalScript" or v.ClassName == "Script" then | |
394 | v:Remove() | |
395 | end | |
396 | end | |
397 | humanoid.JumpPower = 0 | |
398 | humanoid.PlatformStand = true | |
399 | humanoid.WalkSpeed = 0 | |
400 | local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip") | |
401 | if findlefthip then | |
402 | findlefthip:Remove() | |
403 | local glue = Instance.new("Glue", humanoid.Parent.Torso) | |
404 | glue.Part0 = humanoid.Parent.Torso | |
405 | glue.Part1 = humanoid.Parent["Left Leg"] | |
406 | glue.Name = "Left leg" | |
407 | local collider = Instance.new("Part", humanoid.Parent["Left Leg"]) | |
408 | collider.Position = Vector3.new(0,999,0) | |
409 | collider.Size = Vector3.new(1.5, 1, 1) | |
410 | collider.Shape = "Cylinder" | |
411 | local weld = Instance.new("Weld", collider) | |
412 | weld.Part0 = humanoid.Parent["Left Leg"] | |
413 | weld.Part1 = collider | |
414 | weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
415 | collider.TopSurface = "Smooth" | |
416 | collider.BottomSurface = "Smooth" | |
417 | collider.formFactor = "Symmetric" | |
418 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
419 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
420 | collider.Transparency = 1 | |
421 | end | |
422 | -- | |
423 | local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip") | |
424 | if findrighthip then | |
425 | findrighthip:Remove() | |
426 | local glue = Instance.new("Glue", humanoid.Parent.Torso) | |
427 | glue.Part0 = humanoid.Parent.Torso | |
428 | glue.Part1 = humanoid.Parent["Right Leg"] | |
429 | glue.Name = "Right leg" | |
430 | local collider = Instance.new("Part", humanoid.Parent["Right Leg"]) | |
431 | collider.Position = Vector3.new(0,999,0) | |
432 | collider.Size = Vector3.new(1.5, 1, 1) | |
433 | collider.Shape = "Cylinder" | |
434 | local weld = Instance.new("Weld", collider) | |
435 | weld.Part0 = humanoid.Parent["Right Leg"] | |
436 | weld.Part1 = collider | |
437 | weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
438 | collider.TopSurface = "Smooth" | |
439 | collider.BottomSurface = "Smooth" | |
440 | collider.formFactor = "Symmetric" | |
441 | glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
442 | glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
443 | collider.Transparency = 1 | |
444 | end | |
445 | -- | |
446 | local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder") | |
447 | if findrightshoulder then | |
448 | findrightshoulder:Remove() | |
449 | local glue = Instance.new("Glue", humanoid.Parent.Torso) | |
450 | glue.Part0 = humanoid.Parent.Torso | |
451 | glue.Part1 = humanoid.Parent["Right Arm"] | |
452 | glue.Name = "Right arm" | |
453 | local collider = Instance.new("Part", humanoid.Parent["Right Arm"]) | |
454 | collider.Position = Vector3.new(0,999,0) | |
455 | collider.Size = Vector3.new(1.5, 1, 1) | |
456 | collider.Shape = "Cylinder" | |
457 | local weld = Instance.new("Weld", collider) | |
458 | weld.Part0 = humanoid.Parent["Right Arm"] | |
459 | weld.Part1 = collider | |
460 | weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
461 | collider.TopSurface = "Smooth" | |
462 | collider.BottomSurface = "Smooth" | |
463 | collider.formFactor = "Symmetric" | |
464 | glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
465 | glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
466 | collider.Transparency = 1 | |
467 | end | |
468 | -- | |
469 | local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder") | |
470 | if findleftshoulder then | |
471 | findleftshoulder:Remove() | |
472 | local glue = Instance.new("Glue", humanoid.Parent.Torso) | |
473 | glue.Part0 = humanoid.Parent.Torso | |
474 | glue.Part1 = humanoid.Parent["Left Arm"] | |
475 | glue.Name = "Left arm" | |
476 | local collider = Instance.new("Part", humanoid.Parent["Left Arm"]) | |
477 | collider.Position = Vector3.new(0,999,0) | |
478 | collider.Size = Vector3.new(1.5, 1, 1) | |
479 | collider.Shape = "Cylinder" | |
480 | local weld = Instance.new("Weld", collider) | |
481 | weld.Part0 = humanoid.Parent["Left Arm"] | |
482 | weld.Part1 = collider | |
483 | weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
484 | collider.TopSurface = "Smooth" | |
485 | collider.BottomSurface = "Smooth" | |
486 | collider.formFactor = "Symmetric" | |
487 | glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
488 | glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
489 | collider.Transparency = 1 | |
490 | end | |
491 | local findhead = humanoid.Parent:findFirstChild("Head") | |
492 | if findhead then | |
493 | local attachment = Instance.new("Attachment", humanoid.Parent.Head) | |
494 | attachment.Position = Vector3.new(0, -0.5, 0) | |
495 | attachment.Name = "lol" | |
496 | attachment.Visible = false | |
497 | humanoid.Parent.Torso.NeckAttachment.Visible = false | |
498 | humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0) | |
499 | local ball = Instance.new("BallSocketConstraint", humanoid.Parent) | |
500 | ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment | |
501 | ball.Attachment1 = attachment | |
502 | ball.LimitsEnabled = true | |
503 | ball.TwistLimitsEnabled = true | |
504 | ball.UpperAngle = 90 | |
505 | ball.Restitution = 0.5 | |
506 | ball.TwistUpperAngle = 90 | |
507 | ball.TwistLowerAngle = -90 | |
508 | local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso) | |
509 | collidepartofleftleg.Name = "Bone" | |
510 | collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7) | |
511 | collidepartofleftleg.Transparency = 1 | |
512 | collidepartofleftleg:BreakJoints() | |
513 | local weeld = Instance.new("Weld", collidepartofleftleg) | |
514 | weeld.Part0 = collidepartofleftleg | |
515 | weeld.Part1 = humanoid.Parent["Head"] | |
516 | if humanoid.Parent.Torso:findFirstChild("Neck") then | |
517 | humanoid.Parent.Torso.Neck:destroy() | |
518 | end | |
519 | end | |
520 | wait(10) | |
521 | humanoid.Health = 0 | |
522 | else | |
523 | humanoid.Health = humanoid.Health - hitval | |
524 | end | |
525 | end | |
526 | end | |
527 | end | |
528 | bullet.Touched:connect(hit) | |
529 | for i = 0,1 , 0.2 do | |
530 | weldofgun.C0 = weldofgun.C0:lerp(CFrame.new(0.0550060272, -1.49197721, -0.523540258, -1.00000024, -3.94356903e-09, 1.68802217e-09, 1.16415322e-10, 0.173647106, -0.984807968, 4.94765118e-09, -0.984808087, -0.173647076),i) | |
531 | headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0641915798, 1.57706404, -0.0765023232, 0.173648775, -0.085830681, -0.981060207, -1.11475492e-05, 0.996194601, -0.0871567205, 0.98480767, 0.0151455933, 0.172987014),i) | |
532 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-4.76837158e-07, -2.38418579e-07, 4.76837158e-07, 1.86264515e-06, 1.11064055e-05, -1, 1.2086125e-06, 1, 1.11064101e-05, 1, -1.20863228e-06, 1.86264515e-06):inverse(),i) | |
533 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -2, -1.40129846e-45, 1, 2.80259693e-45, -2.80259693e-45, -2.80259693e-45, 1, -2.80259693e-45, 2.80259693e-45, 2.80259693e-45, 1),i) | |
534 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.790345192, -1.96068549, 0, 0.984807849, 0.173647985, -5.23747954e-22, -0.173647985, 0.984807849, 3.13253081e-22, 5.70186845e-22, -2.1754633e-22, 1),i) | |
535 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.88555717, 0.238665819, 9.53674316e-07, 0.866025448, 0.500000119, -7.4505806e-09, -0.500000119, 0.866025388, -7.09368919e-08, -2.60770321e-08, 7.07805157e-08, 1.00000012),i) | |
536 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.06728888, 0.656469345, -0.0372948647, 0.064117156, -0.985305488, 0.158310011, -0.063825123, -0.16236043, -0.984665155, 0.99589932, 0.0530297607, -0.0732973367),i) | |
537 | game:GetService("RunService").RenderStepped:wait() | |
538 | end | |
539 | for i = 0,1 , 0.2 do | |
540 | weldofgun.C0 = weldofgun.C0:lerp(CFrame.new(0.0550079346, -1.66210365, -0.280470848, -1, 1.69529812e-08, 2.79396772e-09, 2.79396772e-09, -1.27684325e-06, -1.00000012, 9.38598532e-09, -1.00000012, 1.27870589e-06),i) | |
541 | headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0641918182, 1.57706404, -0.0765023232, 0.173648775, 1.2086125e-06, -0.98480773, -1.11475492e-05, 1, -7.38364122e-07, 0.98480773, 1.11064101e-05, 0.17364879),i) | |
542 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-4.76837158e-07, -2.38418579e-07, 4.76837158e-07, 1.86264515e-06, 1.11064055e-05, -1, 1.2086125e-06, 1, 1.11064101e-05, 1, -1.20863228e-06, 1.86264515e-06):inverse(),i) | |
543 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -2, -1.40129846e-45, 1, 2.80259693e-45, -2.80259693e-45, -2.80259693e-45, 1, -2.80259693e-45, 2.80259693e-45, 2.80259693e-45, 1),i) | |
544 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.790345192, -1.96068549, 0, 0.984807849, 0.173647985, -5.23747954e-22, -0.173647985, 0.984807849, 3.13253081e-22, 5.70186845e-22, -2.1754633e-22, 1),i) | |
545 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.88555717, 0.238665819, 9.53674316e-07, 0.866025448, 0.500000119, -7.4505806e-09, -0.500000119, 0.866025388, -7.09368919e-08, -2.60770321e-08, 7.07805157e-08, 1.00000012),i) | |
546 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.03125596, 0.466423273, -0.0349578857, 0.0530674011, -0.998481572, -0.0147831338, -0.0627651066, 0.0114396075, -0.997962773, 0.996616483, 0.0538871512, -0.0620627441),i) | |
547 | game:GetService("RunService").RenderStepped:wait() | |
548 | end | |
549 | using = false | |
550 | end | |
551 | end | |
552 | mouse.Button1Down:connect(shoot) | |
553 | while true do | |
554 | if howmuch <= -1 then | |
555 | howmuch = 0 | |
556 | end | |
557 | if howmuch >= 4 then | |
558 | howmuch = 0 | |
559 | end | |
560 | if canwalk and howmuch < 1 then | |
561 | for i = 0,1 , 0.03 do | |
562 | if canwalk and howmuch < 1 then | |
563 | weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511),i) | |
564 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
565 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
566 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
567 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
568 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
569 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
570 | game:GetService("RunService").RenderStepped:wait() | |
571 | game:GetService("RunService").RenderStepped:wait() | |
572 | end | |
573 | end | |
574 | for i = 0,0.3 , 0.01 do | |
575 | if canwalk and howmuch < 1 then | |
576 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.123552799, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
577 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.110878944, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
578 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.4918499, 0, 1, 0, 0, 0, 0.982171893, -0.187984973, 0, 0.187984973, 0.982171893),i) | |
579 | game:GetService("RunService").RenderStepped:wait() | |
580 | end | |
581 | end | |
582 | end | |
583 | if canwalk and howmuch >= 1 then | |
584 | if canwalk then | |
585 | for i = 0.1,0.3,0.008 do | |
586 | if canwalk and howmuch >= 1 then | |
587 | weldf.C0 = weldf.C0:lerp(CFrame.new(0.405254364, -0.770187378, -0.0317382813, 0.916420221, 0.388018847, -0.0981012359, 0.181092858, -0.183419436, 0.966214538, 0.356913, -0.90321666, -0.238354743),i) | |
588 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.395210266, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1):inverse(),i) | |
589 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
590 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i) | |
591 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i) | |
592 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i) | |
593 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i) | |
594 | ||
595 | game:GetService("RunService").RenderStepped:wait() | |
596 | end | |
597 | end | |
598 | end | |
599 | if canwalk then | |
600 | for i = 0.1,0.3 , 0.008 do | |
601 | if canwalk and howmuch >= 1 then | |
602 | weldf.C0 = weldf.C0:lerp(CFrame.new(0.405254364, -0.770187378, -0.0317382813, 0.916420221, 0.388018847, -0.0981012359, 0.181092858, -0.183419436, 0.966214538, 0.356913, -0.90321666, -0.238354743),i) | |
603 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
604 | headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i) | |
605 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i) | |
606 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i) | |
607 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i) | |
608 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i) | |
609 | game:GetService("RunService").RenderStepped:wait() | |
610 | end | |
611 | end | |
612 | end | |
613 | end | |
614 | game:GetService("RunService").RenderStepped:wait() | |
615 | end |