Advertisement
iiJosephCats205

Grab Gun

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