You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to make a laser that’ll stop at a wall, and I really need to use Raycasting for it, and I’d like the laser to be tweened, too, the part I need help on is tweening the laser’s size to be from the origin all the way to the wall it hits.
Example of what I want it to do:

-
What is the issue? Include screenshots / videos if possible!
I have tried tons of attempts yet none of them have worked, each time it usually never gets the size tweening correctly, can anyone give me a script example? -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have probably done about 10 google searches at least, and looked at 5 different posts on Dev Forum, but they don’t have size tweening.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local TS = game:GetService("TweenService")
local Part = script.Parent.Part
local PartStart = script.Parent.PartStart
local Time = 0.3
local TSInfo = TweenInfo.new(
Time,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
false
)
local Params = RaycastParams.new()
Params.FilterDescendantsInstances = {script.Parent}
Params.FilterType = Enum.RaycastFilterType.Blacklist
local Result = workspace:Raycast(Part.Position,Part.CFrame.LookVector * 100, Params)
if Result then
local AnimationA = TS:Create(Part,TSInfo, {CFrame = CFrame.new(Result.Position)}) -- Need to find a way to tween the Size from where the Part started to the Raycast Result.
AnimationA:Play()
print("Result")
else
local AnimationB = TS:Create(Part, TSInfo, {CFrame = script.Parent.PartEnd.CFrame; Size = script.Parent.PartEnd.Size})
AnimationB:Play()
print("No Result")
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.