Tween Script doesn't work

  1. What you want to achieve?
    I want make it so when the player press Q it makes the part bigger and it rotates making a cool effect

  2. What is the issue?
    16601012d877f9260f25b86adf4e4b9a
    655810dbded16bdb8059f6a99bdb82b8

  3. What solutions have you tried so far?
    I looked up on dev hub and nothing
    also tried rescript

script

local mesh1 = workspace.Spiral
local mesh2 = workspace.Wave3
local invs = {Transparency = 1}
local UIS = game:GetService("UserInputService")
local TWS = game:GetService("TweenService")
local mesh2S = {Size = Vector3.new(42.047, 2.739, 42.503)}
local mesh1S = {Size = Vector3.new(27.74, 27.74, 27.74)}
local rotate = {Orientation = Vector3.new(0, 176.68, 0)}
local info = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local invs1 = TWS:Create(mesh1,info,invs)
local invs2 = TWS:Create(mesh2,info,invs)
local sizeb1 = TWS:Create(mesh1,info,mesh1S)
local sizeb2 = TWS:Create(mesh2,info,mesh2S)
local rotate  = TWS:Create(mesh2,info,rotate)
local rotate2 = TWS:Create(mesh1,info,rotate)

UIS.InputEnded:Connect(function(input, Istyping)
	if Istyping then
		return
	end
	
	if input.KeyCode == Enum.KeyCode.Q then
		sizeb2:Play()
		invs2:Play()
		sizeb1:Play()
		invs1:Play()
	end
end)

For the last 2 variable lines are you sure there is not an error with the name

1 Like