Hi!
As the title says, I made a AoE bubble that keeps shrinking even though I want It to grow, Im trying to make a Laugh attack where when you laugh, It makes a bubble which damages players and slows them down (Will soon make them be Insane)
Script:
local Tool = script.Parent
local Character = Tool.Parent
local Debounce = false
local Laughter = Tool.Laugh
local TweenService = game:GetService("TweenService")
Tool.Activated:Connect(function()
if not Debounce then
Debounce = true
Character.LaughSounds.Laugh1:Play()
local LaughingAnimation = Character.Humanoid:FindFirstChild("Animator"):LoadAnimation(Laughter)
LaughingAnimation:Play()
wait(0.30)
local LaughBubble = Instance.new("Part",game.Workspace)
LaughBubble.Position = Character.Head.Position
LaughBubble.Anchored = true
LaughBubble.CanCollide = false
LaughBubble.CastShadow = false
LaughBubble.Material = Enum.Material.ForceField
LaughBubble.BrickColor = BrickColor.new("Maroon")
LaughBubble.Size = Vector3.new(1,1,1)
LaughBubble.Shape = Enum.PartType.Ball
game:GetService("Debris"):AddItem(LaughBubble,1)
local SmoothCreateLaughBubbleBigThingyLol = {
Transparency = 1,
Size = Vector3.new(0,10,0)
}
local InfoThing = TweenInfo.new(
2,
Enum.EasingStyle.Elastic,
Enum.EasingDirection.In,
0,
false,
0
)
local PartTween = TweenService:Create(LaughBubble, InfoThing, SmoothCreateLaughBubbleBigThingyLol)
PartTween:Play()
LaughBubble.Touched:Connect(function(hit)
local Humanoid = hit.Parent:WaitForChild("Humanoid")
if Humanoid ~= Character.Humanoid then
Humanoid:TakeDamage(30)
Humanoid.WalkSpeed = 8
wait(2.8)
Humanoid.WalkSpeed = 16
end
end)
wait(5)
Debounce = false
end
end)
