WinslowMau

Untitled

May 3rd, 2017
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.62 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. script.Parent = Character
  4.  
  5. Blah = true --[[ ]]
  6.  
  7. pcall(function()
  8. Character.Humanoid.WalkSpeed = 2
  9. Character.Humanoid.MaxHealth = 50
  10. end)
  11.  
  12. --[[ * Gun Knife * ]]--
  13.  
  14. pcall(function() Character.Cane:Remove() end)
  15.  
  16. Cane = Instance.new("Model")
  17. Cane.Name = "Cane"
  18. Cane.Parent = Character
  19.  
  20. --[[ * Arm Weld * ]]--
  21.  
  22. ArmWeld = Instance.new("Weld")
  23. ArmWeld.Parent = Character["Torso"]
  24. ArmWeld.Part0 = ArmWeld.Parent
  25. ArmWeld.Part1 = Character["Right Arm"]
  26. ArmWeld.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(3.14/2,0,0)
  27.  
  28. --[[ * Pole * ]]--
  29.  
  30. Pole = Instance.new("Part")
  31. Pole.formFactor = "Custom"
  32. Pole.Locked = true
  33. Pole.CanCollide = false
  34. Pole.Anchored = false
  35. Pole.Size = Vector3.new(0.3,3.5,0.3)
  36. Pole.TopSurface = 0
  37. Pole.BottomSurface = 0
  38. Pole.Parent = Cane
  39. Mesh = Instance.new("CylinderMesh",Pole)
  40.  
  41. Weldz = Instance.new("Weld")
  42. Weldz.Parent = Pole
  43. Weldz.Part0 = Character["Right Arm"]
  44. Weldz.Part1 = Pole
  45. Weldz.C0 = CFrame.new(0,-1,1.675) * CFrame.Angles(-math.pi/2,0,0)
  46.  
  47. --[[ * Handle * ]]--
  48.  
  49. Handle = Instance.new("Part")
  50. Handle.formFactor = "Custom"
  51. Handle.Locked = true
  52. Handle.CanCollide = false
  53. Handle.Anchored = false
  54. Handle.Size = Vector3.new(0.3,0.9,0.3)
  55. Handle.TopSurface = 0
  56. Handle.BottomSurface = 0
  57. Handle.Parent = Cane
  58. Mesh = Instance.new("CylinderMesh",Handle)
  59.  
  60. Weld = Instance.new("Weld")
  61. Weld.Parent = Handle
  62. Weld.Part0 = Pole
  63. Weld.Part1 = Handle
  64. Weld.C0 = CFrame.new(0,3.5/2,0) * CFrame.Angles(0,0,math.pi/2)
  65.  
  66. --[[ * HDents * ]]--
  67.  
  68. HDents = Instance.new("Part")
  69. HDents.BrickColor = BrickColor.new("Really black")
  70. HDents.formFactor = "Custom"
  71. HDents.Locked = true
  72. HDents.CanCollide = false
  73. HDents.Anchored = false
  74. HDents.Size = Vector3.new(0.2,1,0.2)
  75. HDents.TopSurface = 0
  76. HDents.BottomSurface = 0
  77. HDents.Parent = Cane
  78. Mesh = Instance.new("CylinderMesh",HDents)
  79.  
  80. Weld = Instance.new("Weld")
  81. Weld.Parent = HDents
  82. Weld.Part0 = Pole
  83. Weld.Part1 = HDents
  84. Weld.C0 = CFrame.new(0,3.5/2,0) * CFrame.Angles(0,0,math.pi/2)
  85.  
  86. --[[ * Bumber * ]]--
  87.  
  88. Bumber = Instance.new("Part")
  89. Bumber.BrickColor = BrickColor.new("Really black")
  90. Bumber.formFactor = "Custom"
  91. Bumber.Locked = true
  92. Bumber.CanCollide = false
  93. Bumber.Anchored = false
  94. Bumber.Size = Vector3.new(0.4,0.2,0.4)
  95. Bumber.TopSurface = 0
  96. Bumber.BottomSurface = 0
  97. Bumber.Parent = Cane
  98. Mesh = Instance.new("CylinderMesh",Bumber)
  99.  
  100. Weld = Instance.new("Weld")
  101. Weld.Parent = Bumber
  102. Weld.Part0 = Pole
  103. Weld.Part1 = Bumber
  104. Weld.C0 = CFrame.new(0,-3.5/2+0.1,0) * CFrame.Angles(0,0,0)
  105.  
  106. --[[ * Ring_A * ]]--
  107.  
  108. Ring_A = Instance.new("Part")
  109. Ring_A.BrickColor = BrickColor.new("Really black")
  110. Ring_A.formFactor = "Custom"
  111. Ring_A.Locked = true
  112. Ring_A.CanCollide = false
  113. Ring_A.Anchored = false
  114. Ring_A.Size = Vector3.new(0.4,0.2,0.4)
  115. Ring_A.TopSurface = 0
  116. Ring_A.BottomSurface = 0
  117. Ring_A.Parent = Cane
  118. Mesh = Instance.new("CylinderMesh",Ring_A)
  119. Mesh.Scale = Vector3.new(1,0.5,1)
  120.  
  121. Weld = Instance.new("Weld")
  122. Weld.Parent = Ring_A
  123. Weld.Part0 = Pole
  124. Weld.Part1 = Ring_A
  125. Weld.C0 = CFrame.new(0,-3.5/2+0.3,0) * CFrame.Angles(0,0,0)
  126.  
  127. --[[ * Ring_B * ]]--
  128.  
  129. Ring_B = Instance.new("Part")
  130. Ring_B.BrickColor = BrickColor.new("Really black")
  131. Ring_B.formFactor = "Custom"
  132. Ring_B.Locked = true
  133. Ring_B.CanCollide = false
  134. Ring_B.Anchored = false
  135. Ring_B.Size = Vector3.new(0.4,0.2,0.4)
  136. Ring_B.TopSurface = 0
  137. Ring_B.BottomSurface = 0
  138. Ring_B.Parent = Cane
  139. Mesh = Instance.new("CylinderMesh",Ring_B)
  140. Mesh.Scale = Vector3.new(1,0.5,1)
  141.  
  142. Weld = Instance.new("Weld")
  143. Weld.Parent = Ring_B
  144. Weld.Part0 = Pole
  145. Weld.Part1 = Ring_B
  146. Weld.C0 = CFrame.new(0,-3.5/2+0.45,0) * CFrame.Angles(0,0,0)
  147.  
  148. --[[ * Sticky * ]]--
  149.  
  150. Sticky = Instance.new("Part")
  151. Sticky.BrickColor = BrickColor.new("Really black")
  152. Sticky.formFactor = "Custom"
  153. Sticky.Locked = true
  154. Sticky.CanCollide = false
  155. Sticky.Anchored = false
  156. Sticky.Size = Vector3.new(0.4,0.5,0.4)
  157. Sticky.TopSurface = 0
  158. Sticky.BottomSurface = 0
  159. Sticky.Parent = Cane
  160. Mesh = Instance.new("CylinderMesh",Sticky)
  161. Mesh.Scale = Vector3.new(0.3,2,0.3)
  162.  
  163. Weld = Instance.new("Weld")
  164. Weld.Parent = Sticky
  165. Weld.Part0 = Pole
  166. Weld.Part1 = Sticky
  167. Weld.C0 = CFrame.new(0,-3.5/2+0.45,0) * CFrame.Angles(0,0,0)
  168.  
  169. --[[ * Knife * ]]--
  170.  
  171. Knife = Instance.new("Part")
  172. Knife.BrickColor = BrickColor.new("Really black")
  173. Knife.formFactor = "Custom"
  174. Knife.Reflectance = 1
  175. Knife.Locked = true
  176. Knife.CanCollide = false
  177. Knife.Anchored = false
  178. Knife.Size = Vector3.new(0.4,0.5,0.4)
  179. Knife.TopSurface = 0
  180. Knife.BottomSurface = 0
  181. Knife.Parent = Cane
  182. Meshz = Instance.new("SpecialMesh",Knife)
  183. Meshz.Scale = Vector3.new(0.2,0,0.2) -- (0.2,6,0.2)
  184. Meshz.MeshType = "Sphere"
  185. Weld = Instance.new("Weld")
  186. Weld.Parent = Knife
  187. Weld.Part0 = Pole
  188. Weld.Part1 = Knife
  189. Weld.C0 = CFrame.new(0,-3.5/2,0) * CFrame.Angles(0,0,0)
  190.  
  191. KnifePos = true
  192.  
  193. --[[ * Touchie * ]]--
  194.  
  195. function Touched(hit)
  196. if KnifePos == true then return end
  197. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  198. hit.Parent.Humanoid.Health = 0
  199. end
  200. end
  201.  
  202. function Touched2(hit)
  203. if KnifePos == false then return end
  204. if Blah == true then return end
  205. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  206. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10
  207. end
  208. end
  209.  
  210. --[[ * Tool * ]]--
  211.  
  212. if script.Parent.Name == Player.Name then
  213. Hopper = Instance.new("HopperBin")
  214. Hopper.Name = "Cane"
  215. Hopper.Parent = Player.Backpack
  216. end
  217.  
  218. Blah = true
  219.  
  220. function Clicked(Mouse)
  221. if Blah == true then
  222. Blah = false
  223.  
  224. if KnifePos == false then
  225. for i = 1,13 do wait()
  226. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0.05,-0.07)
  227. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0.2,-0.1,0.09)
  228. end
  229. for i = 1,20 do wait()
  230. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-0.2,0.1,-0.09)
  231. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,-0.05,0.07)
  232. end
  233. for i = 1,7 do wait()
  234. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0.05,-0.07)
  235. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0.2,-0.1,0.09)
  236. end
  237. ArmWeld.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(3.14/2,0,0)
  238. end
  239.  
  240. if KnifePos == true then
  241. for i = 1,13 do wait()
  242.  
  243. Weldz.C0 = Weldz.C0 - Vector3.new(0,0,0.2)
  244.  
  245. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0.05,-0.07)
  246. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0.2,-0.1,0.09)
  247. end
  248. for i = 1,20 do wait()
  249. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-0.2,0.1,-0.09)
  250. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,-0.05,0.07)
  251. end
  252. for i = 1,7 do wait()
  253. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0.05,-0.07)
  254. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0.2,-0.1,0.09)
  255.  
  256. Weldz.C0 = Weldz.C0 + Vector3.new(0,0,0.37142857142857142857142857142857)
  257.  
  258. end
  259. ArmWeld.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(3.14/2,0,0)
  260. Weldz.C0 = CFrame.new(0,-1,1.675) * CFrame.Angles(-math.pi/2,0,0)
  261. end
  262.  
  263. Blah = true
  264. return
  265. end
  266. end
  267.  
  268. function UnClicked(Mouse)
  269. end
  270.  
  271. function onKeyDown(key)
  272. --Knife Out
  273.  
  274. if key == "q" then
  275. if Blah == true then
  276. Blah = false
  277. if KnifePos == true then
  278. KnifePos = false
  279. for i = 1,10 do wait()
  280. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,-0.05,-0.05) * CFrame.Angles(0.05,0,0.05)
  281. end
  282. for i = 1,12 do wait()
  283. Meshz.Scale = Meshz.Scale + Vector3.new(0,0.5,0)
  284. end
  285. wait(0.2)
  286. for i = 1,10 do wait()
  287. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0.05,0.05) * CFrame.Angles(-0.05,0,-0.05)
  288. end
  289. ArmWeld.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(3.14/2,0,0)
  290. Blah = true
  291. return
  292. elseif KnifePos == false then
  293. for i = 1,10 do wait()
  294. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,-0.05,-0.05) * CFrame.Angles(0.05,0,0.05)
  295. end
  296. for i = 1,12 do wait()
  297. Meshz.Scale = Meshz.Scale - Vector3.new(0,0.5,0)
  298. end
  299. wait(0.3)
  300. for i = 1,10 do wait()
  301. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0.05,0.05) * CFrame.Angles(-0.05,0,-0.05)
  302. end
  303. ArmWeld.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(3.14/2,0,0)
  304. KnifePos = true
  305. Blah = true
  306. return
  307. end
  308. end
  309. end
  310.  
  311. --Reload
  312. if key == "r" then
  313. if Blah == true then
  314. Blah = false
  315. for i = 1,14 do wait()
  316. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(0.1,0,0)
  317. end
  318. wait()
  319. --Reloader:Play()
  320. for i = 1,4 do wait()
  321. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,0.1,0)
  322. if KnifePos == true then
  323. Meshz.Scale = Meshz.Scale + Vector3.new(0,1.5,0)
  324. end
  325. end
  326. KnifePos = false
  327. for i = 1,4 do wait()
  328. ArmWeld.C0 = ArmWeld.C0 * CFrame.new(0,-0.1,0)
  329. end
  330. for i = 1,14 do wait()
  331. ArmWeld.C0 = ArmWeld.C0 * CFrame.Angles(-0.1,0,0)
  332. end
  333. Blah = true
  334. end
  335. end
  336. end
  337.  
  338. function Selected(Mouse)
  339. Mouse.Icon = "rbxasset://textures\\GunCursor.png"
  340. Mouse.KeyDown:connect(onKeyDown)
  341. Mouse.Button1Down:connect(function()Clicked(Mouse)end)
  342. Mouse.Button1Up:connect(function()UnClicked(Mouse)end)
  343. end
  344.  
  345. function Deselected(Mouse)
  346. end
  347.  
  348. Hopper.Selected:connect(Selected)
  349. Hopper.Deselected:connect(Deselected)
  350.  
  351. Knife.Touched:connect(Touched)
  352. Pole.Touched:connect(Touched2)
Add Comment
Please, Sign In to add comment