Alright I know that the title is kind of confusing so I'll explain it here instead.
I'm making an hostile NPC that attacks player, I've already figured out the pathfinding but now I want it so that after a certain amount of time it would release like a shockwave and then damage players that is inside the shockwave ball. I know that I have to use TweenService for this but I'm fairly new to TweenService and after reading the official article and looking up a few tutorials, I am still really confused.
Short version: How do I use TweenService to resize a sphere part?
If you want to tween an object, you will need : a goal, tweeninfo and an instance
Syntax
local TweenService = game:GetService("TweenService") --The ball you want to tween local ball = --Tweening local tweeninfo = TweenInfo.new(length of tween) local goal = {} goal.Size = Vector3.new(x,y,z) local tween = TweenService:Create(ball, tweeninfo, goal) tween:Play()
Hope it helps!