Advertisement
End_Wolf

Untitled

Jul 5th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. Script1 = Instance.new("Script")
  21. Fire2 = Instance.new("Fire")
  22. Script3 = Instance.new("Script")
  23. IntValue4 = Instance.new("IntValue")
  24. LocalScript5 = Instance.new("LocalScript")
  25. Script6 = Instance.new("Script")
  26. Fire7 = Instance.new("Fire")
  27. PointLight8 = Instance.new("PointLight")
  28. Smoke9 = Instance.new("Smoke")
  29. Part10 = Instance.new("Part")
  30. Sound11 = Instance.new("Sound")
  31. SpecialMesh12 = Instance.new("SpecialMesh")
  32. Tool0.Name = "Flare Gun"
  33. Tool0.Parent = mas
  34. Tool0.TextureId = "rbxassetid://444145395"
  35. Tool0.CanBeDropped = false
  36. Tool0.Grip = CFrame.new(0, -0.400000006, 0.0500000007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  37. Tool0.GripPos = Vector3.new(0, -0.400000006, 0.0500000007)
  38. Tool0.ToolTip = "Flare Gun"
  39. Script1.Name = "Paintball"
  40. Script1.Parent = Tool0
  41. table.insert(cors,sandbox(Script1,function()
  42. --rbxsig%leIitay5G0xoc8QCL8LmFwhHlFf0gaAxhRmYajmRNYlypcjE9UWOAafcMqsgQJluLLp7bYlhQuW0emM+jY9aaT3p9IzaMnvGt32VUo6nPwB75YmXE7Lhb3U9VVlti1RSAtjqVlW8El5KbJ+0aruJll3DbbiU8RTnVR7dv/TQycY=%
  43. --rbxassetid%1014541%
  44.  
  45. ball = script.Parent
  46. damage = 10
  47.  
  48.  
  49.  
  50. function onTouched(hit)
  51. script.Parent.Velocity = script.Parent.Velocity*0.7
  52. local humanoid = hit.Parent:findFirstChild("Humanoid")
  53.  
  54. if humanoid ~= nil then
  55. tagHumanoid(humanoid)
  56. humanoid:TakeDamage(damage)
  57. if humanoid.Parent.Torso:FindFirstChild("FlareFire") then
  58. humanoid.Parent.Torso.FlareFire.Burner.Timer.Value = 6
  59. else
  60. local fiery = script.FlareFire:clone()
  61. fiery.Parent = humanoid.Parent.Torso
  62. fiery.Enabled = true
  63. fiery.Burner.Disabled = false
  64. end
  65.  
  66. wait(2)
  67. untagHumanoid(humanoid)
  68. end
  69. end
  70.  
  71. function tagHumanoid(humanoid)
  72. -- todo: make tag expire
  73. local tag = ball:findFirstChild("creator")
  74. if tag ~= nil then
  75. local new_tag = tag:clone()
  76. new_tag.Parent = humanoid
  77. end
  78. end
  79.  
  80.  
  81. function untagHumanoid(humanoid)
  82. if humanoid ~= nil then
  83. local tag = humanoid:findFirstChild("creator")
  84. if tag ~= nil then
  85. tag.Parent = nil
  86. end
  87. end
  88. end
  89.  
  90. connection = ball.Touched:connect(onTouched)
  91. end))
  92. Script1.Disabled = true
  93. Fire2.Name = "FlareFire"
  94. Fire2.Parent = Script1
  95. Fire2.Color = Color3.new(1, 0.333333, 0)
  96. Fire2.Enabled = false
  97. Fire2.Size = 7
  98. Fire2.Heat = 5
  99. Fire2.SecondaryColor = Color3.new(1, 0.666667, 0)
  100. Fire2.size = 7
  101. Script3.Name = "Burner"
  102. Script3.Parent = Fire2
  103. table.insert(cors,sandbox(Script3,function()
  104. local looping = true
  105. while looping do
  106. if script.Timer.Value >= 1 then
  107. script.Parent.Parent.Parent.Humanoid:TakeDamage(4)
  108. script.Timer.Value = script.Timer.Value - 1
  109. else
  110. looping = false
  111. end
  112. wait(1.5)
  113. end
  114.  
  115. script.Parent:Destroy()
  116. end))
  117. Script3.Disabled = true
  118. IntValue4.Name = "Timer"
  119. IntValue4.Parent = Script3
  120. IntValue4.Value = 6
  121. LocalScript5.Name = "Local Gui"
  122. LocalScript5.Parent = Tool0
  123. LocalScript5.LinkedSource = "http://www.roblox.com/asset/?id=1014540"
  124. Script6.Name = "PaintballShooter"
  125. Script6.Parent = Tool0
  126. table.insert(cors,sandbox(Script6,function()
  127. Tool = script.Parent
  128.  
  129. colors = {21}
  130.  
  131. function fire(v)
  132.  
  133. Tool.Handle.Fire:play()
  134.  
  135.  
  136. local vCharacter = Tool.Parent
  137. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  138.  
  139. local missile = Instance.new("Part")
  140.  
  141.  
  142.  
  143. local spawnPos = vCharacter.PrimaryPart.Position
  144.  
  145.  
  146.  
  147. spawnPos = spawnPos + (v * 8)
  148.  
  149. missile.Position = spawnPos
  150. missile.Size = Vector3.new(1,1,1)
  151. missile.Velocity = v * 200
  152. missile.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
  153. missile.Shape = 0
  154. missile.BottomSurface = 0
  155. missile.TopSurface = 0
  156. missile.Name = "Paintball"
  157. missile.Elasticity = 0
  158. missile.Reflectance = 0
  159. missile.Friction = .9
  160. missile.Material = "Neon"
  161.  
  162. local trailparticle = script.Fire:clone()
  163. trailparticle.Parent = missile
  164. trailparticle.Enabled = true
  165.  
  166. local glowy = script.Light:clone()
  167. glowy.Parent = missile
  168. glowy.Enabled = true
  169.  
  170. local emergency = script.Smoke:clone()
  171. emergency.Parent = missile
  172. emergency.Enabled = true
  173.  
  174. local force = Instance.new("BodyForce")
  175. force.force = Vector3.new(0,65,0)
  176. force.Parent = missile
  177.  
  178. game.Debris:AddItem(missile, 5)
  179.  
  180. local new_script = script.Parent.Paintball:clone()
  181. new_script.Disabled = false
  182. new_script.Parent = missile
  183.  
  184. local creator_tag = Instance.new("ObjectValue")
  185. creator_tag.Value = vPlayer
  186. creator_tag.Name = "creator"
  187. creator_tag.Parent = missile
  188.  
  189.  
  190.  
  191. missile.Parent = game.Workspace
  192.  
  193. end
  194.  
  195.  
  196.  
  197. Tool.Enabled = true
  198. function onActivated()
  199.  
  200. if not Tool.Enabled then
  201. return
  202. end
  203.  
  204. Tool.Enabled = false
  205.  
  206. local character = Tool.Parent;
  207. local humanoid = character.Humanoid
  208. if humanoid == nil then
  209. print("Humanoid not found")
  210. return
  211. end
  212.  
  213. local targetPos = humanoid.TargetPoint
  214. local lookAt = (targetPos - character.Head.Position).unit
  215.  
  216. fire(lookAt)
  217.  
  218. wait(4)
  219.  
  220. Tool.Enabled = true
  221. end
  222.  
  223.  
  224. script.Parent.Activated:connect(onActivated)
  225. end))
  226. Fire7.Parent = Script6
  227. Fire7.Color = Color3.new(1, 0, 0)
  228. Fire7.Enabled = false
  229. Fire7.Size = 10
  230. Fire7.Heat = 0
  231. Fire7.SecondaryColor = Color3.new(1, 0, 0)
  232. Fire7.size = 10
  233. PointLight8.Name = "Light"
  234. PointLight8.Parent = Script6
  235. PointLight8.Color = Color3.new(1, 0, 0)
  236. PointLight8.Enabled = false
  237. PointLight8.Range = 30
  238. PointLight8.Shadows = true
  239. Smoke9.Parent = Script6
  240. Smoke9.Color = Color3.new(1, 0, 0)
  241. Smoke9.Enabled = false
  242. Smoke9.Size = 2
  243. Smoke9.Opacity = 1
  244. Smoke9.RiseVelocity = 0
  245. Part10.Name = "Handle"
  246. Part10.Parent = Tool0
  247. Part10.CFrame = CFrame.new(-1.9000001, 0.49999997, 3.70000005, -1.00000024, -3.19019335e-08, 2.60770321e-07, -3.18550661e-08, 0.99999994, 1.30739863e-12, -2.60770321e-07, 2.14413376e-10, -1.00000024)
  248. Part10.Orientation = Vector3.new(0, 180, 0)
  249. Part10.Position = Vector3.new(-1.9000001, 0.49999997, 3.70000005)
  250. Part10.Rotation = Vector3.new(-180, 0, 180)
  251. Part10.Size = Vector3.new(0.200000033, 1, 1.39999986)
  252. Part10.BottomSurface = Enum.SurfaceType.Smooth
  253. Part10.Locked = true
  254. Part10.TopSurface = Enum.SurfaceType.Smooth
  255. Part10.FormFactor = Enum.FormFactor.Custom
  256. Part10.formFactor = Enum.FormFactor.Custom
  257. Sound11.Name = "Fire"
  258. Sound11.Parent = Part10
  259. Sound11.SoundId = "http://www.roblox.com/asset/?id=142241347"
  260. Sound11.Volume = 1
  261. SpecialMesh12.Parent = Part10
  262. SpecialMesh12.MeshId = "rbxassetid://443983595"
  263. SpecialMesh12.Scale = Vector3.new(0.0140000004, 0.0140000004, 0.0140000004)
  264. SpecialMesh12.TextureId = "rbxassetid://443983604"
  265. SpecialMesh12.MeshType = Enum.MeshType.FileMesh
  266. for i,v in pairs(mas:GetChildren()) do
  267. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  268. pcall(function() v:MakeJoints() end)
  269. end
  270. mas:Destroy()
  271. for i,v in pairs(cors) do
  272. spawn(function()
  273. pcall(v)
  274. end)
  275. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement