lolita5432

air horn

Dec 17th, 2017
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Model0 = Instance.new("Model")
  19. Tool1 = Instance.new("Tool")
  20. Part2 = Instance.new("Part")
  21. Sound3 = Instance.new("Sound")
  22. CylinderMesh4 = Instance.new("CylinderMesh")
  23. Decal5 = Instance.new("Decal")
  24. Script6 = Instance.new("Script")
  25. Part7 = Instance.new("Part")
  26. Sound8 = Instance.new("Sound")
  27. CylinderMesh9 = Instance.new("CylinderMesh")
  28. Part10 = Instance.new("Part")
  29. SpecialMesh11 = Instance.new("SpecialMesh")
  30. Script12 = Instance.new("Script")
  31. Model0.Parent = mas
  32. Tool1.Name = "AirHorn"
  33. Tool1.Parent = Model0
  34. Tool1.TextureId = "http://www.roblox.com/asset/?id=179012130"
  35. Tool1.ToolTip = "Fixed by BinaryReallyRed."
  36. Part2.Name = "Handle"
  37. Part2.Parent = Tool1
  38. Part2.Material = Enum.Material.SmoothPlastic
  39. Part2.BrickColor = BrickColor.new("Institutional white")
  40. Part2.Rotation = Vector3.new(-180, 0, -180)
  41. Part2.FormFactor = Enum.FormFactor.Custom
  42. Part2.Size = Vector3.new(1, 1, 1)
  43. Part2.CFrame = CFrame.new(-8.6999979, 0.500009, -37.1000023, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  44. Part2.BottomSurface = Enum.SurfaceType.Smooth
  45. Part2.TopSurface = Enum.SurfaceType.Smooth
  46. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  47. Part2.Position = Vector3.new(-8.6999979, 0.500009, -37.1000023)
  48. Part2.Orientation = Vector3.new(0, 180, 0)
  49. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  50. Sound3.Parent = Part2
  51. Sound3.SoundId = "http://www.roblox.com/asset/?id=170037553"
  52. Sound3.Volume = 1
  53. CylinderMesh4.Parent = Part2
  54. CylinderMesh4.Scale = Vector3.new(0.899999976, 1.20000005, 0.899999976)
  55. CylinderMesh4.Scale = Vector3.new(0.899999976, 1.20000005, 0.899999976)
  56. Decal5.Parent = Part2
  57. Decal5.Texture = "http://www.roblox.com/asset/?id=179012130"
  58. Script6.Parent = Tool1
  59. table.insert(cors,sandbox(Script6,function()
  60. local Tool = script.Parent;
  61.  
  62. enabled = true
  63.  
  64. function onActivated()
  65. if not enabled then
  66. return
  67. end
  68.  
  69. Tool.Handle.Sound:Play()
  70.  
  71. wait(.2)
  72.  
  73. end
  74.  
  75. function onEquipped()
  76. end
  77.  
  78. script.Parent.Activated:connect(onActivated)
  79. script.Parent.Equipped:connect(onEquipped)
  80.  
  81. end))
  82. Part7.Parent = Tool1
  83. Part7.Material = Enum.Material.SmoothPlastic
  84. Part7.BrickColor = BrickColor.new("Really red")
  85. Part7.Rotation = Vector3.new(-180, 0, -180)
  86. Part7.FormFactor = Enum.FormFactor.Custom
  87. Part7.Size = Vector3.new(0.600000024, 0.400000036, 0.600000024)
  88. Part7.CFrame = CFrame.new(-8.6999979, 1.20000994, -37.1000023, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  89. Part7.BottomSurface = Enum.SurfaceType.Smooth
  90. Part7.TopSurface = Enum.SurfaceType.Smooth
  91. Part7.Color = Color3.new(1, 0, 0)
  92. Part7.Position = Vector3.new(-8.6999979, 1.20000994, -37.1000023)
  93. Part7.Orientation = Vector3.new(0, 180, 0)
  94. Part7.Color = Color3.new(1, 0, 0)
  95. Sound8.Parent = Part7
  96. Sound8.SoundId = "http://www.roblox.com/asset/?id=170037553"
  97. Sound8.Volume = 1
  98. CylinderMesh9.Parent = Part7
  99. CylinderMesh9.Scale = Vector3.new(0.899999976, 1.20000005, 0.899999976)
  100. CylinderMesh9.Scale = Vector3.new(0.899999976, 1.20000005, 0.899999976)
  101. Part10.Parent = Tool1
  102. Part10.Material = Enum.Material.SmoothPlastic
  103. Part10.BrickColor = BrickColor.new("Really red")
  104. Part10.Rotation = Vector3.new(-90, 90, 0)
  105. Part10.FormFactor = Enum.FormFactor.Custom
  106. Part10.Size = Vector3.new(0.600000024, 0.600000024, 1)
  107. Part10.CFrame = CFrame.new(-8.6999979, 1.30000806, -37.1000023, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  108. Part10.Color = Color3.new(1, 0, 0)
  109. Part10.Position = Vector3.new(-8.6999979, 1.30000806, -37.1000023)
  110. Part10.Orientation = Vector3.new(0, 90, -90)
  111. Part10.Color = Color3.new(1, 0, 0)
  112. SpecialMesh11.Parent = Part10
  113. SpecialMesh11.MeshId = "http://www.roblox.com/asset/?id=29086478"
  114. SpecialMesh11.Scale = Vector3.new(0.800000012, 0.349999994, 0.800000012)
  115. SpecialMesh11.TextureId = "http://www.roblox.com/asset/?id=29086192"
  116. SpecialMesh11.VertexColor = Vector3.new(1, 0, 0)
  117. SpecialMesh11.MeshType = Enum.MeshType.FileMesh
  118. SpecialMesh11.Scale = Vector3.new(0.800000012, 0.349999994, 0.800000012)
  119. Script12.Name = "InstaWeld"
  120. Script12.Parent = Tool1
  121. table.insert(cors,sandbox(Script12,function()
  122. local prev
  123. local parts = script.Parent:GetChildren()
  124.  
  125. for i = 1,#parts do
  126. if (parts[i].className == "Part") then
  127. if (prev ~= nil)then
  128. local weld = Instance.new("Weld")
  129. weld.Part0 = prev
  130. weld.Part1 = parts[i]
  131. weld.C0 = prev.CFrame:inverse()
  132. weld.C1 = parts[i].CFrame:inverse()
  133. weld.Parent = prev
  134. end
  135. prev = parts[i]
  136. end
  137. end
  138.  
  139. end))
  140. for i,v in pairs(mas:GetChildren()) do
  141. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  142. pcall(function() v:MakeJoints() end)
  143. end
  144. mas:Destroy()
  145. for i,v in pairs(cors) do
  146. spawn(function()
  147. pcall(v)
  148. end)
  149. end
Add Comment
Please, Sign In to add comment