Advertisement
vtrvsted

Fe

Aug 16th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | None | 0 0
  1. local gsPlayers = game:FindService("Players") or game:GetService("Players")
  2. local ME = gsPlayers.LocalPlayer
  3. local BangGUI = Instance.new("ScreenGui", game:GetService("CoreGui"))
  4. local MainGui = Instance.new("Frame", BangGUI)
  5. local Title = Instance.new("Frame", Title)
  6. local TitleLABEL = Instance.new("TextLabel")
  7. local Player = Instance.new("TextBox", MainGui)
  8. local Bang = Instance.new("TextButton", MainGui)
  9. local Unbang = Instance.new("TextButton", MainGui)
  10. if type(syn.protect_gui) == "function" then
  11. pcall(syn.protect_gui, BangGUI)
  12. end
  13. BangGUI.Name = "BangGUI"
  14. MainGui.Name = "MainGui"
  15. MainGui.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  16. MainGui.BorderColor3 = Color3.fromRGB(0, 0, 0)
  17. MainGui.BorderSizePixel = 2
  18. MainGui.Position = UDim2.new(.420274556, 0, .424242437, 0)
  19. MainGui.Size = UDim2.new(0, 150, 0, 100)
  20. MainGui.Draggable = true
  21. MainGui.Active = true
  22. Title.Name = "Title"
  23. Title.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  24. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  25. Title.BorderSizePixel = 2
  26. Title.Size = UDim2.new(0, 150, 0, 25)
  27. TitleLABEL.Name = "TitleLABEL"
  28. TitleLABEL.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  29. TitleLABEL.BorderColor3 = Color3.fromRGB(0, 0, 0)
  30. TitleLABEL.BorderSizePixel = 2
  31. TitleLABEL.Size = UDim2.new(0, 150, 0, 25)
  32. TitleLABEL.Font = Enum.Font.Cartoon
  33. TitleLABEL.Text = "Bang Gui"
  34. TitleLABEL.TextColor3 = Color3.fromRGB(0, 0, 0)
  35. TitleLABEL.TextScaled = true
  36. TitleLABEL.TextSize = 14
  37. TitleLABEL.TextWrapped = true
  38. Player.Name = "Player"
  39. Player.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  40. Player.BorderColor3 = Color3.fromRGB(0, 0, 0)
  41. Player.Position = UDim2.new(.100000001, 0, .370000005, 0)
  42. Player.Size = UDim2.new(0, 120, 0, 25)
  43. Player.Font = Enum.Font.Cartoon
  44. Player.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
  45. Player.PlaceholderText = "Player"
  46. Player.Text = ""
  47. Player.TextColor3 = Color3.fromRGB(0, 0, 0)
  48. Player.TextSize = 16
  49. Player.TextWrapped = true
  50. Bang.Name = "Bang"
  51. Bang.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  52. Bang.BorderColor3 = Color3.fromRGB(0, 0, 0)
  53. Bang.Position = UDim2.new(.100000001, 0, .699999988, 0)
  54. Bang.Size = UDim2.new(0, 56, 0, 23)
  55. Bang.Font = Enum.Font.Cartoon
  56. Bang.Text = "Bang"
  57. Bang.TextColor3 = Color3.fromRGB(0, 0, 0)
  58. Bang.TextSize = 15
  59. Bang.TextWrapped = true
  60. Unbang.Name = "Unbang"
  61. Unbang.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  62. Unbang.BorderColor3 = Color3.fromRGB(0, 0, 0)
  63. Unbang.Position = UDim2.new(.526666701, 0, .699999988, 0)
  64. Unbang.Size = UDim2.new(0, 56, 0, 23)
  65. Unbang.Font = Enum.Font.Cartoon
  66. Unbang.Text = "Unbang"
  67. Unbang.TextColor3 = Color3.fromRGB(0, 0, 0)
  68. Unbang.TextSize = 15
  69. Unbang.TextWrapped = true
  70. local function FindPlayer(loser)
  71. local plr = {}
  72. for _, v in pairs(gsPlayers:GetPlayers()) do
  73. if v.Name:lower():sub(1, #loser) == loser:lower() then
  74. table.insert(plr, gsPlayers[v.Name])
  75. end
  76. end
  77. return plr
  78. end
  79. pcall(game:GetService("RunService").RenderStepped:Connect(function()
  80. if banging then
  81. if n.Character:FindFirstChildOfClass("Humanoid") then
  82. workspace.CurrentCamera.CameraSubject = n.Character:FindFirstChildOfClass("Humanoid")
  83. elseif n.Character:FindFirstChild("Head") then
  84. workspace.CurrentCamera.CameraSubject = n.Character:FindFirstChild("Head")
  85. end
  86. if n.Character:FindFirstChild("HumanoidRootPart") and n.Character:FindFirstChildOfClass("Humanoid") then
  87. ME.Character.HumanoidRootPart.CFrame = n.Character.HumanoidRootPart.CFrame + n.Character.HumanoidRootPart.CFrame.lookVector * -1.03
  88. end
  89. ME.Character:FindFirstChildOfClass("Humanoid"):ChangeState(11)
  90. end
  91. end))
  92. pcall(Bang.MouseButton1Click:Connect(function()
  93. if ME.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  94. game:GetService("StarterGui"):SetCore("SendNotification", {
  95. Title = "Error!",
  96. Text = "This will only work for R6."
  97. })
  98. else
  99. for _, v in pairs(FindPlayer(string.sub(msg, 7))) do
  100. banging = true
  101. bangAnimation = Instance.new("Animation")
  102. bangAnimation.AnimationId = "rbxassetid://148840371"
  103. bangTrack = ME.Character:FindFirstChildOfClass("Humanoid"):LoadAnimation(bangAnimation)
  104. bangTrack:Play(.1, 1, 5)
  105. n = v
  106. end
  107. end
  108. end))
  109. pcall(Unbang.MouseButton1Click:Connect(function()
  110. banging = false
  111. bangTrack:Stop()
  112. bangTrack:Destroy()
  113. bangAnimation:Destroy()
  114. if ME.Character:FindFirstChildOfClass("Humanoid") then
  115. workspace.CurrentCamera.CameraSubject = ME.Character:FindFirstChildOfClass("Humanoid")
  116. elseif ME.Character:FindFirstChild("Head") then
  117. workspace.CurrentCamera.CameraSubject = ME.Character:FindFirstChild("Head")
  118. end
  119. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement