local tweenService = game:GetService("TweenService")
local part = game.Workspace.Tween
local tweeningInformation = TweenInfo.new(
5,
Enum.EasingStyle.Sine,
Enum.EasingDirection.In,
10,
true,
2
)
local partProperties = {
Size = Vector3.new(82.494, 1020.588, 184.607);
Color = Color3.new(0, 0, 1);
Transparency = 0.5;
}
local Tween = tweenService:Create(part,tweeningInformation,partProperties)
Tween:Play()
while true do
game.Workspace.Tween.CFrame = CFrame.new(0, 0, 0) * CFrame.Angles(0, 1 , 0)(math.rad(45))
wait(0.1)
end
What’s wrong with it? Please provide more information about what is wrong with your script. Additionally, formatting is very important.
local tweenService = game:GetService("TweenService")
local part = game.Workspace.Tween
local tweeningInformation = TweenInfo.new(
5,
Enum.EasingStyle.Sine,
Enum.EasingDirection.In,
10,
true,
2
)
local partProperties = {
Size = Vector3.new(82.494, 1020.588, 184.607);
Color = Color3.new(0, 0, 1);
Transparency = 0.5;
}
local Tween = tweenService:Create(part,tweeningInformation,partProperties)
Tween:Play()
while true do
game.Workspace.Tween.CFrame = CFrame.new(0, 0, 0) * CFrame.Angles(0, 1 , 0)(math.rad(45))
wait(0.1)
end
Here’s your code, cleaned up.
Some things to note:
- What is
Workspace.Tween? - You’re trying to call a CFrame value.
I think you should just remove the while true do loop.
local tweenService = game:GetService("TweenService")
local part = game.Workspace.Tween
local tweeningInformation = TweenInfo.new(
5,
Enum.EasingStyle.Sine,
Enum.EasingDirection.In,
10,
true,
2
)
local partProperties = {
Size = Vector3.new(82.494, 1020.588, 184.607);
Color = Color3.new(0, 0, 1);
Transparency = 0.5;
CFrame = CFrame.new() * CFrame.Angles(0,1,math.rad(45))
}
local Tween2 = tweenService:Create(part,tweeningInformation,partProperties)
Tween2:Play()