Making My Script Client Sided

I want to make my tween script client-sided, but I’m not exactly sure how to do that. I used to make scripts client-sided by placing a local script in PlayerGui and activating everything from there, but it doesn’t seem to be working, maybe since I’m tweening a texture?

I’d really appreciate any help I could get.

Here’s an example of one of my current scripts that is handled by the server:

local texture = script.Parent

while true do
	texture.StudsPerTileV = 0
	texture.StudsPerTileU = 0
	game:GetService("TweenService"):Create(texture, TweenInfo.new(5, Enum.EasingStyle.Linear), {OffsetStudsU = texture.OffsetStudsU + texture.StudsPerTileU}):Play()
	wait(1)
end

These are the attributes that can be Tweened.

If you’re trying to make a texture that infinitely moves, have you tried using Beams instead?

I’m using it for water so I don’t think beams would be the best idea