#tween not working
16 messages · Page 1 of 1 (latest)
Thats NOT the issue... 5 is just the delay
The issue with the script is that the variable x is not defined. It appears to be the object that the script is trying to scale, but it is not assigned to any value.
To fix the script, you should replace the x variable with the object that you want to scale. For example, if you want to scale a part named "Beam" in the workspace, you can modify the script as follows:
lua
Copy code
local tween = game:GetService("TweenService")
local beam = workspace.Beam -- replace with the name of your object
local scale = Vector3.new(78.42, 1, 1) -- set the desired scale factor here
local Info = TweenInfo.new(20, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 5)
local Goals = {Size = beam.Size * scale}
local tween = tween:Create(beam, Info, Goals)
tween:Play()
In this modified script, the beam variable is assigned to the object named "Beam" in the workspace. The rest of the script remains the same. This should allow the script to function properly and scale the specified object over time.
oh
Im pretty sure "x" is the object...
Either that or
local tween = game:GetService("TweenService")
local scale = Vector3.new(78.42, 1, 1) -- set the desired scale factor here
local Info = TweenInfo.new(20, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 5)
local Goals = {Size = beam.Size * scale}
local tween = tween:Create(x, Info, Goals)
tween:Play()
When you declare local tween = tween:Create(x, Info, Goals) you are redefining the tween variable that was defined previously with local tween = game:GetService("TweenService").
Huh.
IDK then
local TweenService = game:GetService("TweenService")
local beam = --Your beam path
local scale = Vector3.new(78.42, 1, 1)
local Info = TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 0, false, 1)
local Goals = {Size = beam.Size * scale}
local tween = TweenService:Create(beam, Info, Goals)
tween:Play()
Try this
Error ?
Print something at the top of the script
In between and at the end