Magu Hound Effects

Hey i have been trying to make a magma hound like gpo. I have no idea how I should code the trial

-Gpo : https://gyazo.com/5978b39e5038927c037d8128ce2f993b

-Me: https://gyazo.com/84c12efa511a4915987283c24f49719b

My code

	
		for i = 5,1,-.5  do
			wait(.05)
			if i ~= 5 then
				Distance += 2
			else
				Distance = 0
			end
			
			local MagmaTrail = script.HoundTrail:Clone()
			MagmaTrail.Parent = Move
			MagmaTrail.CFrame = Magu.CFrame * CFrame.new(0,0,Distance)
			MagmaTrail.Size = Vector3.new(i,i,i)
			game.Debris:AddItem(MagmaTrail,4.5)
			

			local weld = Instance.new("ManualWeld")
			weld.Part0 = MagmaTrail
			weld.Part1 = Magu
			weld.C0 = weld.Part0.CFrame:ToObjectSpace(weld.Part1.CFrame)
			weld.Parent = weld.Part0
			

			
			
			task.delay(4,function()
				local Tween = TweenService:Create(MagmaTrail,TweenInfo.new(.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out,0,false,0), {["Size"] = Vector3.new(0, 0, 0)})
				Tween:Play()
			end)

		end

2 Likes

The trail parts aren’t done quite right, try to add a slower tween, I believe they use a Ranged Weapon module as well for it. Edit: Good try though!

2 Likes

i’ve tried recreating the effect shown in the gif, this is the result:
58vrcI

Module Script:

return {
	playeffect = function(cf:CFrame)
		local rng = Random.new(math.random(1,120)):NextNumber(5,9)
		local rngrot = Random.new(math.random(1,120))
		local ball = script.ball:Clone() --the ball effect
		ball.CFrame = cf*CFrame.Angles(0,math.rad(math.random(-180,180)),0)
		ball.Size = Vector3.new()
		ball.Parent = workspace
		game.TweenService:Create(ball,TweenInfo.new(0.3,Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{
			Size= Vector3.new(rng,rng,rng)
		})
		game.TweenService:Create(ball,TweenInfo.new(1,Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{
			CFrame=ball.CFrame*CFrame.Angles(rngrot:NextNumber(-180,180),rngrot:NextNumber(-180,180),rngrot:NextNumber(-180,180))
		}):Play()
		task.wait(.3)
		game.TweenService:Create(ball,TweenInfo.new(0.5,Enum.EasingStyle.Exponential,Enum.EasingDirection.In),{
			Size =Vector3.new()
		}):Play()
		game.Debris:AddItem(ball,0.5)
	end,
}


localscript:

cf=CFrame.new(0,20,0)
for i = 1,30 do 
	task.spawn(function()
		require(game.ReplicatedStorage.TestEffect).playeffect(cf*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)))
	end) 
	task.wait() 
	cf=cf*CFrame.new(0,0,-2.5) 
end
1 Like

I love you your the best ty alottttt