Tween not playing in game

  1. **What do you want to achieve? a moving GUI background of checkerboard tiles. it is a script in ServerScriptService. when run, there is no errors in the output. however, it doesn’t move when its played in game, but does when run in Roblox Studio
local TweenService = game:GetService("TweenService")
local part = game.StarterGui.ScreenGui.Frame.ImageLabel
local tweenInfo = TweenInfo.new(300, Enum.EasingStyle.Linear)
local tween = TweenService:Create(part, tweenInfo, {Position = UDim2.new(0.5,20000,0.5,20000)})

function hello()
	tween:Play()
	wait(300)
	part.Position = UDim2.new(0.5,0,0.5,0)
	hello()
end

hello()

thanks for reading, any help is appreciated. :slight_smile:

well ur moving the frame in startergui, not in the players so that is the problem

move the script under the frame, and change

local part = script.parent.ImageLabel -- (change that if it's wrong)
1 Like

if still is not working (after that) move the script in a local script

Thank you so much! It worked! :partying_face:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.