FrozenScript

8xsp's Wild Revolvers Fun Script

Nov 15th, 2019
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. -- Made with ❤️ by 8xsp (FrozenScript on Pastebin) --
  2. -- A script for the game Wild Revolvers on Roblox --
  3.  
  4. -- Update 1: Fixed all animations | Note: Please don't touch anything below --
  5.  
  6. Name.Name = "Name"
  7. Name.Parent = Move
  8. Name.BackgroundColor3 = Color3.new(0.545098, 0, 0)
  9. Name.BackgroundTransparency = 1
  10. Name.Position = UDim2.new(0, 25, 20.9860001, 0)
  11. Name.Size = UDim2.new(0.838, 0, 1.27999997, 0)
  12. Name.Font = Enum.Font.Arcade
  13. Name.Text = "8XSP'S WILD REVOLVERS FUN SCRIPT IS NOW ACTIVE!"
  14. Name.TextColor3 = Color3.new(0.541176, 0.168627, 0.886275)
  15. Name.TextScaled = true
  16. Name.TextSize = 12
  17. Name.TextWrapped = true
  18.  
  19. local Player = game.Players.LocalPlayer;
  20. local Mouse = Player:GetMouse();
  21. local MaxRange = 300;
  22. local Hotkey = Enum.KeyCode.X;
  23. local UIS = game:GetService'UserInputService';
  24. local auto = true;
  25.  
  26. function Shoot()
  27. local MyHMR = Player.Character and Player.Character.PrimaryPart;
  28. local MyData = workspace.PlayerData:FindFirstChild(Player.Name);
  29. local IsSameTeam = (MyHMR and MyHMR.Parent:FindFirstChild'CowboyHat' and true) or false;
  30. if MyHMR and MyData then
  31. for i,v in pairs(game.Players:GetPlayers()) do
  32. local HMR = v and v.Character and v.Character.PrimaryPart;
  33. local Data = workspace.PlayerData:FindFirstChild(v.Name);
  34. local Hum = HMR and v.Character:FindFirstChild'Humanoid';
  35. local Head = Hum and v.Character:FindFirstChild'Head';
  36.  
  37. if Head and Hum.Health > 0 and not (((HMR.Parent:FindFirstChild'CowboyHat' and true) or false) == IsSameTeam) then
  38. local Found = false;
  39. for ii,targ in pairs({HMR, Head}) do
  40. if not Found then
  41. local R = Ray.new(MyHMR.Position, (targ.Position-MyHMR.Position).unit*MaxRange);
  42. local P, Pos = workspace:FindPartOnRay(R, Player.Character);
  43. local p = Instance.new('Part', Player.Character);
  44. p.Anchored = true;
  45. p.Material = Enum.Material.Neon;
  46. p.CanCollide = false;
  47. p.Transparency = .5;
  48. local dist = (MyHMR.Position-Pos).magnitude;
  49. p.Size = Vector3.new(.1,.1,dist);
  50. p.CFrame = CFrame.new(MyHMR.Position, Pos)*CFrame.new(0,0,-dist/2);
  51. game:GetService('Debris'):AddItem(p, .1)
  52. if P and P:isDescendantOf(HMR.Parent) then
  53. Hum.Health = 0;
  54. local Info = {};
  55. Info.Start = MyHMR.Position;
  56. Info.HitPart = targ;
  57. Info.HitPosition = targ.Position;
  58. game.ReplicatedStorage.Events.GunFired:FireServer(Info);
  59. warn('Hit '..v.Name);
  60. Found = true;
  61. delay(1, function()
  62. if Hum and Hum.Parent then
  63. Hum.Health = 100
  64. end
  65. end)
  66. p.Color = Color3.new(0,1,0);
  67. else
  68. p.Color = Color3.new(1,0,0);
  69. end
  70. end
  71. end
  72. end
  73. end
  74. end
  75. end
  76. UIS.InputBegan:Connect(function(Key, GPE)
  77. if Key.KeyCode == Hotkey then
  78. Shoot();
  79. end
  80. end)
  81. spawn(function()
  82. while auto and wait(.1) do
  83. print'Shooting...';
  84. Shoot();
  85. end
  86. end)
  87. warn('Loaded 8xsp's Wild Revolvers Fun Script')
Advertisement
Add Comment
Please, Sign In to add comment