memberhero

Untitled

Feb 7th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 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. ParticleEmitter1 = Instance.new("ParticleEmitter")
  21. ParticleEmitter2 = Instance.new("ParticleEmitter")
  22. PointLight3 = Instance.new("PointLight")
  23. ParticleEmitter4 = Instance.new("ParticleEmitter")
  24. Weld5 = Instance.new("Weld")
  25. ParticleEmitter6 = Instance.new("ParticleEmitter")
  26. Weld7 = Instance.new("Weld")
  27. Sound8 = Instance.new("Sound")
  28. Script9 = Instance.new("Script")
  29. BoolValue10 = Instance.new("BoolValue")
  30. Tool0.Name = "NOUVEAU COMET LIGHTER"
  31. Tool0.Parent = mas
  32. Tool0.GripPos = Vector3.new(0.200000003, -0.200000003, 0.100000001)
  33. Tool0.ToolTip = "The world under a nouvaeu comet. Freezing, decaying."
  34. ParticleEmitter1.Name = "Fire"
  35. ParticleEmitter1.Parent = mas
  36. ParticleEmitter1.Transparency = NumberSequence.new(0,0.21249997615814,0.54999995231628,1)
  37. ParticleEmitter1.Size = NumberSequence.new(17,17)
  38. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0.384314, 1))
  39. ParticleEmitter1.Enabled = false
  40. ParticleEmitter1.LightEmission = 4444
  41. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=242102147"
  42. ParticleEmitter1.ZOffset = 0.25
  43. ParticleEmitter1.Acceleration = Vector3.new(13, 13, 13)
  44. ParticleEmitter1.Lifetime = NumberRange.new(0.89999997615814, 2)
  45. ParticleEmitter1.Rate = 800
  46. ParticleEmitter1.RotSpeed = NumberRange.new(500, 500)
  47. ParticleEmitter1.Speed = NumberRange.new(60, 110)
  48. ParticleEmitter1.VelocitySpread = 2000
  49. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0.384314, 1))
  50. ParticleEmitter2.Name = "Flare"
  51. ParticleEmitter2.Parent = mas
  52. ParticleEmitter2.Transparency = NumberSequence.new(0.40000000596046,0.40000000596046)
  53. ParticleEmitter2.Size = NumberSequence.new(20,20)
  54. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.0666667, 0, 1),Color3.new(0, 1, 0))
  55. ParticleEmitter2.Enabled = false
  56. ParticleEmitter2.LightEmission = 20
  57. ParticleEmitter2.Texture = "rbxassetid://313320361"
  58. ParticleEmitter2.ZOffset = 0.75
  59. ParticleEmitter2.Acceleration = Vector3.new(30, 30, 30)
  60. ParticleEmitter2.Rate = 200
  61. ParticleEmitter2.RotSpeed = NumberRange.new(170, 170)
  62. ParticleEmitter2.Speed = NumberRange.new(30, 30)
  63. ParticleEmitter2.VelocitySpread = 3500
  64. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.0666667, 0, 1),Color3.new(0, 1, 0))
  65. PointLight3.Name = "Light"
  66. PointLight3.Parent = mas
  67. PointLight3.Color = Color3.new(1, 0.733333, 0.733333)
  68. PointLight3.Enabled = false
  69. PointLight3.Brightness = 100
  70. PointLight3.Range = 50
  71. PointLight3.Shadows = true
  72. PointLight3.Color = Color3.new(1, 0.733333, 0.733333)
  73. ParticleEmitter4.Name = "Sparks"
  74. ParticleEmitter4.Parent = mas
  75. ParticleEmitter4.Transparency = NumberSequence.new(0.94999998807907,0.94999998807907)
  76. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.996078, 0.858824),Color3.new(1, 0.666667, 0))
  77. ParticleEmitter4.Enabled = false
  78. ParticleEmitter4.LightEmission = 20
  79. ParticleEmitter4.Texture = "http://www.roblox.com/asset/?id=313320361"
  80. ParticleEmitter4.ZOffset = 0.5
  81. ParticleEmitter4.Acceleration = Vector3.new(0, 50, 0)
  82. ParticleEmitter4.Lifetime = NumberRange.new(30, 30)
  83. ParticleEmitter4.Rate = 250
  84. ParticleEmitter4.RotSpeed = NumberRange.new(1000, 1000)
  85. ParticleEmitter4.Speed = NumberRange.new(20, 20)
  86. ParticleEmitter4.VelocitySpread = 4000
  87. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.996078, 0.858824),Color3.new(1, 0.666667, 0))
  88. Weld5.Parent = mas
  89. Weld5.C0 = CFrame.new(46.6029015, -0.981977582, 13.5999947, 0.999998987, -5.96046448e-08, 0, 5.96046448e-08, 0.999999106, 3.05363756e-07, -7.10542736e-15, -3.05363415e-07, 0.999999881)
  90. Weld5.C1 = CFrame.new(46.6734695, -0.501976013, 13.6000023, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  91. Weld5.Part0 = nil
  92. Weld5.Part1 = nil
  93. ParticleEmitter6.Name = "SecondPlane"
  94. ParticleEmitter6.Parent = mas
  95. ParticleEmitter6.Transparency = NumberSequence.new(0.80000001192093,0.80000001192093)
  96. ParticleEmitter6.Size = NumberSequence.new(50,50)
  97. ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0, 0.215686, 1))
  98. ParticleEmitter6.Enabled = false
  99. ParticleEmitter6.Texture = "rbxassetid://313320361"
  100. ParticleEmitter6.ZOffset = 0.25
  101. ParticleEmitter6.Lifetime = NumberRange.new(10, 10)
  102. ParticleEmitter6.Rate = 4
  103. ParticleEmitter6.RotSpeed = NumberRange.new(100, 300)
  104. ParticleEmitter6.Speed = NumberRange.new(80, 80)
  105. ParticleEmitter6.VelocitySpread = 100
  106. ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(0, 0.215686, 1))
  107. Weld7.Parent = mas
  108. Weld7.C0 = CFrame.new(46.6734695, -0.501976013, 13.6000023, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  109. Weld7.C1 = CFrame.new(13.0043669, 44.4466515, 13.6000023, 0.258818865, -0.965925395, 0, 0.965925395, 0.258818865, 0, 0, 0, 1)
  110. Weld7.Part0 = nil
  111. Weld7.Part1 = nil
  112. Sound8.Name = "Spark"
  113. Sound8.Parent = mas
  114. Sound8.Pitch = 0.69999998807907
  115. Sound8.SoundId = "rbxassetid://912807549"
  116. Sound8.TimePosition = 1
  117. Sound8.Volume = 10
  118. Script9.Parent = Tool0
  119. table.insert(cors,sandbox(Script9,function()
  120. Tool = script.Parent
  121.  
  122. function onActivated()
  123. if Tool.Fire.Value == false then
  124. Tool.Effects.Fire.Enabled = true
  125. Tool.Effects.Flare.Enabled = true
  126. Tool.Effects.Light.Enabled = true
  127. Tool.Effects.SecondPlane.Enabled = true
  128. Spark()
  129. Tool.Fire.Value = true
  130. Tool.Enabled = false
  131. wait(0.25)
  132. Tool.Enabled = true
  133. else
  134. Tool.Effects.Fire.Enabled = false
  135. Tool.Effects.Flare.Enabled = false
  136. Tool.Effects.Light.Enabled = false
  137. Tool.Effects.SecondPlane.Enabled = false
  138. Tool.Fire.Value = false
  139. Tool.Enabled = false
  140. wait(2)
  141. Tool.Enabled = true
  142. end
  143. end
  144.  
  145. function Spark()
  146. Tool.Effects.Sparks.Enabled = true
  147. Tool.Handle.Spark:Play(10)
  148. wait(8)
  149. Tool.Effects.Sparks.Enabled = false
  150. end
  151.  
  152. function onUnequipped()
  153. Tool.Effects.Fire.Enabled = false
  154. Tool.Effects.Flare.Enabled = false
  155. Tool.Effects.Light.Enabled = false
  156. Tool.Effects.SecondPlane.Enabled = false
  157. Tool.Fire.Value = false
  158. end
  159.  
  160. script.Parent.Activated:connect(onActivated)
  161. script.Parent.Unequipped:connect(onUnequipped)
  162. end))
  163. BoolValue10.Name = "Fire"
  164. BoolValue10.Parent = Tool0
  165. for i,v in pairs(mas:GetChildren()) do
  166. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  167. pcall(function() v:MakeJoints() end)
  168. end
  169. mas:Destroy()
  170. for i,v in pairs(cors) do
  171. spawn(function()
  172. pcall(v)
  173. end)
  174. end
Add Comment
Please, Sign In to add comment