Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = Instance.new("Tool");
- local handle = Instance.new("Part", tool);
- local client = Instance.new("LocalScript", tool);
- client.Name = "Client";
- local server = Instance.new("Script", tool);
- server.Name = "Server";
- local config = Instance.new("Configuration", tool);
- Instance.new("RemoteEvent", tool);
- local radius = Instance.new("IntValue", config);
- radius.Name = "BlastRadius";
- radius.Value = 10;
- local pressure = Instance.new("IntValue", config);
- pressure.Name = "BlastPressure";
- pressure.Value = 500000;
- local destroyjoints = Instance.new("BoolValue", config);
- destroyjoints.Name = "DestroyJointsBoolean";
- destroyjoints.Value = false;
- tool.Name = "Pray";
- tool.Parent = game.StarterPack;
- handle.Name = "Handle";
- handle.Size = Vector3.new(1, 1, 1);
- handle.TopSurface = "Smooth";
- handle.BottomSurface = "Smooth";
- client.Source = [[
- wait()
- local tool = script.Parent;
- local event = tool:FindFirstChildOfClass("RemoteEvent");
- local player = game:GetService("Players").LocalPlayer;
- local mouse = player:GetMouse();
- local onActivate = function()
- local pos = mouse.Hit.p;
- event:FireServer(pos);
- end;
- tool.Activated:Connect(onActivate)
- ]];
- server.Source = [[
- local tool = script.Parent;
- local event = tool:FindFirstChildOfClass("RemoteEvent");
- local configuration = tool:FindFirstChildOfClass("Configuration");
- local radius = configuration:FindFirstChild("BlastRadius");
- local pressure = configuration:FindFirstChild("BlastPressure");
- local destroyjoints = configuration:FindFirstChild("DestroyJointsBoolean");
- local players = game:GetService("Players");
- local onEvent = function(player, position)
- local explosion = Instance.new("Explosion", workspace);
- explosion.Position = position;
- explosion.BlastRadius = radius.Value;
- explosion.BlastPressure = pressure.Value;
- if (destroyjoints.Value) then
- explosion.DestroyJointRadiusPercent = 1;
- else
- explosion.DestroyJointRadiusPercent = 0;
- end;
- local onHit = function(hit)
- local character = hit.Parent;
- if (character:FindFirstChild("Humanoid")) and not character:FindFirstChildOfClass("ForceField") and players:GetPlayerFromCharacter(character) ~= player then
- character:BreakJoints();
- end;
- end;
- explosion.Hit:Connect(onHit)
- end;
- local speak = {"PRAISE ALLAH 666 TIMES A DAY ALLAHUAKBAR"}
- local colors = {"Green","Green","Green"} -- The only 3 colors, adding more will error.
- local chat = game:GetService("Chat")
- chat:Chat(Head,speak[math.random(1,#speak)], colors[math.random(1,3)] )
- event.OnServerEvent:Connect(onEvent);
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement