Advertisement
memberhero

ForceField

Apr 18th, 2018
8,647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 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. LocalScript0 = Instance.new("LocalScript")
  20. Part1 = Instance.new("Part")
  21. Script2 = Instance.new("Script")
  22. Part3 = Instance.new("Part")
  23. Script4 = Instance.new("Script")
  24. ParticleEmitter5 = Instance.new("ParticleEmitter")
  25. Part6 = Instance.new("Part")
  26. ParticleEmitter7 = Instance.new("ParticleEmitter")
  27. LocalScript0.Name = "2014Forcefield"
  28. LocalScript0.Parent = mas
  29. table.insert(cors,sandbox(LocalScript0,function()
  30. plr = game.Players.LocalPlayer
  31. char = workspace:WaitForChild(plr.Name)
  32. ForceFieldDuration = 10
  33.  
  34.  
  35. -- Welding the ForceField!
  36. forcefield = Instance.new("ForceField",char)
  37. forcefield.Visible = false
  38. forcefieldfolder = Instance.new("Folder",char)
  39. forcefieldfolder.Name = "Forcefield Folder"
  40. forcefield1 = script.ForceField1:Clone()
  41. forcefield1.Parent = forcefieldfolder
  42. forcefield1weld = Instance.new("ManualWeld",forcefield1)
  43. forcefield1weld.Part0 = forcefield1
  44. forcefield1weld.Part1 = char.Torso
  45. forcefield2 = script.ForceField2:Clone()
  46. forcefield2.Parent = forcefieldfolder
  47. forcefield2weld = Instance.new("ManualWeld",forcefield2)
  48. forcefield2weld.Part0 = forcefield2
  49. forcefield2weld.Part1 = char.Torso
  50. glow = script.Glow:Clone()
  51. glow.Parent = forcefieldfolder
  52. glowweld = Instance.new("ManualWeld",glow)
  53. glowweld.Part0 = glow
  54. glowweld.Part1 = char.Torso
  55. wait(ForceFieldDuration)
  56. forcefieldfolder:Destroy()
  57. forcefield:Destroy()
  58.  
  59.  
  60. end))
  61. Part1.Name = "ForceField1"
  62. Part1.Parent = LocalScript0
  63. Part1.Material = Enum.Material.SmoothPlastic
  64. Part1.BrickColor = BrickColor.new("Bright blue")
  65. Part1.Transparency = 0.5
  66. Part1.CanCollide = false
  67. Part1.FormFactor = Enum.FormFactor.Symmetric
  68. Part1.Shape = Enum.PartType.Ball
  69. Part1.Size = Vector3.new(6, 6, 6)
  70. Part1.CFrame = CFrame.new(-42.8700256, 4.80891705, 100.1101, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  71. Part1.BottomSurface = Enum.SurfaceType.Smooth
  72. Part1.TopSurface = Enum.SurfaceType.Smooth
  73. Part1.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  74. Part1.Position = Vector3.new(-42.8700256, 4.80891705, 100.1101)
  75. Part1.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  76. Script2.Parent = Part1
  77. table.insert(cors,sandbox(Script2,function()
  78. local Forcefield = script.Parent
  79. while true do
  80. wait(0.22)
  81. script.Parent.Transparency = 0.8
  82. wait(0.22)
  83. script.Parent.Transparency = 0.7
  84. wait(0.22)
  85. script.Parent.Transparency = 0.6
  86. wait(0.22)
  87. script.Parent.Transparency = 0.5
  88. wait(0.22)
  89. script.Parent.Transparency = 0.6
  90. wait(0.22)
  91. script.Parent.Transparency = 0.7
  92. wait(0.22)
  93. script.Parent.Transparency = 0.8
  94. wait(0.22)
  95. script.Parent.Transparency = 0.9
  96. wait(0.22)
  97.  
  98.  
  99. end
  100. end))
  101. Part3.Name = "ForceField2"
  102. Part3.Parent = LocalScript0
  103. Part3.Material = Enum.Material.SmoothPlastic
  104. Part3.BrickColor = BrickColor.new("Really blue")
  105. Part3.Transparency = 0.69999998807907
  106. Part3.CanCollide = false
  107. Part3.FormFactor = Enum.FormFactor.Symmetric
  108. Part3.Shape = Enum.PartType.Ball
  109. Part3.Size = Vector3.new(5.60000038, 5.60000038, 5.60000038)
  110. Part3.CFrame = CFrame.new(-42.8700256, 4.80891705, 100.1101, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  111. Part3.BottomSurface = Enum.SurfaceType.Smooth
  112. Part3.TopSurface = Enum.SurfaceType.Smooth
  113. Part3.Color = Color3.new(0, 0, 1)
  114. Part3.Position = Vector3.new(-42.8700256, 4.80891705, 100.1101)
  115. Part3.Color = Color3.new(0, 0, 1)
  116. Script4.Parent = Part3
  117. table.insert(cors,sandbox(Script4,function()
  118. local Forcefield = script.Parent
  119. while true do
  120. wait(0.24)
  121. script.Parent.Transparency = 0.6
  122. wait(0.23)
  123. script.Parent.Transparency = 0.7
  124. wait(0.23)
  125. script.Parent.Transparency = 0.8
  126. wait(0.23)
  127. script.Parent.Transparency = 0.9
  128. wait(0.23)
  129. script.Parent.Transparency = 0.8
  130. wait(0.23)
  131. script.Parent.Transparency = 0.7
  132. wait(0.23)
  133. script.Parent.Transparency = 0.6
  134. wait(0.23)
  135. script.Parent.Transparency = 0.5
  136. wait(0.23)
  137.  
  138.  
  139. end
  140. end))
  141. ParticleEmitter5.Parent = Part3
  142. ParticleEmitter5.Transparency = NumberSequence.new(0.03125,0.95625001192093)
  143. ParticleEmitter5.LightEmission = 1
  144. ParticleEmitter5.Texture = "http://www.roblox.com/asset/?id=408377922"
  145. ParticleEmitter5.Lifetime = NumberRange.new(2, 2)
  146. ParticleEmitter5.Rate = 15
  147. ParticleEmitter5.Speed = NumberRange.new(3, 3)
  148. Part6.Name = "Glow"
  149. Part6.Parent = LocalScript0
  150. Part6.Material = Enum.Material.SmoothPlastic
  151. Part6.BrickColor = BrickColor.new("Deep blue")
  152. Part6.Transparency = 1
  153. Part6.CanCollide = false
  154. Part6.FormFactor = Enum.FormFactor.Symmetric
  155. Part6.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  156. Part6.CFrame = CFrame.new(-42.8600159, 4.84891319, 100.080246, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  157. Part6.BottomSurface = Enum.SurfaceType.Smooth
  158. Part6.TopSurface = Enum.SurfaceType.Smooth
  159. Part6.Color = Color3.new(0.129412, 0.329412, 0.72549)
  160. Part6.Position = Vector3.new(-42.8600159, 4.84891319, 100.080246)
  161. Part6.Color = Color3.new(0.129412, 0.329412, 0.72549)
  162. ParticleEmitter7.Name = "Gow"
  163. ParticleEmitter7.Parent = Part6
  164. ParticleEmitter7.Transparency = NumberSequence.new(0.80000001192093,0.80000001192093)
  165. ParticleEmitter7.Size = NumberSequence.new(1.2041884660721,2.9842929840088,9)
  166. ParticleEmitter7.LightEmission = 1
  167. ParticleEmitter7.Texture = "http://www.roblox.com/asset/?id=408371873"
  168. ParticleEmitter7.Lifetime = NumberRange.new(4, 4)
  169. ParticleEmitter7.Rate = 1
  170. ParticleEmitter7.RotSpeed = NumberRange.new(50, 50)
  171. ParticleEmitter7.Speed = NumberRange.new(0, 0)
  172. for i,v in pairs(mas:GetChildren()) do
  173. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  174. pcall(function() v:MakeJoints() end)
  175. end
  176. mas:Destroy()
  177. for i,v in pairs(cors) do
  178. spawn(function()
  179. pcall(v)
  180. end)
  181. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement