Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How to animate textures without a beam?

Asked by 4 days ago
Edited 4 days ago

I would like to make a conveyor with an arrow texture moving across. I used the script which Roblox provided in their article about textures and decals. Is there anything to change which will make it move straight and not resize and what not. Yes, the textures are names correctly.

Code:

local TweenService = game:GetService("TweenService")

local texture1 = script.Parent.Texture1
local texture2 = script.Parent.Texture2

local tweenInfo1 = TweenInfo.new(8, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1)
local tween1 = TweenService:Create(texture1, tweenInfo1, {OffsetStudsV=50})
local tweenInfo2 = TweenInfo.new(7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true)
local tween2 = TweenService:Create(texture2, tweenInfo2, {OffsetStudsU=50, StudsPerTileU=55, StudsPerTileV=45})

tween1:Play()
tween2:Play()

Edit: Used this code :

local TweenService = game:GetService("TweenService")

local texture1 = script.Parent.Texture1
local texture2 = script.Parent.Texture2

local tweenInfo1 = TweenInfo.new(8, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, -1)
local tween1 = TweenService:Create(texture1, tweenInfo1, {OffsetStudsV=50})
local tweenInfo2 = TweenInfo.new(7, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, -1, true)
local tween2 = TweenService:Create(texture2, tweenInfo2, {OffsetStudsV=20})

tween1:Play()
tween2:Play()

Still not working :(

0
don't change the StudsPerTileU or StudsPerTileV properties, just change the offset Elyzzia 1023 — 4d
0
so would I delete the StudsPerTile properties from the variable? NightWarrior1717 -6 — 4d

Answer this question