idkwhatiam

youngmacka123's airhorn

Apr 5th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. local plr = owner
  2. local char = plr.Character
  3. local airhorn = Instance.new("Part")
  4. airhorn.Size = Vector3.new(0, 2, 1)
  5. airhorn.Transparency = 1
  6. airhorn.Parent = char
  7. airhorn.Name = "airhorn"
  8. airhorn.Anchored = false
  9. airhorn.CanCollide = true
  10. airhorn.Position = char["Right Arm"].Position - Vector3.new(0.3, 2.5, 0)
  11. local texture1 = Instance.new("Decal")
  12. texture1.Texture = "rbxassetid://176775644"
  13. texture1.Parent = airhorn
  14. texture1.Face = "Left"
  15. local texture2 = Instance.new("Decal")
  16. texture2.Texture = "rbxassetid://176775644"
  17. texture2.Parent = airhorn
  18. texture2.Face = "Right"
  19. local weld = Instance.new("Weld")
  20. weld.Parent = airhorn
  21. weld.Part0 = airhorn
  22. weld.Part1 = char["Right Arm"]
  23. char["Right Arm"].Transparency = 1
  24. local ScreenGui = Instance.new("ScreenGui")
  25. local noise = Instance.new("TextButton")
  26. ScreenGui.Parent = plr.PlayerGui
  27. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28.  
  29. noise.Name = "noise"
  30. noise.Parent = ScreenGui
  31. noise.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  32. noise.BackgroundTransparency = 0.30000001192093
  33. noise.BorderColor3 = Color3.new(0, 0, 0)
  34. noise.BorderSizePixel = 3
  35. noise.Position = UDim2.new(0.210732982, 0, 0.814393938, 0)
  36. noise.Size = UDim2.new(0, 415, 0, 98)
  37. noise.Font = Enum.Font.SourceSans
  38. noise.Text = "sound"
  39. noise.TextColor3 = Color3.new(0, 0, 0)
  40. noise.TextScaled = true
  41. noise.TextSize = 14
  42. noise.TextWrapped = true
  43. noise.MouseButton1Click:Connect(function()
  44. local sound = Instance.new("Sound")
  45. sound.Parent = airhorn
  46. sound.Playing = true
  47. sound.MaxDistance = 50
  48. sound.EmitterSize = 50
  49. sound.Volume = 500
  50. sound.SoundId = "rbxassetid://190236369"
  51. local bullet = Instance.new("Part")
  52. bullet.Parent = airhorn
  53. bullet.Shape = "Ball"
  54. bullet.Material = "Neon"
  55. bullet.BrickColor = BrickColor.new("Really red")
  56. bullet.Transparency = 0.7
  57. bullet.Position = airhorn.Position
  58. bullet.Anchored = true
  59. bullet.CanCollide = false
  60. wait(0.12)
  61. bullet.Transparency = 0.5
  62. wait(0.12)
  63. bullet.Transparency = 0.2
  64. wait(0.12)
  65. bullet.Transparency = 0.5
  66. wait(0.12)
  67. bullet.Transparency = 0.7
  68. wait(0.12)
  69. bullet:Destroy()
  70. wait(5)
  71. sound:Destroy()
  72. end)
Add Comment
Please, Sign In to add comment