Advertisement
End_Wolf

Untitled

Jun 20th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.42 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. ParticleEmitter8 = Instance.new("ParticleEmitter")
  28. Sound9 = Instance.new("Sound")
  29. Sound10 = Instance.new("Sound")
  30. Animation11 = Instance.new("Animation")
  31. Animation12 = Instance.new("Animation")
  32. Camera13 = Instance.new("Camera")
  33. LocalScript14 = Instance.new("LocalScript")
  34. Tool0.Name = "Sapper"
  35. Tool0.Parent = mas
  36. Tool0.Grip = CFrame.new(0.100000001, 0, 0, -0.00183999329, 0.96539408, 0.260789216, -0.529998004, -0.222090662, 0.818399549, 0.847996831, -0.136711925, 0.51206553)
  37. Tool0.GripForward = Vector3.new(-0.260789216, -0.818399549, -0.51206553)
  38. Tool0.GripPos = Vector3.new(0.100000001, 0, 0)
  39. Tool0.GripRight = Vector3.new(-0.00183999329, -0.529998004, 0.847996831)
  40. Tool0.GripUp = Vector3.new(0.96539408, -0.222090662, -0.136711925)
  41. Tool0.ToolTip = "Why Don't We Just Give Up, Partner?"
  42. Part1.Name = "Handle"
  43. Part1.Parent = Tool0
  44. Part1.CFrame = CFrame.new(44.5950012, 0.354999959, 14.8000002, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1)
  45. Part1.Orientation = Vector3.new(0, 0, -90)
  46. Part1.Position = Vector3.new(44.5950012, 0.354999959, 14.8000002)
  47. Part1.Rotation = Vector3.new(0, 0, -90)
  48. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  49. Part1.Size = Vector3.new(0.709999979, 1.19000006, 0.400000006)
  50. Part1.BackParamA = -99999
  51. Part1.BackParamB = 99999
  52. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  53. Part1.BottomParamA = -99999
  54. Part1.BottomParamB = 99999
  55. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  56. Part1.BrickColor = BrickColor.new("Dark stone grey")
  57. Part1.Elasticity = 0
  58. Part1.Friction = 2
  59. Part1.FrontParamA = -99999
  60. Part1.FrontParamB = 99999
  61. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  62. Part1.LeftParamA = -99999
  63. Part1.LeftParamB = 99999
  64. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  65. Part1.Material = Enum.Material.Metal
  66. Part1.RightParamA = -99999
  67. Part1.RightParamB = 99999
  68. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  69. Part1.TopParamA = -99999
  70. Part1.TopParamB = 99999
  71. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  72. Part1.brickColor = BrickColor.new("Dark stone grey")
  73. Part1.FormFactor = Enum.FormFactor.Custom
  74. Part1.formFactor = Enum.FormFactor.Custom
  75. SpecialMesh2.Parent = Part1
  76. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=11821197"
  77. SpecialMesh2.Scale = Vector3.new(2, 1.5, 2)
  78. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=21714689"
  79. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  80. Sound3.Name = "Equipped"
  81. Sound3.Parent = Part1
  82. Sound3.SoundId = "http://www.roblox.com/asset/?id=14863866"
  83. Sound3.Volume = 1
  84. Sound4.Name = "UnEquipped"
  85. Sound4.Parent = Part1
  86. Sound4.Pitch = 2
  87. Sound4.PlayOnRemove = true
  88. Sound4.PlaybackSpeed = 2
  89. Sound4.SoundId = "http://www.roblox.com/asset/?id=14863866"
  90. Sound4.Volume = 1
  91. Sound5.Name = "Planted"
  92. Sound5.Parent = Part1
  93. Sound5.SoundId = "http://roblox.com/asset/?id=10209475"
  94. Sound5.Volume = 1
  95. Sound6.Name = "Destroy"
  96. Sound6.Parent = Part1
  97. Sound6.SoundId = "http://roblox.com/asset/?id=10209481"
  98. Sound6.Volume = 1
  99. Sound7.Name = "Throw"
  100. Sound7.Parent = Part1
  101. Sound7.Pitch = 2.3465528488159
  102. Sound7.PlaybackSpeed = 2.3465528488159
  103. Sound7.SoundId = "rbxassetid://10209645"
  104. Sound7.Volume = 1
  105. ParticleEmitter8.Name = "Electric"
  106. ParticleEmitter8.Parent = Part1
  107. ParticleEmitter8.Rotation = NumberRange.new(-2048, 2048)
  108. ParticleEmitter8.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1),Color3.new(0.631373, 0.631373, 1))
  109. ParticleEmitter8.Enabled = false
  110. ParticleEmitter8.Texture = "rbxassetid://57202933"
  111. ParticleEmitter8.Transparency = NumberSequence.new(0.5,0.5)
  112. ParticleEmitter8.Size = NumberSequence.new(0,0.99999964237213,0.9375,2.625,0)
  113. ParticleEmitter8.Acceleration = Vector3.new(0, -6, 0)
  114. ParticleEmitter8.Lifetime = NumberRange.new(1, 1)
  115. ParticleEmitter8.Rate = inf
  116. ParticleEmitter8.RotSpeed = NumberRange.new(-2048, 2048)
  117. ParticleEmitter8.SpreadAngle = Vector2.new(50, 50)
  118. ParticleEmitter8.VelocitySpread = 50
  119. Sound9.Name = "TargetExplode"
  120. Sound9.Parent = Part1
  121. Sound9.SoundId = "rbxassetid://10209236"
  122. Sound9.Volume = 1
  123. Sound10.Name = "Sapping"
  124. Sound10.Parent = Part1
  125. Sound10.Looped = true
  126. Sound10.SoundId = "rbxassetid://259524227"
  127. Sound10.Volume = 1
  128. Animation11.Name = "HoldSapper"
  129. Animation11.Parent = Tool0
  130. Animation11.AnimationId = "rbxassetid://94108418"
  131. Animation12.Name = "ThrowSapper"
  132. Animation12.Parent = Tool0
  133. Animation12.AnimationId = "rbxassetid://233535408"
  134. Camera13.Name = "ThumbnailCamera"
  135. Camera13.Parent = Tool0
  136. Camera13.CFrame = CFrame.new(-0.603374362, -0.139123678, -3.10761571, -0.984140992, -0.00995710865, -0.177108377, -9.31322575e-10, 0.998423338, -0.0561317801, 0.177388057, -0.0552415848, -0.982589364)
  137. Camera13.CoordinateFrame = CFrame.new(-0.603374362, -0.139123678, -3.10761571, -0.984140992, -0.00995710865, -0.177108377, -9.31322575e-10, 0.998423338, -0.0561317801, 0.177388057, -0.0552415848, -0.982589364)
  138. Camera13.FieldOfView = 19.999999651642
  139. Camera13.Focus = CFrame.new(-0.249157578, -0.026860103, -1.14243674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  140. Camera13.focus = CFrame.new(-0.249157578, -0.026860103, -1.14243674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  141. LocalScript14.Name = "SapperMain"
  142. LocalScript14.Parent = Tool0
  143. table.insert(cors,sandbox(LocalScript14,function()
  144. --[[ By: Brutez. ]]--
  145. local SapperMain=script.Parent;
  146. local Handle=SapperMain:WaitForChild("Handle");
  147. local THROWSOUND=Handle:FindFirstChild("Throw");
  148. local SuperPower=Handle:FindFirstChild("SuperPower");
  149. local SapperMeshData="rbxassetid://11821197";
  150. local TextureData="rbxassetid://21714689";
  151. local AttackAble=true;
  152. local AttackReloadTime=1;
  153. local ProjectileSpeed=137;
  154. local SapperModel;
  155. local PlayerMouse=Game.Players.LocalPlayer:GetMouse();
  156. local Targets={};
  157. getSapper=function()
  158. local Sapper = Instance.new("Part",SapperModel)
  159. Sapper.CanCollide = false
  160. Sapper.FormFactor = "Custom"
  161. Sapper.Size = Vector3.new(1, 1, 1)
  162. Sapper.TopSurface = "Smooth"
  163. Sapper.BottomSurface = "Smooth"
  164. Sapper.Name="Sapper"
  165. local mesh = Instance.new("SpecialMesh")
  166. mesh.MeshId = SapperMeshData
  167. mesh.TextureId = TextureData
  168. mesh.Parent = Sapper
  169. local Destroy=Handle:FindFirstChild("Destroy"):Clone();
  170. Destroy.Parent=Sapper
  171. local Sap=Handle:FindFirstChild("Planted"):Clone();
  172. Sap.Parent=Sapper
  173. local IsSapping=Handle:FindFirstChild("Sapping"):Clone();
  174. IsSapping.Parent=Sapper
  175. local TargetExplode=Handle:FindFirstChild("TargetExplode"):Clone();
  176. TargetExplode.Parent=Sapper
  177. local SapperHealth=Instance.new("IntValue",Sapper);
  178. SapperHealth.Name="SapperHealth"
  179. SapperHealth.Value=50
  180. local Electric=Handle:FindFirstChild("Electric"):Clone();
  181. Electric.Parent=Sapper
  182. local lift = Instance.new("BodyForce")
  183. lift.force = Vector3.new(0, 195, 0) * Sapper:GetMass() * 0.4
  184. lift.Parent = Sapper
  185. return Sapper
  186. end
  187. onLeftDown=function ()
  188. if AttackAble then
  189. if not Game.Workspace:FindFirstChild(SapperMain.Parent.Name.."'s Sappers")then
  190. local PlayerSappers=Instance.new("Model",Game.Workspace)
  191. PlayerSappers.Name=SapperMain.Parent.Name.."'s Sappers"
  192. SapperModel=PlayerSappers
  193. else
  194. SapperModel=Game.Workspace:FindFirstChild(SapperMain.Parent.Name.."'s Sappers")
  195. end
  196. AttackAble=false
  197. delay(AttackReloadTime, function()
  198. AttackAble=true
  199. end)
  200. ThrowSapper:Play()
  201. Wait(0.2)
  202. if SapperMain.Parent:FindFirstChild("Humanoid") then
  203. THROWSOUND.Pitch=2+(math.random()*.5)
  204. THROWSOUND:Play()
  205. local TargetPoint=SapperMain.Parent:FindFirstChild("Humanoid").TargetPoint
  206. local Sapper = getSapper()
  207. Sapper.CFrame = CFrame.new(Handle.Position, TargetPoint)
  208. Sapper.Velocity = Sapper.CFrame.lookVector * ProjectileSpeed
  209. local TouchEnabled=true
  210. Sapper.Touched:connect(function(part)
  211. if part:IsDescendantOf(SapperMain.Parent)then return end
  212. if TouchEnabled then
  213. TouchEnabled=false
  214. if part and part.Name~="Base"and part.Name~="BasePlate" then
  215. if part and part.Parent and part.Parent.ClassName=="Model"then
  216. if not part.Parent:FindFirstChild("Sapper")then
  217. Sapper.Parent=part.Parent
  218. table.insert(Targets,part.Parent.Name)
  219. coroutine.resume(coroutine.create(function()
  220. for _=1,5 do
  221. Sapper.Velocity=Vector3.new(0,0,0)
  222. Wait(0)
  223. end
  224. end))
  225. Sapper:FindFirstChild("BodyForce"):Destroy()
  226. local w = Instance.new("Weld")
  227. w.Part0 = part
  228. w.Part1 = Sapper
  229. w.C0 = part.CFrame:toObjectSpace(Sapper.CFrame)
  230. w.Parent = Sapper
  231. local Hits=Sapper:FindFirstChild("Planted");
  232. local SapperHealth=Sapper:FindFirstChild("SapperHealth")
  233. Hits:Play();
  234. local Electric=Sapper:FindFirstChild("Electric");
  235. Electric.Enabled=true
  236. Sapper:FindFirstChild("Sapping"):Play()
  237. local NotFindHumanoid=true;
  238. local TargetHumanoid=nil;
  239. local ModelHealth=100
  240. while Wait(0) do
  241. if NotFindHumanoid and Sapper then
  242. for _,Child in pairs (part.Parent:GetChildren()) do
  243. if Child.ClassName == "Humanoid" then
  244. TargetHumanoid = Child
  245. NotFindHumanoid= false
  246. end
  247. end
  248. end
  249. if NotFindHumanoid then
  250. if part.Parent:FindFirstChild("Health")then
  251. if part.Parent:FindFirstChild("Health").Value>0.001 then
  252. part.Parent:FindFirstChild("Health").Value=part.Parent:FindFirstChild("Health").Value-0.3
  253. else
  254. Sapper:FindFirstChild("Sapping"):Stop()
  255. Sapper:FindFirstChild("TargetExplode"):Play()
  256. part.Parent:BreakJoints()
  257. Sapper:BreakJoints()
  258. break
  259. end
  260. if SapperHealth.Value==0 or SapperHealth.Value<0.001 then
  261. Sapper:FindFirstChild("Sapping"):Stop()
  262. Sapper:FindFirstChild("Destroy"):Play()
  263. Sapper:BreakJoints()
  264. break
  265. end
  266. else
  267. if ModelHealth>0.001 then
  268. ModelHealth=ModelHealth-0.3
  269. else
  270. Sapper:FindFirstChild("Sapping"):Stop()
  271. Sapper:FindFirstChild("TargetExplode"):Play()
  272. part.Parent:BreakJoints()
  273. Sapper:BreakJoints()
  274. break
  275. end
  276. if SapperHealth.Value==0 or SapperHealth.Value<0.001 then
  277. Sapper:FindFirstChild("Sapping"):Stop()
  278. Sapper:FindFirstChild("Destroy"):Play()
  279. Sapper:BreakJoints()
  280. break
  281. end
  282. end
  283. else
  284. if TargetHumanoid and TargetHumanoid.Health>0.001 then
  285. TargetHumanoid:TakeDamage(0.3)
  286. else
  287. part.Parent:BreakJoints()
  288. Sapper:FindFirstChild("Sapping"):Stop()
  289. Sapper:FindFirstChild("TargetExplode"):Play()
  290. Sapper:BreakJoints()
  291. break
  292. end
  293. if SapperHealth.Value==0 or SapperHealth.Value<0.001 then
  294. Sapper:FindFirstChild("Sapping"):Stop()
  295. Sapper:FindFirstChild("Destroy"):Play()
  296. Sapper:BreakJoints()
  297. break
  298. end
  299. end
  300. end
  301. else
  302. Sapper:BreakJoints()
  303. end
  304. elseif part and part.Parent and part.Parent.ClassName=="Workspace" and part.Locked~=true then
  305. if not part:FindFirstChild("Sapper") then
  306. Sapper.Parent=part
  307. table.insert(Targets,part.Name)
  308. Sapper.Velocity=Vector3.new(0,0,0)
  309. local w = Instance.new("Weld")
  310. w.Part0 = part
  311. w.Part1 = Sapper
  312. w.C0 = part.CFrame:toObjectSpace(Sapper.CFrame)
  313. w.Parent = Sapper
  314. local Hits=Sapper:FindFirstChild("Planted");
  315. local SapperHealth=Sapper:FindFirstChild("SapperHealth")
  316. Hits:Play();
  317. local Electric=Sapper:FindFirstChild("Electric");
  318. Electric.Enabled=true
  319. Sapper:FindFirstChild("Sapping"):Play()
  320. local BrickHealth=100;
  321. while Wait(0)do
  322. if part:FindFirstChild("Health")then
  323. if part:FindFirstChild("Health").Value>0.001 then
  324. part:FindFirstChild("Health").Value=part:FindFirstChild("Health").Value-0.3
  325. else
  326. Sapper:FindFirstChild("Sapping"):Stop()
  327. Sapper:FindFirstChild("TargetExplode"):Play()
  328. Sapper:BreakJoints()
  329. break
  330. end
  331. if SapperHealth.Value==0 or SapperHealth.Value<0.001 then
  332. Sapper:FindFirstChild("Sapping"):Stop()
  333. Sapper:FindFirstChild("Destroy"):Play()
  334. Sapper:BreakJoints()
  335. break
  336. end
  337. else
  338. if BrickHealth>0.001 then
  339. BrickHealth=BrickHealth-0.3
  340. else
  341. Sapper:FindFirstChild("Sapping"):Stop()
  342. Sapper:FindFirstChild("TargetExplode"):Play()
  343. Sapper:BreakJoints()
  344. part:BreakJoints()
  345. part.Anchored=false
  346. break
  347. end
  348. if SapperHealth.Value==0 or SapperHealth.Value<0.001 then
  349. Sapper:FindFirstChild("Sapping"):Stop()
  350. Sapper:FindFirstChild("Destroy"):Play()
  351. Sapper:BreakJoints()
  352. break
  353. end
  354. end
  355. end
  356. else
  357. Sapper:BreakJoints()
  358. end
  359. end
  360. end
  361. end
  362. end)
  363. end
  364. end
  365. end
  366. SapperMain.Equipped:connect(function(PlayerMouse)
  367. if not Game.Workspace:FindFirstChild(Game.Players.LocalPlayer.Character.Name.."'s Sappers")then
  368. local PlayerSappers=Instance.new("Model",Game.Workspace)
  369. PlayerSappers.Name=Game.Players.LocalPlayer.Character.Name.."'s Sappers"
  370. SapperModel=PlayerSappers
  371. else
  372. SapperModel=Game.Workspace:FindFirstChild(Game.Players.LocalPlayer.Character.Name.."'s Sappers")
  373. end
  374. local SapperMainHumanoid = Game.Players.LocalPlayer.Character:FindFirstChild('Humanoid');
  375. HoldSapper = SapperMainHumanoid:LoadAnimation(SapperMain:FindFirstChild('HoldSapper'));
  376. ThrowSapper = SapperMainHumanoid:LoadAnimation(SapperMain:FindFirstChild('ThrowSapper'));
  377. HoldSapper:Play()
  378. Handle.Equipped:Play()
  379. PlayerMouse.Button1Down:connect(function()
  380. onLeftDown(PlayerMouse)
  381. end)
  382. Game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Died:connect(function()
  383. if Game.Workspace:FindFirstChild(Game.Players.LocalPlayer.Character.Name.."'s Sappers") then
  384. for _,Child in pairs (Game.Workspace:FindFirstChild(Game.Players.LocalPlayer.Character.Name.."'s Sappers"):GetChildren()) do
  385. if Child.Name=="Sapper" then
  386. Child:FindFirstChild("SapperHealth").Value=0
  387. Child:BreakJoints()
  388. end
  389. end
  390. end
  391. for i ,II in pairs(Targets) do
  392. if Game.Workspace:FindFirstChild(Targets[i]) and Game.Workspace:FindFirstChild(Targets[i]):FindFirstChild("Sapper")then
  393. Game.Workspace:FindFirstChild(Targets[i]):FindFirstChild("Sapper"):FindFirstChild("Destroy"):Play()
  394. Game.Workspace:FindFirstChild(Targets[i]):FindFirstChild("Sapper"):FindFirstChild("SapperHealth").Value=0
  395. Game.Workspace:FindFirstChild(Targets[i]):FindFirstChild("Sapper"):BreakJoints()
  396. end
  397. end
  398. Wait(1)
  399. if Game.Workspace:FindFirstChild(Game.Players.LocalPlayer.Character.Name.."'s Sappers")then
  400. Game.Workspace:FindFirstChild(Game.Players.LocalPlayer.Character.Name.."'s Sappers"):Destroy()
  401. end
  402. end)
  403. end)
  404. SapperMain.Unequipped:connect(function()
  405. if ThrowSapper then
  406. ThrowSapper:Stop()
  407. ThrowSapper:Stop()
  408. end
  409. if HoldSapper ~= nil then
  410. HoldSapper:Stop()
  411. HoldSapper:remove()
  412. end
  413. end)
  414. --[[ By: Brutez. ]]--
  415. end))
  416. for i,v in pairs(mas:GetChildren()) do
  417. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  418. pcall(function() v:MakeJoints() end)
  419. end
  420. mas:Destroy()
  421. for i,v in pairs(cors) do
  422. spawn(function()
  423. pcall(v)
  424. end)
  425. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement