Hello, I just coding my script to tween animation
But I recieved this error
I know what’s means just object don’t have property named Size
But I doing
for _,part in pairs(script.Parent.TweenParts:GetChildren(() do
-- Blah blah blah
end
There is my script and explorer
script.Parent.Parent.KeyCardChecker.Granted:GetPropertyChangedSignal("Value"):Connect(function()
if script.Parent.Parent.KeyCardChecker.Granted.Value == true then
script.Parent.Light.BrickColor = BrickColor.new("Bright green")
local Info = TweenInfo.new(1,Enum.EasingStyle.Sine,Enum.EasingDirection.In)
local TweenService = game:GetService("TweenService")
for _,part in pairs(script.Parent:GetChildren()) do
if string.sub(part.Name,0,3) == string.sub(script.Parent.Tween1.Name,0,3) then
local Tween = TweenService:Create(part,Info,{Size = Vector3.new(0.37, 1, 0.05)})
Tween:Play()
end
end
wait(1.1)
for _,part in pairs(script.Parent:GetChildren()) do
if string.sub(part.Name,0,3) == string.sub(script.Parent.Tween1.Name,0,3) then
part.Transparency = 1
end
end
for _,part in pairs(script.Parent.TweenParts:GetChildren()) do
local Tween = TweenService:Create(part,Info,{Size = Vector3.new(4, 0.05, 0.48)})
Tween:Play()
end
wait(1.1)
for _,part in pairs(script.Parent.TweenParts:GetChildren()) do
part.Transparency = 1
end
end
end)
`Thank for read and helping me
Pixeluted