iiJosephCats205

I'm protecting Gotham City

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