Ok so im making a game but i want it so when u say for example "Cheese" a part will flip upside down kinda slow can somebody explain how i would do this?

local message = "Cheese"
local part = script.Parent
function onChatted(msg, recipient, speaker)
	local source = string.lower(speaker.Name)
	msg = string.lower(msg)
	if (msg == message) then

--This script is just to give u a example of what im working with