Help me fix my animated moving conveyor

Hello,

Since yesterday I have been trying to make an animated moving conveyor. I have no problem with making it move people but I have a problem with the texture moving. I tried for about an hour trying to make it work but I gave up. Here’s the script I used. Please help.

local TweenService = game:GetService("TweenService")
local conveyor = script.Parent

local SPEED = conveyor:GetAttribute("Speed")
local texture = conveyor.Texture

conveyor.AssemblyLinearVelocity = conveyor.CFrame.LookVector * SPEED

conveyor:GetAttributeChangedSignal("Speed"):Connect(function()
	conveyor.AssemblyLinearVelocity = conveyor.CFrame.LookVector * conveyor:GetAttribute("Speed")
end)

local info = TweenInfo.new(60, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1)
local tween = TweenService:Create(texture, info, {OffesetStudsV=-300})
tween:Play()
OffesetStudsV

should be spelt

OffsetStudsV

Dunno if this is the issue, but just a thing to point out (second last line)

1 Like