Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why will this part not tween?

I want the color of the block to tween to orange but it wont work..

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

local tweenInformation = TweenInfo.new(

2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
10,
false,
2

)

local partProperties = {

	Color = Color3.new(255, 176, 0)	
	
}

local tween = tweenService:Create(this,TweenInfo,partProperties)

wait "10"
tween:Play()

5 comments

0

why is there a string for wait? use wait(10)

0

soz me not know

0

I have the wait so it waits 10 seconds before tweening

0

@sickings

0

change wait "10" to wait(10)

1 answer

I try to avoid tweening as much as I can but there are sometimes where it's more relevant, example: GUIs, Changing the size of the part (AKA, these are easier to tween without looping)

In your case, switching the brick color is easy and can be done without tweening.

wait(10) --It seems like you want to wait 10...
script.Parent.BrickColor = BrickColor3.new("Bright orange")

Accept answer if it helped to mark this answered. If you need tutorials on tweening, see around the roblox wiki. Judging by your 'wait "10"' line, I feel safe to assume you are a beginner. So yeah, hope this did help.

2 comments

0

Accepting answer gives us both +rep, marks this answered, and I don't like leeches. Also comment down below if you have any issues (highly unlikely).

0

Please don't ask people to accept your answer. People may think that you don't want to help but only gain +rep, especially after seeing you trying to convince them by listing the "benefits".

This discussion is preserved as it was. New answers, comments, and votes are closed.