686

grab gun

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