local TS = game:GetService("TweenService")
local part1 = script.Parent.Part1
local part2 = script.Parent.Part2
local part3 = script.Parent.Part3
local part4 = script.Parent.Part4
local part5 = script.Parent.Part5
local cylinder = script.Parent.Cylinder
local TSInfo = TweenInfo.new(
.7,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0
)
local goal1 = {}
local goal2 = {}
local goal3 = {}
local goal4 = {}
local goal5 = {}
local goalc = {}
goal1.Position = Vector3.new(84.665, 0.025, -108.861)
goal2.Position = Vector3.new(83.189, 0.025, -108.381)
goal3.Position = Vector3.new(85.577, 0.025, -107.606)
goal4.Position = Vector3.new(83.188, 0.025, -106.83)
goal5.Position = Vector3.new(84.664, 0.025, -106.351)
goal1.Size = Vector3.new(2.244, 0.05, 0.449)
goal2.Size = Vector3.new(2.244, 0.05, 0.449)
goal3.Size = Vector3.new(2.244, 0.05, 0.449)
goal4.Size = Vector3.new(2.244, 0.05, 0.449)
goal5.Size = Vector3.new(2.244, 0.05, 0.449)
goal1.Color = Color3.fromRGB(255, 255, 255)
goal2.Color = Color3.fromRGB(255, 255, 255)
goal3.Color = Color3.fromRGB(255, 255, 255)
goal4.Color = Color3.fromRGB(255, 255, 255)
goal5.Color = Color3.fromRGB(255, 255, 255)
goalc.Size = Vector3.new(600, 2.889, 2.889)
wait(.5)
local Tween1 = TS:Create(part1, TSInfo, goal1)
local Tween2 = TS:Create(part2, TSInfo, goal2)
local Tween3 = TS:Create(part3, TSInfo, goal3)
local Tween4 = TS:Create(part4, TSInfo, goal4)
local Tween5 = TS:Create(part5, TSInfo, goal5)
local Tweenc = TS:Create(cylinder, TSInfo, goalc)
Tween1:Play()
Tween2:Play()
Tween3:Play()
Tween4:Play()
Tween5:Play()
wait(1)
cylinder.Transparency = 0.4
Tweenc:Play()
Obviously I know that the tween is set to a single position and thats why It doesnt appear around the cylinder, I was just wondering how I can get it to around the cylinder wherever the mouse was clicked.