Making an announcement system, finished it, but forgot the main part: Actually having everybody see the the announcement. How would I do this through a local script? Heres my code: (Mostly tweening.)

script.Parent.MouseButton1Up:Connect(function()
	local set = script.Parent.Parent.Set
	local text = set.Text
	local label = script.Parent.Parent.Parent.TextLabel.TextLabel
	local frame = script.Parent.Parent
	local ammount = script.Parent.Parent.Time.Text
	
	frame:TweenPosition(
		UDim2.new(0.5,0,0.6,0), --ending position
		"Out", --how it eases
		"Quad", --styleeee
		0.7, --the time it takes
		false --wont override anything else
	)

	label.Text = text
	label.Parent:TweenPosition(
		UDim2.new(0.5,0,0.1,0),
		"Out",
		"Quad",
		1,
		false
	)
	wait(ammount)
	frame:TweenPosition(
		UDim2.new(0.5,0,0.5,0),
		"Out",
		"Quad",
		0.7,
		false
	)
	label.Parent:TweenPosition(
		UDim2.new(-1.5,0,0.1,0),
		"In",
		"Quad",
		1,
		false
	)
end)

Any help here would be appreciated.

2 comments

0

You can just put this announcement into StarterGUI and enable it once the button is pressed

0

You could use a for loop