Same question.

I use tween service to change the color of the players body when you push a button, but the new players can only see the normal color of the body? unless the old player reset and click the button again? what is the problem?

Here's the script

local tweenService = game:GetService("TweenService")
	local tweenInfo = TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,false,0)
	local Body1 = char.Head
	local Body2 = char.RightUpperArm
	local Body3 = char.LeftUpperArm
	local Body4 = char.UpperTorso
	local Body5 = char.RightUpperLeg
	local Body6 = char.LeftUpperLeg
	local change = {Color = Color3.fromRGB(164, 189, 71)}
	local Tween = tweenService:Create(Body1,tweenInfo,change)
	local Tween2 = tweenService:Create(Body2,tweenInfo,change)
	local Tween3 = tweenService:Create(Body3,tweenInfo,change)
	local Tween4 = tweenService:Create(Body4,tweenInfo,change)
	local Tween5 = tweenService:Create(Body5,tweenInfo,change)
	local Tween6 = tweenService:Create(Body6,tweenInfo,change)
	Tween:Play()
	Tween2:Play()
	Tween3:Play()
	Tween4:Play()
	Tween5:Play()
	Tween6:Play()

There's a remote function that make this thing work

I try to put something like


wait(3)
Body1.Color = Color3.fromRGB(164, 189, 71)
Body2.Color = Color3.fromRGB(164, 189, 71)
Body3.Color = Color3.fromRGB(164, 189, 71)
Body4.Color = Color3.fromRGB(164, 189, 71)
Body5.Color = Color3.fromRGB(164, 189, 71)
Body6.Color = Color3.fromRGB(164, 189, 71)

at the bottom assuming that because it is not a tween service so it will be like permanent to the game. but it is not still working.

Thank you in advance.

1 comment

0

Holy Moly, that code looks... messy.