Skip to content

Commit

Permalink
edit Trigger.Function
Browse files Browse the repository at this point in the history
  • Loading branch information
Expertcoderz authored Dec 12, 2021
1 parent 6e57ce1 commit 6c48505
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions MainModule/Server/Commands/Fun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -236,32 +236,33 @@ return function(Vargs, env)
AdminLevel = "Moderators";
Function = function(plr: Player, args: {string})
for _, v: Player in pairs(service.GetPlayers(plr, args[1])) do
local char = v.Character
local head = char and char:FindFirstChild("Head")
if head then
local o1 = service.New("Sound", head)
o1.SoundId = "rbxassetid://429400881"
o1:Play()
o1 = service.New("Sound", head)
o1.Volume = 3
o1.SoundId = "rbxassetid://606862847"
o1:Play()
head.face.Texture = "rbxassetid://412416747"
head.BrickColor = BrickColor.new("Maroon")
for i=1, 10 do
task.wait(0.1)
head.Size *= 1.3
task.defer(function()
local char = v.Character
local head = char and char:FindFirstChild("Head")
if head then
service.New("Sound", {Parent = head; SoundId = "rbxassetid://429400881";}):Play()
service.New("Sound", {Parent = head; Volume = 3; SoundId = "rbxassetid://606862847";}):Play()
local face = head:FindFirstChild("face")
if face then face.Texture = "rbxassetid://412416747" end
head.BrickColor = BrickColor.new("Maroon")
for i = 1, 10 do
task.wait(0.1)
head.Size *= 1.3
end
local g = service.New("Explosion", {
Parent = char;
Position = head.Position;
BlastRadius = 5;
BlastPressure = 100_000;
})
service.New("Sound", {
Parent = char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso");
SoundId = "rbxassetid://165969964";
Volume = 10;
}):Play()
head:Destroy()
end
local g = service.New("Explosion", char)
g.Position = head.Position
g.BlastRadius = 5
g.BlastPressure = 100_000
local PS33 = service.New("Sound", char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso"))
PS33.SoundId = "rbxassetid://165969964"
PS33.Volume = 10
PS33:Play()
head:Destroy()
end
end)
end
end
};
Expand Down

0 comments on commit 6c48505

Please sign in to comment.