Advertisement
Destroyer_again2

Pray edited by coldas

Mar 2nd, 2019
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. local tool = Instance.new("Tool");
  2. local handle = Instance.new("Part", tool);
  3.  
  4. local client = Instance.new("LocalScript", tool);
  5. client.Name = "Client";
  6. local server = Instance.new("Script", tool);
  7. server.Name = "Server";
  8. local config = Instance.new("Configuration", tool);
  9.  
  10. Instance.new("RemoteEvent", tool);
  11.  
  12. local radius = Instance.new("IntValue", config);
  13. radius.Name = "BlastRadius";
  14. radius.Value = 10;
  15.  
  16. local pressure = Instance.new("IntValue", config);
  17. pressure.Name = "BlastPressure";
  18. pressure.Value = 500000;
  19.  
  20. local destroyjoints = Instance.new("BoolValue", config);
  21. destroyjoints.Name = "DestroyJointsBoolean";
  22. destroyjoints.Value = false;
  23.  
  24.  
  25. tool.Name = "Pray";
  26. tool.Parent = game.StarterPack;
  27.  
  28. handle.Name = "Handle";
  29. handle.Size = Vector3.new(1, 1, 1);
  30. handle.TopSurface = "Smooth";
  31. handle.BottomSurface = "Smooth";
  32.  
  33. client.Source = [[
  34. wait()
  35. local tool = script.Parent;
  36. local event = tool:FindFirstChildOfClass("RemoteEvent");
  37.  
  38. local player = game:GetService("Players").LocalPlayer;
  39. local mouse = player:GetMouse();
  40.  
  41. local onActivate = function()
  42. local pos = mouse.Hit.p;
  43. event:FireServer(pos);
  44. end;
  45.  
  46. tool.Activated:Connect(onActivate)
  47. ]];
  48.  
  49. server.Source = [[
  50. local tool = script.Parent;
  51. local event = tool:FindFirstChildOfClass("RemoteEvent");
  52. local configuration = tool:FindFirstChildOfClass("Configuration");
  53.  
  54. local radius = configuration:FindFirstChild("BlastRadius");
  55. local pressure = configuration:FindFirstChild("BlastPressure");
  56. local destroyjoints = configuration:FindFirstChild("DestroyJointsBoolean");
  57.  
  58. local players = game:GetService("Players");
  59.  
  60. local onEvent = function(player, position)
  61. local explosion = Instance.new("Explosion", workspace);
  62. explosion.Position = position;
  63. explosion.BlastRadius = radius.Value;
  64. explosion.BlastPressure = pressure.Value;
  65.  
  66. if (destroyjoints.Value) then
  67. explosion.DestroyJointRadiusPercent = 1;
  68. else
  69. explosion.DestroyJointRadiusPercent = 0;
  70. end;
  71.  
  72. local onHit = function(hit)
  73. local character = hit.Parent;
  74. if (character:FindFirstChild("Humanoid")) and not character:FindFirstChildOfClass("ForceField") and players:GetPlayerFromCharacter(character) ~= player then
  75. character:BreakJoints();
  76. end;
  77. end;
  78.  
  79. explosion.Hit:Connect(onHit)
  80. end;
  81. local speak = {"PRAISE ALLAH 666 TIMES A DAY ALLAHUAKBAR"}
  82. local colors = {"Green","Green","Green"} -- The only 3 colors, adding more will error.
  83. local chat = game:GetService("Chat")
  84. chat:Chat(Head,speak[math.random(1,#speak)], colors[math.random(1,3)] )
  85.  
  86. event.OnServerEvent:Connect(onEvent);
  87. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement